Skip to content

Commit

Permalink
Merge pull request #294 from grid-parity-exchange/pg_t0_validator
Browse files Browse the repository at this point in the history
  • Loading branch information
bknueven authored Oct 31, 2022
2 parents 68623c5 + 0eca3e0 commit d5633c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egret/model_library/unit_commitment/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def power_generated_t0_validator(m, v, g):
logger.error('Generator {} has more output at T0 than is feasible to ramp down to'.format(g))
return False
v_greater_min = v >= value(m.MinimumPowerOutput[g,t] - m.NominalRampUpLimit[g]*m.TimePeriodLengthHours)
if not v_less_max:
if not v_greater_min:
logger.error('Generator {} has less output at T0 than is feasible to ramp up to'.format(g))
return False
return True
Expand Down

0 comments on commit d5633c8

Please sign in to comment.