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

Variable Cost Refactor Part 2: PowerSimulations #1061

Merged
merged 6 commits into from
Feb 26, 2024

Conversation

GabrielKS
Copy link
Contributor

The second part of a significant refactor of Sienna cost data structures (part 1 is here). The main focus here is to bring PowerSimulations.jl up to date with the elimination of VariableCost in favor of FunctionData. That entails these changes in PowerSimulations:

  • Rewrite some documentation to refer to the new cost structs
  • Replace all instances of VariableCost, and some instances of contents of VariableCost, with FunctionData

On the latter point, I am not completely sure if I made the switch from using FunctionData to using raw data (vectors of tuples) at the proper place; I'd appreciate review of that.

Tests pass:
Screenshot 2024-02-26 at 4 32 27 AM

The refactor is not done yet and tests are not passing, but to proceed
with the refactor I need to make a decision that I'd like to be able to
easily revert if it ends up being the wrong one. Done so far:
  - Update documentation given FunctionData
  - Update all VariableCosts to refer to FunctionData
  - Update most cost-looking tuples to FunctionData
Not done:
  - `moi_tests` still fail
  - There is still a conflict in the typing of the data stored in
    parameter containers
  - Probably more issues I haven't gotten to in the tests yet
Copy link
Member

@jd-lara jd-lara left a comment

Choose a reason for hiding this comment

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

Overall looks ok, please restore the piece of code that was eliminated.

@jd-lara jd-lara self-assigned this Feb 26, 2024
@jd-lara jd-lara merged commit d4b67e1 into psy4 Feb 26, 2024
1 of 6 checks passed
@jd-lara jd-lara deleted the gks/variable_cost_refactor branch February 26, 2024 22:42
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.

2 participants