func newGradOptimizer() *gradOptimizer { m := &gradOptimizer{ loc: multi.NewLocation(), obj: uni.NewObjective(), grad: multi.NewGradient(), } // TODO: Something about settings return m }
func newMultiGradStruct() *multiGradStruct { m := &multiGradStruct{ OptCommon: common.NewOptCommon(), loc: multi.NewLocation(), obj: uni.NewObjective(), grad: multi.NewGradient(), result: &MultiGradResult{}, } // TODO: Something about settings return m }