Skip to content

Add support for reusing Gurobi environment in multistage models (#783) #523

Add support for reusing Gurobi environment in multistage models (#783)

Add support for reusing Gurobi environment in multistage models (#783) #523

Triggered via push November 5, 2024 14:54
Status Failure
Total duration 6m 51s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Documentation: docs/src/developer_guide.md#L100
doctest failure in src/developer_guide.md:100-122 ```jldoctest example_thermal julia> thermal_gen = [Thermal(Dict(:resource => "NG_combined_cycle_1", :existing_cap_mw => 100.0, :inv_cost_per_mwyr => 239841, :heat_rate_mmbtu_per_mwh => 7.89, :id => 23, :max_cap_mw => 100.0, :esr_1 => 1,)), Thermal(Dict(:resource => "NG_combined_cycle_2", :existing_cap_mw => 200.0, :inv_cost_per_mwyr => 0.0, :heat_rate_mmbtu_per_mwh => 8.29, :max_cap_mw => 0, :id => 24)), Thermal(Dict(:resource => "Biomass", :existing_cap_mw => 200.0, :inv_cost_per_mwyr => 81998, :heat_rate_mmbtu_per_mwh => 9.9, :max_cap_mw => 0, :lds => 1, :new_build => 1, :id => 25))]; ``` Subexpression: thermal_gen = [Thermal(Dict(:resource => "NG_combined_cycle_1", :existing_cap_mw => 100.0, :inv_cost_per_mwyr => 239841, :heat_rate_mmbtu_per_mwh => 7.89, :id => 23, :max_cap_mw => 100.0, :esr_1 => 1,)), Thermal(Dict(:resource => "NG_combined_cycle_2", :existing_cap_mw => 200.0, :inv_cost_per_mwyr => 0.0, :heat_rate_mmbtu_per_mwh => 8.29, :max_cap_mw => 0, :id => 24)), Thermal(Dict(:resource => "Biomass", :existing_cap_mw => 200.0, :inv_cost_per_mwyr => 81998, :heat_rate_mmbtu_per_mwh => 9.9, :max_cap_mw => 0, :lds => 1, :new_build => 1, :id => 25))]; Evaluated output: ERROR: UndefRefError: access to undefined reference Stacktrace: [1] getindex @ ./essentials.jl:917 [inlined] [2] iterate (repeats 2 times) @ ./array.jl:891 [inlined] [3] iterate @ ./generator.jl:45 [inlined] [4] collect(itr::Base.Generator{Vector{Thermal{Symbol, Any}}, GenX.var"#488#489"{Symbol}}) @ Base ./array.jl:780 [5] getproperty @ ~/work/GenX.jl/GenX.jl/src/model/resources/resources.jl:134 [inlined] [6] __safe_setindex! @ ./array.jl:990 [inlined] [7] vect(::Thermal{Symbol, Any}, ::Vararg{Thermal{Symbol, Any}}) @ Base ./array.jl:163 [8] top-level scope @ none:1 Expected output: diff = Warning: Diff output requires color. ERROR: UndefRefError: access to undefined reference Stacktrace: [1] getindex @ ./essentials.jl:917 [inlined] [2] iterate (repeats 2 times) @ ./array.jl:891 [inlined] [3] iterate @ ./generator.jl:45 [inlined] [4] collect(itr::Base.Generator{Vector{Thermal{Symbol, Any}}, GenX.var"#488#489"{Symbol}}) @ Base ./array.jl:780 [5] getproperty @ ~/work/GenX.jl/GenX.jl/src/model/resources/resources.jl:134 [inlined] [6] __safe_setindex! @ ./array.jl:990 [inlined] [7] vect(::Thermal{Symbol, Any}, ::Vararg{Thermal{Symbol, Any}}) @ Base ./array.jl:163 [8] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L126
doctest failure in src/developer_guide.md:126-143 ```jldoctest example_thermal julia> resource_name(thermal_gen[1]) "NG_combined_cycle_1" julia> resource_name.(thermal_gen) 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" julia> existing_cap_mw(thermal_gen[1]) 100.0 julia> existing_cap_mw.(thermal_gen) 3-element Vector{Float64}: 100.0 200.0 200.0 julia> thermal_gen[1].existing_cap_mw 100.0 ``` Subexpression: resource_name(thermal_gen[1]) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: "NG_combined_cycle_1" diff = Warning: Diff output requires color. "NG_combined_cycle_1"ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L126
doctest failure in src/developer_guide.md:126-143 ```jldoctest example_thermal julia> resource_name(thermal_gen[1]) "NG_combined_cycle_1" julia> resource_name.(thermal_gen) 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" julia> existing_cap_mw(thermal_gen[1]) 100.0 julia> existing_cap_mw.(thermal_gen) 3-element Vector{Float64}: 100.0 200.0 200.0 julia> thermal_gen[1].existing_cap_mw 100.0 ``` Subexpression: resource_name.(thermal_gen) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" diff = Warning: Diff output requires color. 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass"ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L126
doctest failure in src/developer_guide.md:126-143 ```jldoctest example_thermal julia> resource_name(thermal_gen[1]) "NG_combined_cycle_1" julia> resource_name.(thermal_gen) 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" julia> existing_cap_mw(thermal_gen[1]) 100.0 julia> existing_cap_mw.(thermal_gen) 3-element Vector{Float64}: 100.0 200.0 200.0 julia> thermal_gen[1].existing_cap_mw 100.0 ``` Subexpression: existing_cap_mw(thermal_gen[1]) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 100.0 diff = Warning: Diff output requires color. 100.0ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L126
doctest failure in src/developer_guide.md:126-143 ```jldoctest example_thermal julia> resource_name(thermal_gen[1]) "NG_combined_cycle_1" julia> resource_name.(thermal_gen) 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" julia> existing_cap_mw(thermal_gen[1]) 100.0 julia> existing_cap_mw.(thermal_gen) 3-element Vector{Float64}: 100.0 200.0 200.0 julia> thermal_gen[1].existing_cap_mw 100.0 ``` Subexpression: existing_cap_mw.(thermal_gen) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 3-element Vector{Float64}: 100.0 200.0 200.0 diff = Warning: Diff output requires color. 3-element Vector{Float64}: 100.0 200.0 200.0ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L126
doctest failure in src/developer_guide.md:126-143 ```jldoctest example_thermal julia> resource_name(thermal_gen[1]) "NG_combined_cycle_1" julia> resource_name.(thermal_gen) 3-element Vector{String}: "NG_combined_cycle_1" "NG_combined_cycle_2" "Biomass" julia> existing_cap_mw(thermal_gen[1]) 100.0 julia> existing_cap_mw.(thermal_gen) 3-element Vector{Float64}: 100.0 200.0 200.0 julia> thermal_gen[1].existing_cap_mw 100.0 ``` Subexpression: thermal_gen[1].existing_cap_mw Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 100.0 diff = Warning: Diff output requires color. 100.0ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L150
doctest failure in src/developer_guide.md:150-155 ```jldoctest example_thermal julia> get(thermal_gen[1], :existing_cap_mw, 0) 100.0 julia> get(thermal_gen[1], :new_build, 0) 0 ``` Subexpression: get(thermal_gen[1], :existing_cap_mw, 0) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 100.0 diff = Warning: Diff output requires color. 100.0ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L150
doctest failure in src/developer_guide.md:150-155 ```jldoctest example_thermal julia> get(thermal_gen[1], :existing_cap_mw, 0) 100.0 julia> get(thermal_gen[1], :new_build, 0) 0 ``` Subexpression: get(thermal_gen[1], :new_build, 0) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: 0 diff = Warning: Diff output requires color. 0ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L160
doctest failure in src/developer_guide.md:160-165 ```jldoctest example_thermal julia> haskey(thermal_gen[1], :existing_cap_mw) true julia> haskey(thermal_gen[1], :new_build) false ``` Subexpression: haskey(thermal_gen[1], :existing_cap_mw) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: true diff = Warning: Diff output requires color. trueERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1
Documentation: docs/src/developer_guide.md#L160
doctest failure in src/developer_guide.md:160-165 ```jldoctest example_thermal julia> haskey(thermal_gen[1], :existing_cap_mw) true julia> haskey(thermal_gen[1], :new_build) false ``` Subexpression: haskey(thermal_gen[1], :new_build) Evaluated output: ERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1 Expected output: false diff = Warning: Diff output requires color. falseERROR: UndefVarError: `thermal_gen` not defined in `Main` Suggestion: check for spelling errors or missing imports. Stacktrace: [1] top-level scope @ none:1