VirtualFCS.Control.ECMS.bruteForceMinimization

Model Description and References

Searches numIterations equally spaced fuel-cell power candidates between minFCPower and MaxFCPower. Battery power is powerDemand minus candidate fuel-cell power. A candidate is feasible only when batteryPowerMin < batteryPower < batteryPowerMax; the bounds are strict. The candidate with the lowest costFunction value is returned. numIterations must exceed one. If no feasible candidate improves the initial value, optimalParameter remains minFCPower and minimumValue remains infinity.

Governing Equations

-
QuantityDescription
numIterationsNumber of iterations to perform
minFCPowerMinimum allowable FC power value
MaxFCPowerMaximum allowable fuel cell power
powerDemandPower demand of the powertrain
batteryPowerMinMinimum battery power
batteryPowerMaxMaximum battery power
LHVH2Lower heating value hydrogen
muECMS parameter
SOCSOC of battery
SOC_minMinimum SOC of battery
SOC_maxMaximum SOC of battery
sigmaParameter for ECMS
optimalParameterThe parameter value that minimizes the function
minimumValueThe minimum function value found
stepSizeStep size between iterations
powerFCCurrent power level for FC being tested
batteryPowerBattery power from current evaluated FC power
currentFunctionValueCurrent function value being evaluated
bestValueBest function value found so far
bestParameterParameter corresponding to the best value
iLoop counter
checkConstraintStore if the battery constraint is fulfilled and skips solution if its not

Parameters

NameTypeUnitDefaultDescription
No locally declared parameters.----

Interfaces and Connections

NameKindTypeUnitDescription
numIterationsInput signalInteger1Number of iterations to perform
minFCPowerInput signalModelica.Units.SI.PowerWMinimum allowable FC power value
MaxFCPowerInput signalModelica.Units.SI.PowerWMaximum allowable fuel cell power
powerDemandInput signalModelica.Units.SI.PowerWPower demand of the powertrain
batteryPowerMinInput signalModelica.Units.SI.PowerWMinimum battery power
batteryPowerMaxInput signalModelica.Units.SI.PowerWMaximum battery power
LHVH2Input signalRealWs/gLower heating value hydrogen
muInput signalReal1ECMS parameter
SOCInput signalReal1SOC of battery
SOC_minInput signalReal1Minimum SOC of battery
SOC_maxInput signalReal1Maximum SOC of battery
sigmaInput signalReal1Parameter for ECMS
optimalParameterOutput signalModelica.Units.SI.PowerWThe parameter value that minimizes the function
minimumValueOutput signalRealg/sThe minimum function value found