iode.Simulation.model_compile

Simulation.model_compile(list_eqs: str | List[str] = None, quiet: bool = False) bool[source]

Recompiles a list of equations, or all equations if no list is specified. It is only useful if (the list of) equations contain macros in their LEC form (like $list).

The set of equations stored in memory are made up of several elements: the LEC form, the estimation inputs and the compiled form of the equation. If the LEC form contains macros, the compiled form may no longer correspond to the LEC form. This can happen when a new list file is loaded into memory, when a list is manually modified or copied from disk, or when an equation file is loaded into memory.

Parameters:
list_eqsstr or list(str), optional

List of equations to recompile. Default to empty (recompile all equations).

quietbool, optional

If True, suppresses the log messages during the compilation process. Default to False.

Returns:
bool

True if the compilation is successful, False otherwise.