
The original model for the cruise control was created in Simulink®, using Simulink blocks. The FMI Toolbox for MATLAB®/Simulink®, developed by Modelon, was used to generate the FMU.
Evaluate the imported cruise control FMU by connecting it to a car model.
Speed deviations when going uphill.
Speed deviations when going downhill.
Find the scenarios for which the cruise control keeps the speed deviation inside reasonable limits. By analyzing the plot, it is evident that the cruise control handles upward slopes better than downward slopes, with less than 2.5% speed deviation for positive gradients up to 15 degrees.