Thank you for the time spent in answering my questions.
I probably don’t need to add a new variable in my current scenario. I have done 
several tests with my network but i still have some issues.
The P absorbed by the dispatchable load is treated as negative in the equation 
of the costs, am i right? If i want to optimize Va,Vm and P absorbed by the 
dispatchable loads , but not the other Pg and Qg, is it enough to put 0s in the 
respective gencost matrix’s rows?
Unfortunatelly with the default options the program doesn’t converge, i have a 
numerical failure using MIPS. The P absorbed by the disp. Loads exceeds the 
constraints, and the Vm of the buses does it too, but i think that thanks to 
your help i am moving in the right direction.  
Thank you again,

Davide

Da: Ray Daniel Zimmerman
Inviato: venerdì 9 ottobre 2020 15:56
A: MATPOWER-L
Oggetto: Re: Bus, Loads and Generators question

The P absorbed by the dispatchable load is already an optimization variable, 
included in Pg, since dispatchable loads are modeled as negative generators. So 
you may not even need to add a variable. Furthermore, you can already impose 
costs on those variables via the gencost matrix. 

If you simply want to maximize the power absorbed by the dispatchable loads, 
you just need to make sure that you use a large enough negative cost (on the 
negative injection). You may find load2disp() to be helpful.

If you do need a new variable, it is introduced through the A matrix in the 
user-defined linear constraints. You simply define linear constraints that 
include extra columns corresponding to the new variables. They are related to 
the existing variables through this constraint matrix whose existing columns 
correspond to Va, Vm, Pg, Qg, for the standard formulation. See equations (6.5) 
and (6.38), (6.39) in the manual.

   Ray



On Oct 8, 2020, at 11:09 AM, Davide Maglione <[email protected]> 
wrote:

Hi Ray
 
Thank you for your kind and fast response!
I think your suggestion is right, i should lean toward the direct 
specification. I will try to be more clear about what i am trying to do.
I have only one specific case, but i have to see what happens in different 
periods of time. I would like to initialize dispatchable loads in specific 
times inside my loop, and during those times i am trying to optimize (maximize) 
the surplus energy absorbed, coming from the generators.
So what i have in mind, and i am sure it’s possible to do with your software, 
is to create a new variable (the P absorbed by the disp. Loads), add some 
constraints based on the maximum demand and voltage of the dispatchable Load’s 
bus and finally add the cost function (function of the P absorbed by the loads 
and the maximum surplus available in that time) to be minimized by the 
algorithm.
 
Am i on the right direction using the direct specification? When i add a new 
variable how can i refer it specifically to a variable in the mpc (for example 
the P absorbed by a load)?
 
Sincerely, thank you again for all your help,
 
Davide
 
Da: Ray Daniel Zimmerman
Inviato: giovedì 8 ottobre 2020 16:02
A: MATPOWER-L
Oggetto: Re: Bus, Loads and Generators question
 
H
 


Mail priva di virus. www.avast.com



-- 
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Reply via email to