Skip to content
Blocks.MinMax.md

Blocks.MinMax ​

Usage ​

TranslatedComponents.Blocks.MinMax(nu=0)

Parameters: ​

NameDescriptionUnitsDefault value
nu–0

Connectors ​

  • u - (RealVectorInput)

  • yMax - This connector represents a real signal as an output from a component (RealOutput)

  • yMin - This connector represents a real signal as an output from a component (RealOutput)

Behavior ​

julia
using TranslatedComponents #hide
using ModelingToolkit #hide
@variables nu #hide
@named sys = TranslatedComponents.Blocks.MinMax(nu=nu) #hide
full_equations(sys) #hide
<< @example-block not executed in draft mode >>

Source ​

dyad
component MinMax
  u = RealVectorInput()
  yMax = RealOutput()
  yMin = RealOutput()
  parameter nu::Integer(min = 0) = 0
relations
  yMax = max(u)
  yMin = min(u)
end
Flattened Source
dyad
component MinMax
  u = RealVectorInput()
  yMax = RealOutput()
  yMin = RealOutput()
  parameter nu::Integer(min = 0) = 0
relations
  yMax = max(u)
  yMin = min(u)
metadata {}
end


Test Cases ​

No test cases defined.

  • Examples

  • Experiments

  • Analyses