The Constraint Handling Options specifies whether the constraints are satisfied in a DAE system by using constraint projection in the generated FMU archive file. Use this option to improve the accuracy of a DAE system that has constraints. If the constraint is not satisfied, the system result may deviate from the actual solution and could lead to an increase in error at an exponential rate.
The Baumgarte constraint stabilization method stabilizes the position constraint equations, by combining the position, velocity, and acceleration constraints into a single expression. By integrating the linear equation in terms of the acceleration, the Baumgarte parameters, alpha and beta, act to stabilize the constraints at the position level.
Baumgarte stabilization: Apply the Baumgarte constraint stabilization.
Alpha: Set the derivative gain for Baumgarte constraint stabilization.
Beta: Set the proportional gain for Baumgarte constraint stabilization.
Set the Projection iterations to specify the maximum number of times that a projection is permitted to iterate to obtain a more accurate solution.
Set the Projection tolerance to specify the desirable error tolerance to achieve after the projection.
The Event Handling Options specifies whether the events are satisfied in a DAE system by using event projection in the generated FMU archive file. Use this option to improve the accuracy of a DAE system with events. If the constraint is not satisfied, the system result may deviate from the actual solution and could lead to an increase in error at an exponential rate.
Set the Event iterations to specify the maximum number of times that a projection is permitted to iterate to obtain a more accurate solution.
Set the Initial hysteresis to specify the desirable error tolerance to achieve after the projection.
Select Event projection to perform event projection using the event projection routine in the External Model Interface as described on The MathWorks web site to control the drift in the result of the DAE system.
Note: Currently, if the model has events, they are handled using the event handling functions in the generated MsimModel.c file, and not the FMI provided Event Handling routines.
The Code Generation Options control details of the generated code and run-time errors.
Add directional derivatives: Select the check box to generate directional derivatives code.
Optimize for fixed-step solver: Specifies if the generated code should be optimized for use with fixed-step solvers.
Detailed run-time errors: Report run-time errors in detail.
Add extended variables: Choose between minimal and extended variable tracking during the simulation.