modelMeritOrderDispatcher

Forward-looking control, min, max and gradient constraints
Diagram of MeritOrderDispatcher

Extends from Modelica.Blocks.Interfaces.DiscreteBlock (Base class of discrete control blocks), TransiEnt.Basics.Icons.SystemOperator.

Information

1. Purpose of model

This model takes in parameters of a power generation park where every unit is specified by variable generating costs (C_var), a maximum and minimum power output (P_max, P_min) and a maximum gradient (P_grad_max_star)

When input load is positive it assigns the generation capacity in merit order constrained by the maximum and minimum power output and the maximum gradient

2. Level of detail, physical effects considered, and physical insight

(no remarks)

3. Limits of validity

(no remarks)

4. Interfaces

u[ntime]: RealInput

y[nout]: RealOutput

z[nout]: BooleanInput

P_R_pos[nout]: input for electric power in [W] "Upwards reserve constraint, reduces maximum production (values are supposed to be positive)"

P_R_neg[nout]: input for electric power in [W] "Downwards reserve constraint, increases minimum production (values are supposed to be positive)"

5. Nomenclature

(no remarks)

6. Governing Equations

(no remarks)

7. Remarks for Usage

(no remarks)

8. Validation

Tested in check model "TransiEnt.Grid.Electrical.EconomicDispatch.Check.TestMeritOrderDispatcher"

9. References

(no remarks)

10. Version History

Parameters

TypeNameDefaultDescription
SI.TimesamplePeriod (from DiscreteBlock)Sample period of component
SI.TimestartTime (from DiscreteBlock)0First sample time instant
IntegernoutsimCenter.generationPark.nMODPlantsNumber of plants
Integerntime20Number of future points in time to be considered
Modelica.Units.SI.Power[nout]P_initzeros(nout)
Real[nout]P_grad_max_starsimCenter.generationPark.P_grad_max_star_MODSpecific Power gradient in 1/s
Modelica.Units.SI.Power[nout]P_min_constsimCenter.generationPark.P_min_MOD
Modelica.Units.SI.Power[nout]P_max_constP_n
TransiEnt.Basics.Units.MonetaryUnitPerEnergy[nout]C_varsimCenter.generationPark.C_var_MOD
SI.Power[nout]P_nsimCenter.generationPark.P_max_MOD
Time varying operating boundaries
BooleanuseVarLimitsfalse
IntegernVarLimits1
Integer[nVarLimits]iVarLimits1:nVarLimits

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[ntime]uLoad Prediction
Modelica.Blocks.Interfaces.RealOutput[nout]y
Modelica.Blocks.Interfaces.BooleanInput[nout]zPlant status (true=on)
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn[nout]P_R_posUpwards reserve constraint, reduces maximum production (values are supposed to be positive)
TransiEnt.Basics.Interfaces.Electrical.ElectricPowerIn[nout]P_R_negDownwards reserve constraint, increases minimum production (values are supposed to be positive)

Components

TypeNameDefaultDescription
TransiEnt.SimCentersimCenter
Modelica.Units.SI.Power[ntime]P_load
RealC_varsorted
Integermerit_order
Modelica.Units.SI.Power[nout]P_0Current operating point
Modelica.Units.SI.Power[nout,ntime]P_rcbl_maxMax reachable operating point
Modelica.Units.SI.Power[nout,ntime]P_rcbl_minMin reachable operating point
Modelica.Units.SI.Power[nout]P_rcbl_max_backMax operating point to reach next timestep operating point
Modelica.Units.SI.Power[nout]P_rcbl_min_backMin operating point to reach next timestep operating point
Modelica.Units.SI.PowerP_mustrun_residualMustrun power of plants that are more expensive than me
Modelica.Units.SI.PowerP_set_totalsum(y)
Modelica.Units.SI.PowerP_max_total
Modelica.Units.SI.PowerP_min_total
Modelica.Units.SI.PowerP_init_totalsum(P_init)
Modelica.Units.SI.Power[nout]P_max
Modelica.Units.SI.Power[nout]P_min
Modelica.Units.SI.Power[nVarLimits]P_max_varP_max[iVarLimits]
Modelica.Units.SI.Power[nVarLimits]P_min_varP_min[iVarLimits]
Modelica.Units.SI.PowerP_min_var_totalsum(P_min_var)
Modelica.Units.SI.PowerP_max_var_totalsum(P_max_var)
Modelica.Units.SI.PowerP_rcbl_max_back_total
Modelica.Units.SI.PowerP_rcbl_min_back_total
TransiEnt.Basics.Units.MonetaryUnitC_var_totalTotal cost estimation (specific production cost multiplied by set points