'quadprog' getting empty output , how to rectify?

조회 수: 2 (최근 30일)
rajesh kumar
rajesh kumar 2020년 3월 31일
답변: Sivsankar 2024년 11월 26일
aaa=[0.0014 0 0 0;0 0.0006 0 0;0 0 0.0040 0;0 0 0 0.0016];
>> bbb=[16.1900 17.2600 16.6000 27.7400];
>> ccc=[1 1 1 1];
>> ddd=1000.6;
>> eee=[150.000 238.0534 20.000 25.000];
>> fff=[455.000 283.0534 130.000 85.000];
>> ggg=[302.500 260.5534 75.000 55.000];
>> options=optimset('LargeScale','off','MaxPCGIter',50,'PrecondBandWidth',inf);
>> [sss,ooo]=quadprog(aaa,bbb,[],[],ccc,ddd,eee,fff,ggg,options);
i getting sss=[] and ooo=[] why?

답변 (1개)

Sivsankar
Sivsankar 2024년 11월 26일
When I ran your script, got a warning that the problem was infeasible. It suggests that while executing the ‘quadprog’ function, during the ‘presolve’, the solver found that the problem has an inconsistent formulation. Inconsistent means not all constraints can be satisfied at a single point x.
In other terms, ‘quadprog’ found the constraints to be inconsistent within the constraint tolerance. So, make sure that your variables abide by the constraint tolerances. You can view the constraint tolerances from here for presolve and make modifications to your variables accordingly:
Thank you!

카테고리

Help CenterFile Exchange에서 Particle Swarm에 대해 자세히 알아보기

태그

제품


릴리스

R2016a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by