OModel.init#
- OModel.init(no_code=True)[source]#
Set up the optimization model from the symbolic description.
This method initializes the optimization model by parsing decision variables, constraints, and the objective function from the associated routine.
- Parameters:
- no_codebool, optional
Flag indicating if the parsing code should be displayed, True by default.
- Returns:
- bool
Returns True if the setup is successful, False otherwise.