mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 16:28:51 -06:00
Merge branch 'dev' into akazachk/formulations
This commit is contained in:
@@ -11,8 +11,8 @@ using UnitCommitment, Cbc, JuMP
|
||||
|
||||
# All units should have unknown initial conditions
|
||||
for g in instance.units
|
||||
@test g.initial_power == nothing
|
||||
@test g.initial_status == nothing
|
||||
@test g.initial_power === nothing
|
||||
@test g.initial_status === nothing
|
||||
end
|
||||
|
||||
# Generate initial conditions
|
||||
@@ -20,8 +20,8 @@ using UnitCommitment, Cbc, JuMP
|
||||
|
||||
# All units should now have known initial conditions
|
||||
for g in instance.units
|
||||
@test g.initial_power != nothing
|
||||
@test g.initial_status != nothing
|
||||
@test g.initial_power !== nothing
|
||||
@test g.initial_status !== nothing
|
||||
end
|
||||
|
||||
# TODO: Check that initial conditions are feasible
|
||||
|
||||
Reference in New Issue
Block a user