mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-07 00:38:51 -06:00
Use 4-digit years
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
|
||||
# Released under the modified BSD license. See COPYING.md for more details.
|
||||
|
||||
function optimize!(model::JuMP.Model, method::XavQiuWanThi19)::Nothing
|
||||
function optimize!(model::JuMP.Model, method::XavQiuWanThi2019)::Nothing
|
||||
function set_gap(gap)
|
||||
try
|
||||
JuMP.set_optimizer_attribute(model, "MIPGap", gap)
|
||||
@@ -5,7 +5,7 @@
|
||||
import DataStructures: PriorityQueue
|
||||
|
||||
"""
|
||||
struct XavQiuWanThi19 <: SolutionMethod
|
||||
struct XavQiuWanThi2019 <: SolutionMethod
|
||||
time_limit::Float64
|
||||
gap_limit::Float64
|
||||
two_phase_gap::Bool
|
||||
@@ -37,14 +37,14 @@ Fields
|
||||
formulation per time period.
|
||||
|
||||
"""
|
||||
struct XavQiuWanThi19
|
||||
struct XavQiuWanThi2019
|
||||
time_limit::Float64
|
||||
gap_limit::Float64
|
||||
two_phase_gap::Bool
|
||||
max_violations_per_line::Int
|
||||
max_violations_per_period::Int
|
||||
|
||||
function XavQiuWanThi19(;
|
||||
function XavQiuWanThi2019(;
|
||||
time_limit::Float64 = 86400.0,
|
||||
gap_limit::Float64 = 1e-3,
|
||||
two_phase_gap::Bool = true,
|
||||
@@ -10,5 +10,5 @@ advanced methods to accelerate the solution process and to enforce transmission
|
||||
and N-1 security constraints.
|
||||
"""
|
||||
function optimize!(model::JuMP.Model)::Nothing
|
||||
return UnitCommitment.optimize!(model, XavQiuWanThi19())
|
||||
return UnitCommitment.optimize!(model, XavQiuWanThi2019())
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user