I’m afraid I don’t understand the question.

Let’s assume you are using a simple linear cost, such as that used by 
load2disp(). In that case, as long as the price at the node is below that cost, 
the load will be served. If it is higher than that cost it will be curtailed. 
So if you want to ensure the load is served, use a very high cost. Think of it 
as the cost of curtailing, or the value of serving, the load.

   Ray


On Oct 20, 2022, at 2:38 AM, Lois Efe 
<[email protected]<mailto:[email protected]>> wrote:

Thank you very much,
 I will like to ask how I would set the cost to reflect serving the load

Best regards,
Lois

On Wed, Oct 19, 2022 at 3:09 PM Ray Daniel Zimmerman 
<[email protected]<mailto:[email protected]>> wrote:
When using dispatchable loads, the range of load variation is determined by the 
limits on the associated “generator”. So for a load that can be dispatched 
between 50 and 100 MW, you would set PMIN to -100 and PMAX to -50.

Where it is dispatched within that range is determined by the “cost” defined in 
gencost.

You say that your load “only reduces but it does not increase”. I assume by 
that you are referring to changes from the original fixed load value, which 
load2disp() uses to set PMIN. If you want to allow the load to increase from 
there, you have to choose a smaller PMIN. To get the desired result, you will 
also need to make sure that you set the “costs” to reflect the value of serving 
that load.

Hope this helps,

    Ray



On Oct 13, 2022, at 6:22 AM, Lois Efe 
<[email protected]<mailto:[email protected]>> wrote:

Hi Ray,

I have done that, and my load only reduces but it does not increase. I tried 
using the if/else rule but it didn't work.
Please how can I do this,
Also, how can I add constraints in my OPF code, say I want to ensure that the 
load reduction doesn't exceed a particular value?


Best Regards,
Lois.

On Sat, Sep 10, 2022 at 1:35 AM Ray Daniel Zimmerman 
<[email protected]<mailto:[email protected]>> wrote:
Sorry, no video about it, but you can use the load2disp() function to turn your 
loads into dispatchable loads, then they will be dispatched based on cost, just 
like a generator.

    Ray


> On Sep 7, 2022, at 6:16 AM, Lois Efe 
> <[email protected]<mailto:[email protected]>> wrote:
>
> Hi all,
>
> Can anyone recommend a link or video on how to make my OPF code reduce and 
> increase load at each bus using matpower?
>
> Best Regards,
> Lois.






Reply via email to