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!