Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gtep/driver_coal.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
# 4 representative days (1 per season)
# Hourly commitment and dispatch
mod_object = ExpansionPlanningModel(
stages=3, data=data_object, num_reps=5, len_reps=24, num_commit=24, num_dispatch=1
stages=3, data=data_object, num_reps=4, len_reps=24, num_commit=24, num_dispatch=1
)
# print(mod_object.data.data["elements"]["generator"]["1"])
# import sys
Expand Down Expand Up @@ -128,9 +128,9 @@
costs = {}
for exp in mod_object.model.component_objects(pyo.Expression, descend_into=True):
if "operatingCost" in exp.name:
costs[var.name] = pyo.value(exp)
costs[exp.name] = pyo.value(exp)
elif "investmentCost" in exp.name:
costs[var.name] = pyo.value(exp)
costs[exp.name] = pyo.value(exp)

import json

Expand Down
Loading