楼主: yijianpiao235
2165 1

[程序分享] matlab二次规划 [推广有奖]

  • 42关注
  • 4粉丝

已卖:266份资源

副教授

33%

还不是VIP/贵宾

-

威望
0
论坛币
3133 个
通用积分
10.1377
学术水平
4 点
热心指数
5 点
信用等级
4 点
经验
38818 点
帖子
666
精华
0
在线时间
774 小时
注册时间
2009-10-11
最后登录
2025-3-24

楼主
yijianpiao235 发表于 2011-5-7 21:39:42 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
matlab二次规划源码
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:MATLAB matla atlab 二次规划 Lab MATLAB 二次规划

第12章 二次规划.rar
下载链接: https://bbs.pinggu.org/a-904878.html

1.71 KB

需要: 6 个论坛币  [购买]

沙发
matlab-007(未真实交易用户) 发表于 2014-11-29 16:14:30
QUADPROG Quadratic programming.
X=QUADPROG(H,f,A,b) attempts to solve the quadratic programming problem:

min 0.5*x'*H*x + f'*x subject to: A*x <= b
x

X=QUADPROG(H,f,A,b,Aeq,beq) solves the problem above while additionally
satisfying the equality constraints Aeq*x = beq.

X=QUADPROG(H,f,A,b,Aeq,beq,LB,UB) defines a set of lower and upper
bounds on the design variables, X, so that the solution is in the
range LB <= X <= UB. Use empty matrices for LB and UB
if no bounds exist. Set LB(i) = -Inf if X(i) is unbounded below;
set UB(i) = Inf if X(i) is unbounded above.

X=QUADPROG(H,f,A,b,Aeq,beq,LB,UB,X0) sets the starting point to X0.

X=QUADPROG(H,f,A,b,Aeq,beq,LB,UB,X0,OPTIONS) minimizes with the default
optimization parameters replaced by values in the structure OPTIONS, an
argument created with the OPTIMSET function. See OPTIMSET for details.
Used options are Display, Diagnostics, TolX, TolFun, HessMult, LargeScale,
MaxIter, PrecondBandWidth, TypicalX, TolPCG, and MaxPCGIter. Currently,
only 'final' and 'off' are valid values for the parameter Display ('iter'
is not available).

X=QUADPROG(Hinfo,f,A,b,Aeq,beq,LB,UB,X0,OPTIONS,P1,P2,...) passes the
problem-dependent parameters P1,P2,... directly to the HMFUN function
when OPTIMSET('HessMult',HMFUN) is set. HMFUN is provided by the user.
Pass empty matrices for A, b, Aeq, beq, LB, UB, XO, OPTIONS, to use the
default values.

[X,FVAL]=QUADPROG(H,f,A,b) returns the value of the objective function at X:
FVAL = 0.5*X'*H*X + f'*X.

[X,FVAL,EXITFLAG] = QUADPROG(H,f,A,b) returns an EXITFLAG that describes the
exit condition of QUADPROG. Possible values of EXITFLAG and the corresponding
exit conditions are

1 QUADPROG converged with a solution X.
3 Change in objective function value smaller than the specified tolerance.
4 Local minimizer found.
0 Maximum number of iterations exceeded.
-2 No feasible point found.
-3 Problem is unbounded.
-4 Current search direction is not a direction of descent; no further
progress can be made.
-7 Magnitude of search direction became too small; no further progress can
be made.

[X,FVAL,EXITFLAG,OUTPUT] = QUADPROG(H,f,A,b) returns a structure
OUTPUT with the number of iterations taken in OUTPUT.iterations,
the type of algorithm used in OUTPUT.algorithm, the number of conjugate
gradient iterations (if used) in OUTPUT.cgiterations, a measure of first
order optimality (large-scale method only) in OUPUT.firstorderopt, and the
exit message in OUTPUT.message.

[X,FVAL,EXITFLAG,OUTPUT,LAMBDA]=QUADPROG(H,f,A,b) returns the set of
Lagrangian multipliers LAMBDA, at the solution: LAMBDA.ineqlin for the
linear inequalities A, LAMBDA.eqlin for the linear equalities Aeq,
LAMBDA.lower for LB, and LAMBDA.upper for UB.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-20 05:14