Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sys.path.append(options.casadi_folder)
from pymoca.backends.casadi.api import transfer_model
import casadi as ca
logger.info("Generating CasADi model")
compiler_options = \
{'replace_constants': True,
'replace_parameter_expressions': True,
'eliminable_variable_expression': r'_\w+',
'detect_aliases': True,
'expand': False,
'cache': True}
model = transfer_model(model_folder, model_name, compiler_options)
print(model)