Skip to main content

LSHADE

Module: opytimizer.optimizers.single_objective.evolutionary.lshade

References: R. Tanabe and A. S. Fukunaga, "Improving the search performance of SHADE using linear population size reduction," 2014 IEEE Congress on Evolutionary Computation (CEC), Beijing, China, 2014, pp. 1658-1665, doi: 10.1109/CEC.2014.6900380.

Constructor​

LSHADE(params: 'Dict' = None, MAX_NFE: 'int' = 100, H: 'int' = 100, p: 'float' = 0.11, f_arc: 'float' = 2.6)

Parameters​

ParameterTypeDefaultDescription
paramsDictNone—
MAX_NFEint100—
Hint100—
pfloat0.11—
f_arcfloat2.6—

Methods​

compile​

compile(self, space: '_SingleObjectiveSpace', **kwargs)

Compiles additional information that is used by this optimizer.

This method is called before the optimization procedure and makes sure that the additional variable is available as a property.

Parameters​

ParameterTypeDefaultDescription
space_SingleObjectiveSpace—
kwargs—

evaluate​

evaluate(self, space, function)

Evaluates the search space according to the objective function.

If you need a specific evaluate method, please re-implement it on child's class.

Also, note that function only accept arguments that are found on Opytimizer class.

Parameters​

ParameterTypeDefaultDescription
spaceA Space object that will be evaluated.
functionA Function object serving as an objective function.

update​

update(self, space: '_SingleObjectiveSpace', function: 'Function')

Updates the agents' position array.

As each child has a different procedure of update, you will need to implement it directly on its class.

Parameters​

ParameterTypeDefaultDescription
space_SingleObjectiveSpace—
functionFunction—