class documentation
Undocumented
| Method | __init__ |
see class CMAEvolutionStrategy |
Inherited from CMAEvolutionStrategy:
| Method | alleviate |
pass conditioning of C to linear transformation in self.gp. |
| Method | alleviate |
pass scaling from C to sigma_vec. |
| Method | ask |
get/sample new candidate solutions. |
| Method | ask |
sample number solutions and evaluate them on func. |
| Method | ask |
get new candidate solutions in genotyp. |
| Method | disp |
print current state variables in a single-line. |
| Method | disp |
print annotation line for disp () |
| Method | feed |
Resume a run using the solution history. |
| Method | get |
return _round_int_variables(pheno(self.mean - (geno(x) - self.mean))) |
| Method | get |
return an updated mean based on the input arguments, |
| Method | get |
get mirror genotypic directions from worst solutions. |
| Method | inject |
inject list of one or several genotypic solution(s). |
| Method | limit |
versatile: limit absolute values of int-coordinates in vector list dX |
| Method | mahalanobis |
return Mahalanobis norm based on the current sample distribution. |
| Method | manage |
increase sigma by sigma_fac in case of a plateau. |
| Method | pickle |
return pickle.dumps(self), |
| Method | plot |
plot current state variables using matplotlib. |
| Method | random |
change x like for injection, all on genotypic level |
| Method | repair |
make sure that solutions fit to the sample distribution. |
| Method | reset |
clear termination and set any CMAOptions passed via |
| Method | result |
pretty print result. |
| Method | stop |
return the termination status as dictionary. |
| Method | tell |
pass objective function values to prepare for next iteration. |
| Method | tell2 |
see tell |
| Method | to |
return integer-rounded phenotype depending on round_integer_variables module setting. |
| Instance Variable | adapt |
Undocumented |
| Instance Variable | archive |
archive solutions processed in tell, not really in use!? |
| Instance Variable | ary |
Undocumented |
| Instance Variable | augmented |
Undocumented |
| Instance Variable | B |
Undocumented |
| Instance Variable | best |
Undocumented |
| Instance Variable | best |
Undocumented |
| Instance Variable | boundary |
Undocumented |
| Instance Variable | C |
Undocumented |
| Instance Variable | callbackstop |
return values of callbacks, used like if any(callbackstop) |
| Instance Variable | const |
Undocumented |
| Instance Variable | count |
Undocumented |
| Instance Variable | countevals |
Undocumented |
| Instance Variable | countiter |
Undocumented |
| Instance Variable | D |
Undocumented |
| Instance Variable | d |
Undocumented |
| Instance Variable | evaluations |
Undocumented |
| Instance Variable | fit |
Undocumented |
| Instance Variable | gp |
Undocumented |
| Instance Variable | hsiglist |
Undocumented |
| Instance Variable | inopts |
Undocumented |
| Instance Variable | inputargs |
Undocumented |
| Instance Variable | integer |
Undocumented |
| Instance Variable | itereigenupdated |
Undocumented |
| Instance Variable | last |
Undocumented |
| Instance Variable | logger |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mean0 |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mean |
Undocumented |
| Instance Variable | mirrors |
Undocumented |
| Instance Variable | more |
Undocumented |
| Instance Variable | N |
Undocumented |
| Instance Variable | |
Undocumented |
| Instance Variable | noise |
Undocumented |
| Instance Variable | number |
Undocumented |
| Instance Variable | number |
Undocumented |
| Instance Variable | number |
Undocumented |
| Instance Variable | opts |
Undocumented |
| Instance Variable | pc |
Undocumented |
| Instance Variable | pc2 |
Undocumented |
| Instance Variable | pc |
Undocumented |
| Instance Variable | pop |
Undocumented |
| Instance Variable | pop |
Undocumented |
| Instance Variable | pop |
Undocumented |
| Instance Variable | pop |
Undocumented |
| Instance Variable | sent |
archive solutions close to the end of ask, this archive is passed to gp.geno to bypass calling the inverse geno-pheno transformation in tell |
| Instance Variable | sigma |
Undocumented |
| Instance Variable | sigma0 |
Undocumented |
| Instance Variable | sigma |
Undocumented |
| Instance Variable | sigma |
Undocumented |
| Instance Variable | sm |
Undocumented |
| Instance Variable | sp |
Undocumented |
| Instance Variable | sp0 |
Undocumented |
| Instance Variable | time |
Undocumented |
| Instance Variable | timer |
Undocumented |
| Instance Variable | times |
Undocumented |
| Instance Variable | x0 |
Undocumented |
| Property | condition |
condition number of the statistical-model sampler. |
| Property | isotropic |
normalized last mean shift, under random selection N(0,I) |
| Property | popsize |
number of samples by default returned by ask () |
| Property | result |
return a CMAEvolutionStrategyResult2 class instance. |
| Property | stds |
return array of coordinate-wise standard deviations (phenotypic). |
| Method | _clean |
return indices of pop which are in self._injected_solutions_archive and |
| Method | _constraints |
return "fake" function_values when constraints_values are given |
| Method | _copy |
tentative copy of self, versatile (interface and functionalities may change). |
| Method | _prepare |
provide genotypic directions for TPA and selective mirroring, with no specific length normalization, to be used in the coming iteration. |
| Method | _random |
self.mean + self._random_rescaling_factor_to_mahalanobis_size(y) * y is guarantied to appear like from the sample distribution. |
| Method | _record |
do nothing by default, otherwise assign to _record_rankings_ after instantiation |
| Method | _record |
compute ranks of vals in function_values and |
| Method | _round |
return solution with integer variables rounded |
| Method | _set_ |
set the current covariance matrix from another class instance. |
| Method | _set |
Assign self.x0 from argument x0. |
| Method | _stds |
set self.sigma_vec.scaling to respect opts['max/minstd'] |
| Method | _tear |
assign augmented_lagrangian and best_feasible attributes |
| Method | _tfg |
Undocumented |
| Method | _tfp |
Undocumented |
| Method | _try |
call sm.update_now like sm.sample would do. |
| Method | _update |
helper function for a smooth transition to sampling classes. |
| Instance Variable | _con |
Undocumented |
| Instance Variable | _first |
# timing of the find_feasible return loop: g = np.random.randn(10) + 1 gl = list(g) |
| Instance Variable | _flgtelldone |
Undocumented |
| Instance Variable | _indices |
Undocumented |
| Instance Variable | _injected |
Undocumented |
| Instance Variable | _is |
Undocumented |
| Instance Variable | _isotropic |
Undocumented |
| Instance Variable | _last |
Undocumented |
| Instance Variable | _mirrormethod1 |
Undocumented |
| Instance Variable | _path |
Undocumented |
| Instance Variable | _recorded |
Undocumented |
| Instance Variable | _round |
archive solutions at the very end of ask when and before integer rounding is applied. Retrieve them at the very beginning of tell before the inverse geno-pheno transformation is applied. The order of these transformations may change in future. |
| Instance Variable | _sigma |
Undocumented |
| Instance Variable | _stall |
Undocumented |
| Instance Variable | _stopdict |
attribute for stopping criteria in function stop |
| Instance Variable | _stoptolxstagnation |
Undocumented |
| Instance Variable | _tell2 |
Undocumented |
| Property | _result0 |
return a CMAEvolutionStrategyResult namedtuple. |
| Property | _result2 |
return a CMAEvolutionStrategyResult2 class instance. |
| Property | _stds |
return array of coordinate-wise standard deviations (genotypic). |
Inherited from OOOptimizer (via CMAEvolutionStrategy):
| Method | initialize |
(re-)set to the initial state |
| Method | optimize |
find minimizer of objective_fct. |
| Instance Variable | more |
Undocumented |
| Instance Variable | optional |
Undocumented |
| Instance Variable | xcurrent |
Undocumented |
| Instance Variable | xstart |
Undocumented |
| Method | _force |
try force the logger to log NOW |
| Method | _prepare |
return a list of callbacks including self.logger.add. |
see class CMAEvolutionStrategy
options is for consistency with fmin2 options and is only
in effect if inopts is None.