Skip to content

Commit

Permalink
Merge branch 'dev' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rundxdi authored Oct 28, 2024
2 parents 721fab1 + 3b4987d commit 7a57cc5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gtep/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from pyomo.contrib.appsi.solvers.gurobi import Gurobi
import gurobipy as gp


data_path = "./gtep/data/5bus"
data_object = ExpansionPlanningData()
data_object.load_prescient(data_path)
Expand All @@ -15,17 +16,17 @@
data=data_object.md,
num_reps=2,
len_reps=1,
num_commit=24,
num_commit=6,
num_dispatch=4,
)
mod_object.create_model()
TransformationFactory("gdp.bound_pretransformation").apply_to(mod_object.model)
TransformationFactory("gdp.bigm").apply_to(mod_object.model)
TransformationFactory("gdp.bound_pretransformation").apply_to(mod_object.model)
TransformationFactory("gdp.bigm").apply_to(mod_object.model)
# opt = SolverFactory("gurobi")
# opt = Gurobi()
opt = Highs()
# # mod_object.results = opt.solve(mod_object.model, tee=True)
mod_object.results = opt.solve(mod_object.model)
mod_object.results = opt.solve(mod_object.model)

sol_object = ExpansionPlanningSolution()
sol_object.load_from_model(mod_object)
Expand Down

0 comments on commit 7a57cc5

Please sign in to comment.