コード例 #1
0
ファイル: common.go プロジェクト: btracey/gofunopter
// 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
}
コード例 #2
0
ファイル: common.go プロジェクト: kortschak/gofunopter
// 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
}