# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2020 EDF R&D
+# Copyright (C) 2008-2021 EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
default = "BOBYQA",
typecast = str,
message = "Minimiseur utilisé",
- listval = ["BOBYQA", "COBYLA", "NEWUOA", "POWELL", "SIMPLEX", "SUBPLEX"],
+ listval = [
+ "BOBYQA",
+ "COBYLA",
+ "NEWUOA",
+ "POWELL",
+ "SIMPLEX",
+ "SUBPLEX",
+ ],
)
self.defineRequiredParameter(
name = "MaximumNumberOfSteps",
"CostFunctionJAtCurrentOptimum",
"CostFunctionJbAtCurrentOptimum",
"CostFunctionJoAtCurrentOptimum",
+ "CurrentIterationNumber",
"CurrentOptimum",
"CurrentState",
"IndexOfOptimum",
#
J = float( Jb ) + float( Jo )
#
+ self.StoredVariables["CurrentIterationNumber"].store( len(self.StoredVariables["CostFunctionJ"]) )
self.StoredVariables["CostFunctionJb"].store( Jb )
self.StoredVariables["CostFunctionJo"].store( Jo )
self.StoredVariables["CostFunctionJ" ].store( J )