注册 登录
Simwe仿真论坛(forum.simwe.com),CAE/CAD/CAM/,FEA/FEM/有限元分析论坛---(手机验证注册) 返回首页

TBE_Legend的个人空间 https://home.simwe.com/?355196 [收藏] [复制] [分享] [RSS]

日志

both mmtc and maple allow users to specify derivatives

已有 362 次阅读2009-12-14 10:20 |个人分类:mmtc_maple

both mmtc and maple allow users to specify derivatives of objective functions in a local optimization problem.
 
 
f[x_?NumberQ, y_?NumberQ] := Cos[x^2 - 3 y] + Sin[x^2 + y^2]
fx[x_?NumberQ, y_?NumberQ] := 2 x Cos[x^2 + y^2] - 2 x Sin[x^2 - 3 y];
fy[x_?NumberQ, y_?NumberQ] := 2 y Cos[x^2 + y^2] + 3 Sin[x^2 - 3 y];
FindMinimum[f[x, y], {x, y}, Gradient :> {fx[x, y], fy[x, y]}]
 
Optimization algerithm of maple itself really sucks and it  acctually has no global optimization method!! So maple resort to its partners such as NAG and pinter.

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-19 04:22 , Processed in 0.020993 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

返回顶部