Can I lump my constraints so as to avoid adding unnecessary optimization variables
Show older comments
I have an optimization problem with numerous decision variables. Among them, a small portion of them participates in objective functions and some constraints. Other optimization variables participate in other constraints (most of them). As performance of fmincon may depends on number of decision variables, Can I lump some constraint in order to avoid adding unnecessary decision variables? For example: I have the following constraints (it's part of them). pgn,pdn,v_mt,Delta,pg,pd are optimization variables.
% First we define the new variables for the sake of
%readability of the scrips (I write only some of them here...):
pgn = X( 145:183 )';
pdn = X( 184:222 )';
pg = X( 301:310 )';
pd = X( 321:339 )';
...
pbal_eq = -(pgn-pdn)+v_mt.*((Ybus_m.*cos(Delta))*v_mt);% pgn:39/pdn:39/v_m:39/v_a=39 (39 eq)
pgn_eq = - pgn + [zeros(29,1);pg]; (39 eq)
pdn_eq= -pdn+[0;0;pd(1);pd(2);0;0;pd(3);pd(4);0;0;0;pd(5);0;0;pd(6);pd(7);0;pd(8);0;pd(9);...
pd(10);0;pd(11);pd(12);pd(13);pd(14);pd(15);pd(16);pd(17);0;pd(18);0;0;0;0;0;0;0;pd(19)];%(39eq)
Ceq=[pbal_eq;pgn_eq;pdn_eq]
Can I lump it this way and avoid having unnecessary optimization variables? So decision variables , pgn,pdn are neglected and only v_mt,Delta,pg,pd are kept.
pgn=[zeros(29,1);pg]; %
pdn= [0;0;pd(1);pd(2);0;0;pd(3);pd(4);0;0;0;pd(5);0;0;pd(6);pd(7);0;pd(8);0;pd(9);...
pd(10);0;pd(11);pd(12);pd(13);pd(14);pd(15);pd(16);pd(17);0;pd(18);0;0;0;0;0;0;0;pd(19)];%(39eq)
pbal_eq = -(pgn-pdn)+v_mt.*((Ybus_m.*cos(Delta))*v_mt);% pgn:39/pdn:39/v_m:39/v_a=39 (39 eq)
Ceq=[pbal_eq];
I know that constraints pgn_eq and pdn_eq are linear, so I should apply them with Aeq , Beq matrices. But I am writing it this way to get the gist of lumping the constraints. How ever, it doesnt change the fact, because I can still lump them in Aeq , Beq too if the idea of lumping the constraints is correct. Moreover, if lumping is possible, so I dont need to define linear constraints in Aeq,Beq for pgn , pdn. In that case, I only have one nonlinear equality constraint (pbal_eq). (if we assume these as the whole constraints I have)
Accepted Answer
More Answers (0)
Categories
Find more on Choose a Solver in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!