yiumao 发表于 2007-4-2 10:56

请高手相助——用matlab求回归方程极值!谢谢!

大家好,我现在有一个回归方程,Y=88.7+1.03A-0.75C-2.76A^2-2.33B*C。其中A的范围是(180-210),B的范围是(300-350),C的范围是(30-40),请问可否用matlab求得Y的极值啊? 可否给个程序? 谢谢大家了!

xjzuo 发表于 2007-4-2 11:38

help fmincon 试试.

yiumao 发表于 2007-4-2 16:10

回复 #2 xjzuo 的帖子

不行啊,
Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Error using ==> inlineeval
Error in inline expression ==> -88.7-1.03A+0.75C+2.76A2+2.33B*C       
??? Error: Missing MATLAB operator.

eight 发表于 2007-4-2 18:19

原帖由 yiumao 于 2007-4-2 16:10 发表
不行啊,
Error using ==> fmincon
FMINCON cannot continue because user supplied objective function failed with the following error:
Error using ==> inlineeval
Error in inline expression...


建议先阅读最基本的matlab书籍,了解变量名的用法、相乘的写法还有点运算与矩阵运算的区别
页: [1]
查看完整版本: 请高手相助——用matlab求回归方程极值!谢谢!