Optimizer

class enflow.models.optimizer.Optimizer[source]

Bases: Model, ABC

abstract optimize(objective_function, constraints=None)[source]

Perform the optimization.

Parameters:
  • objective_function – The objective function to be minimized or maximized.

  • constraints – (Optional) Constraints for the optimization problem.

Returns:

The result of the optimization.