当前位置:网站首页>非线性优化问题---MATLAB
非线性优化问题---MATLAB
2022-04-22 17:09:00 【小宇2022】
options = optimset('LargeScale','off','display','iter');
%参数设置使用中等规模算法,显示迭代过程
A=[-1,-2,-2; %线性不等式约束系数矩阵
1, 2, 2];
b=[0;72];%线性不等式约束常量向量
x0=[10,10,10];%初始迭代点
[x,fval,exitflag,output]= fmincon(@confun_1,x0,A,b,[],[],[],[],[],options)```
```handlebars
First-order Norm of
Iter F-count f(x) Feasibility optimality step
0 4 -1.000000e+03 0.000e+00 9.899e+01
1 8 -3.055040e+03 0.000e+00 2.098e+02 7.873e+00
2 12 -3.219148e+03 0.000e+00 6.463e+01 1.950e+00
3 16 -3.451737e+03 0.000e+00 1.465e+01 6.335e+00
4 20 -3.455915e+03 0.000e+00 1.420e+00 8.879e-01
5 24 -3.456000e+03 0.000e+00 2.794e-02 1.232e-01
6 28 -3.456000e+03 0.000e+00 2.106e-02 2.759e-03
7 35 -3.456000e+03 0.000e+00 9.884e-03 2.060e-03
8 39 -3.456000e+03 0.000e+00 7.938e-04 1.725e-03
9 43 -3.456000e+03 0.000e+00 1.255e-05 6.531e-05
Local minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in
feasible directions, to within the value of the optimality tolerance,
and constraints are satisfied to within the value of the constraint tolerance.
<stopping criteria details>
x =
24.0000 12.0000 12.0000
fval =
-3.4560e+03
exitflag =
1
output =
包含以下字段的 struct:
iterations: 9
funcCount: 43
constrviolation: 0
stepsize: 6.5312e-05
algorithm: 'interior-point'
firstorderopt: 1.2552e-05
cgiterations: 0
message: '↵Local minimum found that satisfies the constraints.↵↵Optimization completed because the objective function is non-decreasing in ↵feasible directions, to within the value of the optimality tolerance,↵and constraints are satisfied to within the value of the constraint tolerance.↵↵<stopping criteria details>↵↵Optimization completed: The relative first-order optimality measure, 4.358349e-08,↵is less than options.OptimalityTolerance = 1.000000e-06, and the relative maximum constraint↵violation, 0.000000e+00, is less than options.ConstraintTolerance = 1.000000e-06.↵↵'
bestfeasible: [1×1 struct]
版权声明
本文为[小宇2022]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_38127487/article/details/124342481
边栏推荐
- Jiaoxia is following the old path of perfect diary
- openstack利用devstack安装,安装之后dashboard报错Internal Server Error
- JS中递归返回值为undefined
- MySQL笔记(基础篇)
- There was another bug today. When mogodb was used to query data, it was found that the returned data was null
- [sentence pattern] 24. Special questions
- 写LeetCode发现的一些神奇语句
- leetcode:23. 合并K个升序链表
- Will Liu is a tiktok bit.
- 基于深度模型的日志序列异常检测
猜你喜欢

400 million women just need, all kinds of capital kill: 100 billion business hidden in sanitary napkins

Vscode plug-in package migration and specified location
![[Golang]力扣Leetcode - 657. 机器人能否返回原点(模拟)](/img/b1/035c907253739a3e8c68b5934fd4e0.png)
[Golang]力扣Leetcode - 657. 机器人能否返回原点(模拟)

7 interview questions about closure

Concept and application of logarithm

阿里云日志服务sls的典型应用场景

ES6 Reflect对象

SDN学习之Opendaylight浅析(三)

Knowing that it is listed in Hong Kong, it is the first Chinese concept stock to return to Hong Kong with dual main listing

Detailed explanation of kubernetes (VII) -- service object deployment and Application
随机推荐
Regular matching URL
ES6 对象扩展 链判断运算符 和 Null判断运算符
bisect——对列表插入新数据仍然保持有序
pip install 镜像源
Facing the global market, platefarm today logs in to four major global platforms such as Huobi
webrtc入门:4.RTCPeerConnection连接音视频流
2022年湖南省初级会计职称考试经济法基础练习题及答案
Design from 0_ Rc522 read / write card based on stm32f1
Devaxpress WPF Getting Started Guide - POCO view model generated at runtime (I)
基于深度学习的日志数据异常检测
ES6 Generator函数和async函数
Check whether the paper is retrieved by SCI
MySQL_ 00_ Get to know MySQL
AQS source code reading
JS中递归返回值为undefined
PIP install image source
CVPR2019领域自适应/语义分割:Adapting Structural Information across Domains for Boosting Sema适应结构信息跨领域促进语义分割
【分布式项目】认证服务中心、社交登录OAuth2.0、单点登录、分布式Session解决方案
Typical application scenarios of alicloud log service SLS
刘畊宏是抖音的钻头