楼主: andrewlayer
2645 1

[问答] matlab求解二元函数最大值 [推广有奖]

  • 2关注
  • 3粉丝

已卖:1967份资源

本科生

44%

还不是VIP/贵宾

-

威望
0
论坛币
5593 个
通用积分
9.9046
学术水平
3 点
热心指数
5 点
信用等级
4 点
经验
1096 点
帖子
57
精华
0
在线时间
94 小时
注册时间
2012-3-26
最后登录
2024-8-5

楼主
andrewlayer 发表于 2014-12-29 22:21:58 |AI写论文
50论坛币

y1=(p1-195)*3450.9*(2*(0.1645*832+129.05)/(0.1612*p1+121.61+0.1645*p2+129.05)).^1.6587*exp(-2*(0.1612*p1+121.61)/(0.1612*p1+121.61+0.1645*p2+129.05))/(exp(-2*(0.1612*p1+121.61)/(0.1612*p1+121.61+0.1645*p2+129.05))+exp(-2*(0.1645*p2+129.05)/(0.1612*p1+121.61+0.1645*p2+129.05)));

w1=(p2-372)*3450.9*(2*(0.1645*832+129.05)/(0.1612*p1+121.61+0.1645*p2+129.05)).^1.6587*exp(-2*(0.1645*p2+129.05)/(0.1612*p1+121.61+0.1645*p2+129.05))/(exp(-2*(0.1612*p1+121.61)/(0.1612*p1+121.61+0.1645*p2+129.05))+exp(-2*(0.1645*p2+129.05)/(0.1612*p1+121.61+0.1645*p2+129.05)));

求p1在(195,558),p2在(372,940)范围内,两个函数的最大值,以及相应的p1,p2值,我编出的程序直接显示

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. 哪位大牛能不能帮忙编下程序啊,急求啊

关键词:MATLAB matla atlab 二元函数 Mat matlab 最大值 二元函数

沙发
TimeT 发表于 2015-1-2 22:48:51
我利用EXCEL的SOLVER算出来的值供你参考:
y1最大值=944317.200240146,当p1,p2取如下值时取得:
558.000000000
372.000000000

w1最大值=964143.177521792,当p1,p2取如下值时取得:
210.111434485846
940.00000000000

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-1 11:19