mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
Fix failing tests due to use of non-binary value and improper invocation of variable
This commit is contained in:
@@ -45,7 +45,7 @@ function _add_ramp_eqs!(
|
||||
for t in 1:model[:instance].time
|
||||
# Ramp up limit
|
||||
if t == 1
|
||||
if _is_initially_on(g)
|
||||
if is_initially_on
|
||||
# min power is _not_ multiplied by is_on because if !is_on, then ramp up is irrelevant
|
||||
eq_ramp_up[gn, t] = @constraint(
|
||||
model,
|
||||
@@ -76,7 +76,7 @@ function _add_ramp_eqs!(
|
||||
|
||||
# Ramp down limit
|
||||
if t == 1
|
||||
if _is_initially_on(g)
|
||||
if is_initially_on
|
||||
# TODO If RD < SD, or more specifically if
|
||||
# min_power + RD < initial_power < SD
|
||||
# then the generator should be able to shut down at time t = 1,
|
||||
|
||||
@@ -247,10 +247,6 @@ Variables
|
||||
* `is_on`
|
||||
* `switch_off`
|
||||
* `switch_on`
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> c8bf25f (Documented reserve shortfall, soved comments on variables/constraints to structs.jl files, simplified loops, removed extra comments, started replacement of constant-subsitution with @constraint (with option to use fix).)
|
||||
|
||||
Constraints
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user