Skip to content

Fix costs dict key and num_reps in driver_coal#103

Open
ylu283 wants to merge 1 commit into
IDAES:mainfrom
ylu283:pr/fix-driver-coal
Open

Fix costs dict key and num_reps in driver_coal#103
ylu283 wants to merge 1 commit into
IDAES:mainfrom
ylu283:pr/fix-driver-coal

Conversation

@ylu283
Copy link
Copy Markdown

@ylu283 ylu283 commented May 28, 2026

Two small fixes in driver_coal.py:

  • costs extraction used var.name instead of exp.name when iterating Expression objects, causing all entries to map to the last Disjunct variable name
  • num_reps was 5, should be 4 to match the 4 seasonal representative periods

- costs extraction used var.name instead of exp.name for Expression objects
- num_reps was 5, should be 4 to match seasonal representative periods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant