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 <r...@cornell.edu> 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 <efeloi...@gmail.com> 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 <r...@cornell.edu> > 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 <efeloi...@gmail.com> 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. >> >> >> >> >