Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduction problem size by adding conditions on constraint construction #84

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

willu47
Copy link
Member

@willu47 willu47 commented Apr 21, 2023

I've added a few small conditions to constraints following these rough guidelines:

  • trade constraints should not be created when r and rr are equal
  • all constraints with Produce only need to be generated when there are corresponding non-zero values in the OutputActivityRatio
  • all constraints with Use only need to be generated when there are corresponding non-zero values in the InputActivityRatio
  • Also fixed an issue with incorrect index in constraint OC1 causing the variable cost to be calculated for every timeslice.

@willu47 willu47 self-assigned this Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant