MaplesimCompilerOptions

Defines options to be used by the MapleSim compiler.

    MaplesimCompilerOptions

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

MaplesimCompilerOptions_0

NameLabelDescriptionData TypeValid Values

optimize

Optimize

Specifies the level of code optimization.

Structure

optimize/True

true

Full optimization.

Number

0
1

optimize/False

false

No optimization.

Number

0
1

optimize/Fast

fast

Performs subexpression and some additional fast optimizations.

Number

0
1

optimize/SubExprOnly

simple expressions only

Optimizes only simple expressions.

Number

0
1

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
1

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
1

scalemethod/maximum

maximum

Number

0
1

scalemethod/geometric

geometric

Number

0
1

scalemethod/none

none

Number

0
1

script

MapleSim debug script

String

cs

CoSimulation

Generates CoSimulation code.

Number

0
1

cs_solver

CoSimulation solver

Specifies the solver for cosimulation.

Structure

cs_solver/Euler

Euler

Number

0
1

cs_solver/ImplicitEuler

Implicit Euler

Number

0
1

cs_solver/RK2

RK2

Number

0
1

cs_solver/RK3

RK3

Number

0
1

cs_solver/RK4

RK4

Number

0
1

cs_solver/RKF45

RKF45

Number

0
1

cs_solver/CK45

CK45

Number

0
1

cs_solver/SDIRK

SDIRK

Number

0
1

cs_solver/Rosenbrock

Rosenbrock

Number

0
1

cs_stepsize

CoSimulation step size

Specifies the step size for cosimulation

Scalar