MaplesimCompilerOptions
Defines options to be used by the MapleSim compiler.
Library
Activate/Misc
Description
The MaplesimCompilerOptions block is used to define options different from the default values.
Beside the optimization and solver settings options, the CoSimulation parameter forces the Modelica model to run in co-simulation instead of model exchange mode.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
optimize | Optimize | Specifies the level of code optimization. | Structure | |
optimize/True | true | Full optimization. | Number | 0 |
optimize/False | false | No optimization. | Number | 0 |
optimize/Fast | fast | Performs subexpression and some additional fast optimizations. | Number | 0 |
optimize/SubExprOnly | simple expressions only | Optimizes only simple expressions. | Number | 0 |
coniter | Constraint iteration count | Specifies constraint iteration count. | Scalar | |
contol | Constraint tolerance | Specifies constraint tolerance. | Scalar | |
eviter | Max no. of event iterations | Specifies the maximum number of event iterations. | Scalar | |
evtproj | Event projection | Specifies the use of projection in events. | Number | 0 |
evthyst | Event hysteresis | Specifies the width of the event hysteresis band. | Scalar | |
scalemethod | Scale method | Specifies the scale method. | Structure | |
scalemethod/minimum | minimum | Number | 0 | |
scalemethod/maximum | maximum | Number | 0 | |
scalemethod/geometric | geometric | Number | 0 | |
scalemethod/none | none | Number | 0 | |
script | MapleSim debug script | String | ||
cs | CoSimulation | Generates CoSimulation code. | Number | 0 |
cs_solver | CoSimulation solver | Specifies the solver for cosimulation. | Structure | |
cs_solver/Euler | Euler | Number | 0 | |
cs_solver/ImplicitEuler | Implicit Euler | Number | 0 | |
cs_solver/RK2 | RK2 | Number | 0 | |
cs_solver/RK3 | RK3 | Number | 0 | |
cs_solver/RK4 | RK4 | Number | 0 | |
cs_solver/RKF45 | RKF45 | Number | 0 | |
cs_solver/CK45 | CK45 | Number | 0 | |
cs_solver/SDIRK | SDIRK | Number | 0 | |
cs_solver/Rosenbrock | Rosenbrock | Number | 0 | |
cs_stepsize | CoSimulation step size | Specifies the step size for cosimulation | Scalar |