Model.run
function model.run(input_data=None, exec_params=None) -> dict
|
input_data
|
Dictionary of input data to pass to the model via the
moselpy: driver. Keys are identifier names, values are Python objects convertible to Mosel types.
|
|
exec_params
|
Execution parameters as a string (
"PARAM1=val1,PARAM2=val2") or list of strings (
["PARAM1=val1", "PARAM2=val2"]). Sets values for model parameters (defined in the
parameters block) and control parameters of modules/packages (
e.g.,
"mypkg.param=value"). The special parameter
workdir defines the initial working directory.
|
model = mp.load_model("model.bim")
output = model.run(
input_data={"x": 10, "arr": {1: 100, 2: 200}},
exec_params={"VERBOSE": 1, "workdir": "/tmp"}
)
print(output["result"])
© 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.
