RoutineBase.init#

RoutineBase.init(force=False, no_code=True, **kwargs)[source]#

Initialize the routine.

Force initialization (force=True) will do the following: - Rebuild the system matrices - Enable all constraints - Reinitialize the optimization model

Parameters:
force: bool

Whether to force initialization.

no_code: bool

Whether to show generated code.