I have created an electrolyser demand object and would like it to be fulfilled exclusively by PV and Wind generators. However, I couldn’t find any specific events or options that allow me to implement this requirement. Could you please suggest a way to achieve this?
This is a very good question! This is an excellent opportunity to use a custom constraint.
The exact implementation will depend on the configuration of your model. For example if there are multiple wind and PV generators throughout the system and transmission needs to be accounted for, it can get a little more complicated.
For the simplest case with an electrolyzer located at the same node as the corresponding WIND and PV, you can follow along with this Custom Constraint Tutorial. The tutorial walks through an example of ensuring that a Battery object is only charged from a co-located PV object. Your case would be exactly the same just with the Battery object replaced by the electrolyzer demand object and with the addition of power generation from a WIND object(s).
Please let us know if the Tutorial is helpful or if you have any follow-up questions!
Thanks @will for your reply. I have implemented the same and was able to bound electrolysers operation to RES generation. I have a new issue.
I have 3 sets of batteries in my model
Utility scale BESS
Residential BESS
EV’s represented as batteries
I noticed that the aggregated discharge (generation) and charge (load) from these batteries are higher than expected, as I am trying to simulate a futuristic year and validating the simulation results against the published. I have defined the necessary properties like MAXCAP, PG/PDEFF, PG/PDMAX, SOCSET/MIN/MAX. However, I am not sure about the PSETPRC values, as by default, they were 2000 $/MWh, and if I try to change them, the simulation becomes extremely slow. Could you please explain?
I’m glad to hear that my initial response was helpful!
Users can use a PSET event to specify the active power output or consumption of an object. PSETPRC defines the penalty price for deviating from the value of PSET, if specified. However, using a PSET event for most generators is not recommended since the purpose of an optimization problem is for the solver to find the optimal dispatch. PSET events are most common for EDEM, PV, and WIND objects. In fact, you might be most familiar with either the term “value of lost load” or “value of unserved demand”. This is what the PSETPRC value for EDEM objects represents. For WIND and PV, PSETPRC is the “cost of curtailment”.
I assume you are not using PSET events for your ESTR objects, so changing the value of PSETPRC for these objects should not effect the simulation. If you are changing the value of PSETPRC for EDEM, PV, WIND, or any other object that has a PSET event, this will impact the simulation.
@will Thanks for your reply and the clarification.I have two follow-up questions:
1. Are there any limits or constraints on line hurdle prices?
I was able to run the model successfully with relatively low hurdle prices (around 10) for the transmission lines between the EV and grid/prosumer nodes. However, I encounter issues when increasing these values to higher levels (30 or more). When making this change, is it necessary to adjust other parameter values in the model to maintain feasibility?
2. Regarding hydropower modeling, is it technically correct to represent multiple hydro generators and pumped hydro storage plants using a single hydro plant with shared parameters (such as inflow, V_max, V_min, V_set, turbine capacity, and pump capacity)? I adopted this approach to simplify the model structure. Alternatively, should each geographical node have its own dedicated hydro plant entity, even if the intention is to simulate identical reservoir operating scenarios across these nodes?