Initializing help system before first use

load_model

Purpose
Load a compiled binary model (BIM) file.
Synopsis
function load_model(bim_path, flags=None, password_file=None, private_key_file=None, public_keys_file=None) -> Model
Arguments
bim_path 
Path to the BIM file to load
flags 
Loading options string:
Check signature (if the file is signed)
Load signed files only if signature is valid
Load only signed files with valid signature
Interpret password_file as file name (not password itself)
Do not load required packages
Load only header of the BIM file
password_file 
Password or password file for encrypted BIM files
private_key_file 
Private key file for encrypted BIM files
public_keys_file 
File of public keys for signature verification
Return value
A Model object ready for execution
Example
Load and run a model:
model = mp.load_model("model.bim")
model.run()
Further information
1. Creates a new model instance from the BIM file. While loading, Mosel automatically loads any Mosel modules (DSO) and packages required by the model.
2. Both models and packages can be loaded, but only models can be executed with Model.run.
3. The returned Model object must be kept alive while the model is in use. When the Model object is destroyed, the underlying Mosel model is unloaded.
Related topics
Module
moselpy

© 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.