main
add_to_control
¶
add_to_control(ctrl: Control, environment=None, _environment_ids=dict(), engine: Engine = compile)
Adds encoding logic to the provided Control instance. The environment argumennt specifies the locals used in the python statements and expressions.
find_python_values
¶
find_python_values(model: Model) -> Mapping[constant, constant]
Map variable names directly to native scalars; collection conversion is not implemented.
set_globals
¶
set_globals(environment=None)
The environment argumennt specifies the globals used in the python statements and expressions. By default, the globals import the math module. Calling set_globals with no arguments clears the globals.