modelIsMonotonic

Tests the correct implementation of the function isMonotonic

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example tests the correct implementation of the function BuildingSystems.Utilities.Math.Functions.isMonotonic. If the function is implemented incorrect, the example will stop with an error.

Components

TypeNameDefaultDescription
Real[3]x_incStrict{0, 1, 2}strictly increasing
Real[3]x_notMon{0, 3, 2}not monotonic
Real[4]x_incWeak{0, 1, 1, 2}weakly increasing
Real[4]x_notWeak{0, 3, 3, 2}not weakly monotonic
Real[3]x_decStrict{2.5, 2, 0.1}strictly decreasing
Real[4]x_decWeak{3, 1, 1, 0.5}weakly decreasing

Revisions

  • January 8, 2014, by Marcus Fuchs:
    First implementation.