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.
-
| Quantity | Description |
|---|---|
numIterations | Number of iterations to perform |
minFCPower | Minimum allowable FC power value |
MaxFCPower | Maximum allowable fuel cell power |
powerDemand | Power demand of the powertrain |
batteryPowerMin | Minimum battery power |
batteryPowerMax | Maximum battery power |
LHVH2 | Lower heating value hydrogen |
mu | ECMS parameter |
SOC | SOC of battery |
SOC_min | Minimum SOC of battery |
SOC_max | Maximum SOC of battery |
sigma | Parameter for ECMS |
optimalParameter | The parameter value that minimizes the function |
minimumValue | The minimum function value found |
stepSize | Step size between iterations |
powerFC | Current power level for FC being tested |
batteryPower | Battery power from current evaluated FC power |
currentFunctionValue | Current function value being evaluated |
bestValue | Best function value found so far |
bestParameter | Parameter corresponding to the best value |
i | Loop counter |
checkConstraint | Store if the battery constraint is fulfilled and skips solution if its not |
| Name | Type | Unit | Default | Description |
|---|---|---|---|---|
| No locally declared parameters. | - | - | - | - |
| Name | Kind | Type | Unit | Description |
|---|---|---|---|---|
numIterations | Input signal | Integer | 1 | Number of iterations to perform |
minFCPower | Input signal | Modelica.Units.SI.Power | W | Minimum allowable FC power value |
MaxFCPower | Input signal | Modelica.Units.SI.Power | W | Maximum allowable fuel cell power |
powerDemand | Input signal | Modelica.Units.SI.Power | W | Power demand of the powertrain |
batteryPowerMin | Input signal | Modelica.Units.SI.Power | W | Minimum battery power |
batteryPowerMax | Input signal | Modelica.Units.SI.Power | W | Maximum battery power |
LHVH2 | Input signal | Real | Ws/g | Lower heating value hydrogen |
mu | Input signal | Real | 1 | ECMS parameter |
SOC | Input signal | Real | 1 | SOC of battery |
SOC_min | Input signal | Real | 1 | Minimum SOC of battery |
SOC_max | Input signal | Real | 1 | Maximum SOC of battery |
sigma | Input signal | Real | 1 | Parameter for ECMS |
optimalParameter | Output signal | Modelica.Units.SI.Power | W | The parameter value that minimizes the function |
minimumValue | Output signal | Real | g/s | The minimum function value found |