How do you plot quadprog vs some parameters.

조회 수: 4 (최근 30일)
Ran Hu
Ran Hu 2018년 11월 25일
편집: Ran Hu 2018년 11월 25일
So here is it code.
H = [0.02553, -0.00327, 0.00019;
-0.00327, 0.013400, -0.00027;
0.00019, -0.00027, 0.00125;];
c = [0 0 0];
A = -[0.0972, 0.0657, 0.0537] ;
b = -[0.01];
Aeq = [1 1 1];
beq = [1];
ub = [inf; inf; inf;];
lb = [0; 0; 0;] ;
[x, fval] = quadprog(H, c, A, b, Aeq, beq, lb, ub);
I would like to plot fval versus a range of value b from 0.01 to say 0.09. Any ideas? Thanks!
  댓글 수: 2
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 11월 25일
lb?
Ran Hu
Ran Hu 2018년 11월 25일
편집: Ran Hu 2018년 11월 25일
lb is just lower boundry condition, fixed it :P the parameter b = -[0.01] . I want it from 0.01 to 0.09. I could just run 9 times get the value and plot. But I dont know how to plot it in one program.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by