Skip to content

Commit 730a2f4

Browse files
committed
Some cleanup
1 parent 90dc748 commit 730a2f4

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

src/create-model.jl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ function create_model(
124124
)
125125

126126
## Rolling Horizon Parameters
127-
#=
128-
- Create fake variables to tied to the profiles values
129-
=#
130127
if rolling_horizon
131128
add_rolling_horizon_parameters!(
132129
connection,

src/structures.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ mutable struct TulipaConstraint <: TulipaTabularIndex
6363
table_name::String
6464
num_rows::Int
6565
constraint_names::Vector{Symbol}
66-
expressions::Dict
67-
# expressions::Dict{Symbol,Vector{JuMP.AffExpr}}
66+
expressions::Dict{Symbol,Vector{JuMP.AbstractJuMPScalar}}
6867
coefficients::Dict{Symbol,Vector{Float64}}
6968
duals::Dict{Symbol,Vector{Float64}}
7069

@@ -90,8 +89,7 @@ mutable struct TulipaExpression <: TulipaTabularIndex
9089
indices::DuckDB.QueryResult
9190
table_name::String
9291
num_rows::Int
93-
# expressions::Dict{Symbol,Vector{Union{JuMP.AffExpr,JuMP.QuadExpr}}}
94-
expressions::Dict
92+
expressions::Dict{Symbol,Vector{JuMP.AffExpr}}
9593

9694
function TulipaExpression(connection, table_name::String)
9795
return new(

test/test-rolling-horizon.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
)
1212

1313
# With rolling horizon
14-
# create_model!(energy_problem; rolling_horizon = true, rolling_horizon_window_length = 24)
1514
window_length = 24
1615
TEM.add_rolling_horizon_parameters!(
1716
energy_problem.db_connection,

0 commit comments

Comments
 (0)