OModel.finalize#

OModel.finalize(force=False)[source]#

Finalize the optimization model.

This method should be called after self.evaluate(). It assemble the optimization problem from the evaluated components.

Returns:
bool

Returns True if the finalization is successful, False otherwise.