algorithmInterface

Module Contents

class AlgorithmInterface[source]

Interface for the optimization algorithm

abstract compute(self, initialVectorGuess, listOfOptimizationVariables)[source]

Launch the optimization

Parameters
Returns

vector of optimal variables

abstract set_evaluationFunction(self, evaluationFunction, callback_on_evaluation, numberOfObjectives, numberOfConstraints)[source]

Set the evaluation function and all the necessary callbacks

Parameters
  • evaluationFunction – check evaluateObjectiveAndConstraints()

  • callback_on_evaluation – check callback_on_evaluation(). Call this function after performing the evaluation of the individuals

  • numberOfObjectives – int, number of objectives

  • numberOfConstraints – int, number of constraints

abstract set_maxtime(self, maxTime)[source]

Set maximum optimization time (in seconds)

abstract get_convergence(self)[source]

Get the convergence of the optimization

Returns

InterfaceConvergence

reset(self)[source]