Skip to content

address issue 9#133

Open
luke-kiernan wants to merge 3 commits into
mainfrom
lk/issue-9
Open

address issue 9#133
luke-kiernan wants to merge 3 commits into
mainfrom
lk/issue-9

Conversation

@luke-kiernan

@luke-kiernan luke-kiernan commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Resolves issue #9.

A separate question came up while writing this: PSI and POM have opposite objective function signs for RenewableDispatch. First, is that a bug in POM? And second, if so, how the heck did that happen and not get caught by our test cases...

edit: false alarm, opposite signs isn't a bug in POM. Thanks Anthony for setting me straight: the git blame confirms that PSI only changed to using a positive sign 3 weeks ago.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #9 by ensuring renewables that lack active_power_limits can still build quadratic-cost objectives by bridging InfrastructureOptimizationModels.get_active_power_limits for PowerSystems.RenewableGen.

Changes:

  • Add an IOM.get_active_power_limits(::PSY.RenewableGen) overload that returns (min=0.0, max=get_max_active_power(...)).
  • Add a regression test ensuring a RenewableDispatch with a quadratic cost curve constructs a quadratic objective and that the new limits bridge returns the expected tuple.
  • Update the PowerSystems compat version to 5.10.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/test_device_renewable_generation_constructors.jl Adds a regression test for quadratic renewable cost objective construction and the renewable-specific active power limits bridge.
src/common_models/market_bid_plumbing.jl Implements the renewable-specific IOM.get_active_power_limits fallback using max_active_power.
Project.toml Bumps PowerSystems compat to 5.10.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/test_device_renewable_generation_constructors.jl Outdated
@acostarelli

Copy link
Copy Markdown
Member

Not sure if this is related but I think we just recently flipped the sign to positive in PSI now that curtailment costs have been added.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Performance Results

Version Precompile Time
Main 2.963001271
This Branch 2.996549555
Version Build Time
Main-Build Time Precompile 87.043825939
Main-Build Time Postcompile 2.091694805
This Branch-Build Time Precompile 83.157103372
This Branch-Build Time Postcompile 2.070335824
Version Solve Time
Main-Solve Time Precompile FAILED TO TEST
Main-Solve Time Postcompile FAILED TO TEST
This Branch-Solve Time Precompile FAILED TO TEST
This Branch-Solve Time Postcompile FAILED TO TEST

@jd-lara jd-lara left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We just did a merge to fix this in PSI.

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.

Renewables with quadratic cost curves: lack of active_power_limits

4 participants