| 3 | 1/1 | 返回列表 |
| 查看: 414 | 回復: 2 | |||
[求助]
matlab工具箱能正常運行,但是跳出warning怎么回事
|
|
function f =myfun(x) f =-x(1) * x(2) * x(3); function [c , ceq] = mycon(x) c=[]; ceq = x(2) *x(3) + x(3) *x(1) + x(1) * x(2)-75; x0=[4;5;6]; lb=zeros(3,1); [x,fval,exitflag,output,lambda]=fmincon(@myfun,x0,[],[],[],[],lb,[],@mycon) Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set algorithm. You could also try the interior-point algorithm: set the Algorithm option to 'interior-point' and rerun. > In fmincon at 460 Local minimum possible. Constraints satisfied. fmincon stopped because the size of the current search direction is less than twice the default value of the step size tolerance and constraints were satisfied to within the default value of the constraint tolerance. No active inequalities. x = 5.0000 5.0000 5.0000 fval = -125.0000 exitflag = 4 output = iterations: 7 funcCount: 30 lssteplength: 1 stepsize: 1.1815e-006 algorithm: 'medium-scale: SQP, Quasi-Newton, line-search' firstorderopt: 2.4478e-006 constrviolation: 8.4075e-007 message: [1x770 char] lambda = lower: [3x1 double] upper: [3x1 double] eqlin: [0x1 double] eqnonlin: 2.5000 ineqlin: [0x1 double] ineqnonlin: [0x1 double] 為什么結(jié)果都出來了,還有一個warning,這事怎么回事啊?這個warning會影響我的優(yōu)化結(jié)果嗎?誰能把幫幫我。。。 |
無蟲
彩色掛圖
![]() |
專家經(jīng)驗: +2 |

| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 086000生物與醫(yī)藥 初試274求調(diào)劑 +5 | 小叮當來了 2026-03-30 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 324求調(diào)劑 +4 | 想上學求調(diào) 2026-04-01 | 5/250 |
|
|
[考研] 英一數(shù)一408,總分284,二戰(zhàn)真誠求調(diào)劑 +5 | 12.27 2026-03-30 | 7/350 |
|
|
[考研] 一志愿同濟大學323分(080500)求調(diào)劑 +4 | yikeniu 2026-04-01 | 4/200 |
|
|
[考研] 材料調(diào)劑 +5 | 一樣YWY 2026-04-01 | 5/250 |
|
|
[考研] 282求調(diào)劑 +12 | ycy1201 2026-04-01 | 14/700 |
|
|
[考研] 271求調(diào)劑 +11 | 勒布朗@ 2026-03-31 | 13/650 |
|
|
[考研] 304求調(diào)劑 +10 | 素年祭語 2026-03-31 | 13/650 |
|
|
[考研] 化學0703 調(diào)劑 306分 一志愿211 +12 | 26要上岸 2026-03-28 | 12/600 |
|
|
[考研] 358求調(diào)劑 +3 | 王向陽花 2026-03-31 | 3/150 |
|
|
[考研] 288資源與環(huán)境專碩求調(diào)劑,不限專業(yè),有學上就行 +25 | lllllos 2026-03-30 | 26/1300 |
|
|
[考研] 301求調(diào)劑 +8 | axibli 2026-04-01 | 8/400 |
|
|
[考研] 一志愿 南京航空航天大學 ,080500材料科學與工程學碩 +10 | @taotao 2026-03-31 | 11/550 |
|
|
[考研] 調(diào)劑申請 +8 | 張張張張zy 2026-03-31 | 9/450 |
|
|
[考研] 一志愿211,335分,0856,求調(diào)劑院校和導師 +10 | 傾____蕭 2026-03-27 | 11/550 |
|
|
[考研] 329求調(diào)劑 +8 | 星野? 2026-03-26 | 8/400 |
|
|
[考研] 311求調(diào)劑 +10 | lin0039 2026-03-26 | 10/500 |
|
|
[考研] 332求92調(diào)劑 +8 | 蕉蕉123 2026-03-28 | 8/400 |
|
|
[考研] 308求調(diào)劑 +7 | 墨墨漠 2026-03-27 | 7/350 |
|
|
[考研] 315調(diào)劑 +4 | 0860求調(diào)劑 2026-03-26 | 5/250 |
|