Model
- class iesopt.Model(filename: str | Path, **kwargs)[source]
An IESopt model, based on an
IESopt.jl
core model.- property data
Access the IESopt data object of the model.
This is deprecated; use model.internal instead (similar to the Julia usage IESopt.internal(model)).
- extract_result(component: str, field: str, mode: str = 'value')[source]
Manually extract a specific result from the model.
- get_components(tagged=None)[source]
Get all components of the model, possibly filtered by (a) tag(s).
- get_constraint(component: str, constraint: str)[source]
Get a specific constraint from a core component.
- nvar(var: str)[source]
Extract a named variable, from model.
If your variable is called :myvar, and you would access it in Julia using model[:myvar], you can call model.nvar(“myvar”).
- property objective_value: float
Get the objective value of the model. Only available if the model was solved beforehand.
- property results: Results
Get the results of the model.
- property status: ModelStatus
Get the current status of this model. See ModelStatus for possible values.
- class iesopt.model.ModelStatus[source]
Status of an
iesopt.Model
.