x0 = Xini,
args = (self._parameters["QualityCriterion"],),
maxiter = self._parameters["MaximumNumberOfSteps"]-1,
- maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"]-1,
+ maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"],
xtol = self._parameters["StateVariationTolerance"],
ftol = self._parameters["CostDecrementTolerance"],
full_output = True,
x0 = Xini,
args = (self._parameters["QualityCriterion"],),
maxiter = self._parameters["MaximumNumberOfSteps"]-1,
- maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"]-1,
+ maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"],
xtol = self._parameters["StateVariationTolerance"],
ftol = self._parameters["CostDecrementTolerance"],
full_output = True,
func = CostFunction,
x0 = Xini,
cons = make_constraints( Bounds ),
+ args = (self._parameters["QualityCriterion"],),
consargs = (), # To avoid extra-args
- maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"]-1,
+ maxfun = self._parameters["MaximumNumberOfFunctionEvaluations"],
rhobeg = 1.0,
rhoend = self._parameters["StateVariationTolerance"],
catol = 2.*self._parameters["StateVariationTolerance"],