Model Class
The Model class represents a loaded Mosel model. Model objects are created by load_model or execute_model and provide methods for running the model and accessing its data.
|
Represents a loaded Mosel model. Provides methods for execution, data access, and stream management.
|
|
|
Execution status from the last Model.run call.
|
|
|
Exit code from the last model execution.
|
|
|
Export the active optimization problem to a file.
|
|
|
Retrieve the value of a public Mosel entity from the model's dictionary.
|
|
|
Retrieve model annotations (metadata). Annotations can be accessed after loading a model, without running it.
|
|
|
Whether the model is currently loaded.
|
|
|
Whether the model is currently executing.
|
|
|
Fingerprint of the signing key if the model is signed.
|
|
|
The model name as declared in the Mosel source.
|
|
|
Unique numeric identifier for this model instance.
|
|
|
Objective function value from the last optimization.
|
|
|
Problem status object with optimization result information.
|
|
|
Reset the model to its initial state.
|
|
|
Execute the model with optional input data.
|
|
|
Security status object with model signing/encryption information.
|
|
|
Set a default stream for this model.
|
|
|
Size of the loaded model in bytes.
|
|
|
Request the running model to stop execution gracefully.
|
|
|
Per-model symbol registry for the moselpy: I/O driver.
|
|
|
System comment embedded in the BIM file during compilation.
|
|
|
Forcefully terminate model execution.
|
|
|
User comment embedded in the BIM file during compilation.
|
|
|
Version number of the loaded model.
|
© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.
