Module barecmaes2 :: Class BestSolution
[hide private]
[frames] | no frames]

Class BestSolution

source code

object --+
         |
        BestSolution

container to keep track of the best solution seen
Instance Methods [hide private]
 
__init__(self, x=None, f=None, evals=None)
take x, f, and evals to initialize the best solution. The better solutions have smaller f-values.
source code
 
update(self, arx, arf, evals=None)
initialize the best solution with x, f, and evals. Better solutions have smaller f-values.
source code
 
get(self)
return (x, f, evals)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x=None, f=None, evals=None)
(Constructor)

source code 
take x, f, and evals to initialize the best solution. The better solutions have smaller f-values.
Overrides: object.__init__