From 0eca3e06144615d76158ca8f86b4fac929f2d507 Mon Sep 17 00:00:00 2001 From: bknueven <30801372+bknueven@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:02:00 -0600 Subject: [PATCH] Update params.py --- egret/model_library/unit_commitment/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egret/model_library/unit_commitment/params.py b/egret/model_library/unit_commitment/params.py index 680af4f2..c73d5664 100644 --- a/egret/model_library/unit_commitment/params.py +++ b/egret/model_library/unit_commitment/params.py @@ -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