Setting Relationship Parameter as a Function #888
liamfennelly
started this conversation in
Support
Replies: 2 comments 1 reply
-
To get started with efficiencies in SpineOpt, we refer to this part of the documentation: How to define an efficiency However, it seems that your problem is highly non-linear which is not supported by SpineOpt. If you can accept the loss of accuracy, when approximating the non-linear efficiency by a piecewise-linear efficiency, you can use SpineOpt. The parameter that allows for piecewise linear efficiencies should be the |
Beta Was this translation helpful? Give feedback.
1 reply
-
@liamfennelly if using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am relatively new to Spine, and I am having an issue with the relationship parameter editor to define a connection constraint for a unit_node_node relationship.
One of the nodes defines household electricity demand for the year. The other node is an EV battery that stores energy. The unit is the EV charger which can both supply electricity to the EV from the household, and also from the household to the EV. The model optimises the power flows to minimise electricity costs by deciding when to charge the EV battery and when to discharge the battery to power the home.
I want to set the efficiency of the charger in both directions to be a function of the power flow rate at any given time. The formula that determines the charger efficiency at a certain power flow is as follows:
Efficiency = -9*( P_flow ^4) + 22*( P_flow ^3) - 18*( P_flow ^2) + 6*( P_flow)
In the relationship parameter editor I am only able to set the efficiency of the charger as a set value or a time series. However, I do not know what the efficiency will be at any given time as it depends on what the model sets the power flow to be. Is there a way for me to define this efficiency constraint as a function of the power flow rate and if so how?
Beta Was this translation helpful? Give feedback.
All reactions