数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 4080|回复: 3

不会用fmincon函数

[复制链接]
发表于 2003-8-6 01:04:09 | 显示全部楼层 |阅读模式
我在做一个最优投资的题目,用的是matlab6.0,但不会用fmincon函数,资料书也没讲清,敬请各位大侠指教
发表于 2003-8-6 01:54:13 | 显示全部楼层
学会查帮助,学Matlab看任何书的作用都没有看帮助的大。
在Command中敲help fmincon。
发表于 2003-8-6 09:45:52 | 显示全部楼层
Examples
      FUN can be specified using @:
         X = fminsearch(@sin,3)
      finds a minimum of the SIN function near 3.
      In this case, SIN is a function that returns a scalar function value
      SIN evaluated at X.

      FUN can also be an inline object:
         X = fminsearch(inline('norm(x)'),[1;2;3])
      returns a minimum near [0;0;0].
给你两个例子。
 楼主| 发表于 2003-8-9 21:04:45 | 显示全部楼层
多谢各位大虾赐教!!
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-3-29 22:18 , Processed in 0.054395 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表