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

Add the dual solutions to energy_problem.dataframes[:highest_in_out] #637

Open
datejada opened this issue May 10, 2024 · 1 comment
Open
Labels
Type: improvement Better way of doing something Zone: documentation Improvements or additions to documentation Zone: export & visualisation How data leaves model & is visualised

Comments

@datejada
Copy link
Member

What and Why

While eating our food (meaning, using the results of Tulipa to plot them), I realized that it is better to have the results of the duals in the dataframe, too (as the flows and storage levels).

We get the duals from the hubs and consumer balances. These constraints are built using the energy_problem.dataframes[:highest_in_out]. So, we can add an extra column to this dataframe with the duals that are stored in energy_problem.solution.duals[:hub_balance] and energy_problem.solution.duals[:consumer_balance].

After this, it will be necessary to update the documentation and how to access the results for the duals.

Possible Drawbacks

The same data is stored twice (in the solution structure and the dataframes). So, if we move to dataframes all the way along, we will avoid this. So, either we do it before the issue below or we do this change when tackling it.

Related Issues

#115

@datejada datejada added Type: improvement Better way of doing something Zone: export & visualisation How data leaves model & is visualised Zone: documentation Improvements or additions to documentation labels May 10, 2024
@datejada
Copy link
Member Author

datejada commented Jul 2, 2024

Also see comments on #688

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: improvement Better way of doing something Zone: documentation Improvements or additions to documentation Zone: export & visualisation How data leaves model & is visualised
Projects
None yet
Development

No branches or pull requests

1 participant