// NewOptCommon creates a new OptCommon structure. Should be called by optimization method func NewOptCommon() *OptCommon { c := &OptCommon{ Iter: &Incrementor{Name: "Iter", ConvStatus: MaximumIterations}, FunEvals: &Incrementor{Name: "FnEval", ConvStatus: MaximumFunctionEvaluations}, Runtime: &Runtime{Name: "Runtime"}, Display: display.NewDisplay(), } return c }
// NewOptCommon creates a new OptCommon structure. Should be called by optimization method func NewOptCommon() *OptCommon { c := &OptCommon{ Iter: NewIterations(), FunEvals: NewFunctionEvaluations(), Time: NewTime(), Display: display.NewDisplay(), } return c }