mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -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
|
for t in 1:model[:instance].time
|
||||||
# Ramp up limit
|
# Ramp up limit
|
||||||
if t == 1
|
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
|
# min power is _not_ multiplied by is_on because if !is_on, then ramp up is irrelevant
|
||||||
eq_ramp_up[gn, t] = @constraint(
|
eq_ramp_up[gn, t] = @constraint(
|
||||||
model,
|
model,
|
||||||
@@ -76,7 +76,7 @@ function _add_ramp_eqs!(
|
|||||||
|
|
||||||
# Ramp down limit
|
# Ramp down limit
|
||||||
if t == 1
|
if t == 1
|
||||||
if _is_initially_on(g)
|
if is_initially_on
|
||||||
# TODO If RD < SD, or more specifically if
|
# TODO If RD < SD, or more specifically if
|
||||||
# min_power + RD < initial_power < SD
|
# min_power + RD < initial_power < SD
|
||||||
# then the generator should be able to shut down at time t = 1,
|
# then the generator should be able to shut down at time t = 1,
|
||||||
|
|||||||
@@ -247,10 +247,6 @@ Variables
|
|||||||
* `is_on`
|
* `is_on`
|
||||||
* `switch_off`
|
* `switch_off`
|
||||||
* `switch_on`
|
* `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
|
Constraints
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user