1. load parameters from file. 2. organized the optimization methods.