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

Feature/equate variable for same optimisation #43

Draft
wants to merge 5 commits into
base: production
Choose a base branch
from

Conversation

Bachibouzouk
Copy link
Contributor

Summary of the discussion

We wanted to make sure the energy from the sun shining on a crop cannot be larger than the surface of the crop times the ghi of the sun

Type of change (CHANGELOG.md)

Added

  • New constraint for crops to make the volatile solar resource optimize the same value as the crop component

@@ -117,6 +117,7 @@ def build_solph_components(self):
raise ValueError("Length mismatch between t_air and ghi profiles.")
# calculates the temperature factor values
pv_tf_values = []
# TODO document those equations
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@JulianBarinton - the conversion factor used here for PV panel seems faulty, do you know where this model comes from?

name;type;carrier;tech;capacity;capacity_cost;marginal_cost;carrier_cost;from_bus;to_bus;t_air;ghi;p_rpv;r_ref;n_t;t_c_ref;noct;expandable
pv-panel;pv-panel;solar-energy;pv;0;0;0;0;solar-energy-bus;elec-bus;t-air;ghi;270;1000;-0.0037;25;48;False
name;type;carrier;tech;capacity;capacity_cost;marginal_cost;carrier_cost;capacity_potential;from_bus;to_bus;t_air;ghi;p_rpv;r_ref;n_t;t_c_ref;noct;expandable
pv-panel;pv-panel;solar-energy;pv;0;0;0;-0.1;100;solar-energy-bus;elec-bus;t-air;ghi;270;1000;-0.0037;25;48;True
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I set negative costs to force pv-panel optimization for this usecase

@@ -0,0 +1,2 @@
name;type
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is added to force PV Panel to match solar-radiation when optimized

Need to warn user if the PVPanel has existing capacity, otherwise
solution is unbounded.

The output power does not make any sense, there must be a typo
The aggragated delivered power correspond to aggregated ghi multiplied
by the optimized capacity
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.

1 participant