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

V0.10 dev #153

Merged
merged 7 commits into from
Feb 17, 2023
Merged

V0.10 dev #153

merged 7 commits into from
Feb 17, 2023

Conversation

hskkanth
Copy link
Collaborator

Supports the expansion of pumps

Replacing an existing pump with an expansion pump provides the same result
Final part of the ne pump code.
Adding a constraint relating the build and the status variables of the pumps. Adding the construction cost of ne pumps to the objective function.
@hskkanth
Copy link
Collaborator Author

Merging commits related to expansion pumps so that Byron includes these commits while rebasing the v0.10 branch with the v0.9.3 branch.

@hskkanth hskkanth merged commit 72d5914 into lanl-ansi:v0.10-dev Feb 17, 2023
for a in ids(wm, n, :pump)
# Add pump energy costs to the objective.
JuMP.add_to_expression!(objective, var(wm, n, :c_pump, a))
JuMP.add_to_expression!(objective, var(wm, n, :P_pump, a))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should change the objective to minimize power instead of cost, here. The standard OWF minimizes cost. If you want another objective that minimizes power, maybe add this as objective_power or something similar?

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.

None yet

2 participants