Dear MATPOWER-Team    

     I try to add some variables, constraints or cost function , but I can’
t understand the document about Extended OPF Formulation .

     First I load a case like

mpc=loadcase(‘case14’); 

mpopt = mpoption;

mpc = ext2int(mpc);

     Then I try to add a simple constraints to test, 

om = opf_setup(mpc, mpopt);

mpc = add_userfcn(mpc, ‘formulation’ , myfunction(om));

 

     Here myfunction is define_constants;

 
Define_constants

A =ones(1,14); 

L = zeros(1,14); 

U= ones(1,14)*20, 

Om = add_constraints(om, ‘Myconstraints’,A,L,U,{‘Va’});

 

     But I can’t use runopf(mpc), I don’t know how to solve the case. 

        In the case14, there is no reserves, I don’t know what the reserves
means,

       I ask for an example to show the process about how to extend
something.

     I hope you can help me.

Reply via email to