Skip to main content

Max Min Comparator

Compare multiple input signals and output the maximum or minimum value for limit selection, constraint judgment and control signal screening.

Component Appearance and Location​

Expand Controller in the component library on the left and find "Maximum and Minimum Comparators".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0CONTROLinputInput signal channel 1always show
1CONTROLinputInput signal channel 2always show
2CONTROLoutputOutput signal channelalways show
3CONTROLinputInput signal channel 3When "Open Channel 3" is "Yes"
4CONTROLinputInput signal channel 4When "Open Channel 4" is "Yes"
5CONTROLinputInput signal channel 5When "Open Channel 5" is "Yes"

Channel 1 and channel 2 are always involved in comparison; channels 3 to 5 can be enabled as needed. The output gives the maximum or minimum value of all enabled inputs at the current moment.

Parameter List​

Basic Parameters

NamekeyTypeDefault / OptionsDescription
Comparison TypeCmpTypechoiceMaximum / MinimumComparison Type
Enable Channel 3Chanel3choiceNo / YesEnable Channel 3
Enable Channel 4Chanel4choiceNo / YesEnable Channel 4
Enable Channel 5Chanel5choiceNo / YesEnable Channel 5

Parameter Guidance​

Choose Maximum or Minimum under Comparison Type. Channels 1 and 2 always participate. Enable channels 3–5 separately and connect valid signals. All inputs must share quantity, units, and reference.

Modeling Steps​

  1. Connect channels 1 and 2, then enable and connect others as needed.
  2. Select maximum or minimum and connect output downstream.
  3. Run transient simulation and compare simultaneous inputs and output.

View Results​

Output is the current maximum or minimum. The determining channel can change when signals cross. Inspect inputs to identify the source measurement.

Professional Theory​

Let A\mathcal A be enabled channel indices and ui(t)u_i(t) the current value of channel ii. The comparisons are

ymax⁡(t)=max⁡i∈Aui(t),ymin⁡(t)=min⁡i∈Aui(t).y_{\max}(t)=\max_{i\in\mathcal A}u_i(t), \qquad y_{\min}(t)=\min_{i\in\mathcal A}u_i(t).

Comparison uses signed values and preserves units. Evaluation uses current values once all enabled inputs are ready. Signal Updates

Applicability and Limits​

  • Multiple measurements. Finds current lowest pressure, highest temperature, or similar values. Use the Extreme Value Recorder for one signal over time.
  • Magnitudes. To ignore sign, apply Absolute Value to each input first.

Common Inspections​

  • Error after enabling a channel. Check every enabled channel has a valid source.
  • Unexpected determining measurement. Check type, sources, units, and that comparison uses current values.