设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4780|回复: 2

[交流] 关于优化工具中约束条件的表达

[复制链接]
发表于 2009-5-21 16:44:46 | 显示全部楼层 |阅读模式
EXTEND中的优化工具中的约束条件如果是含有>=或者<=的数学式子,该如何表示?
发表于 2009-5-21 20:36:24 | 显示全部楼层
个人想法:
% N2 y* l0 Y; ^1 g约束条件是在上面的Table里面直接输入最大最小值吧。
( W/ e; }6 k; k. R! hMinimum Limit: Table Column 5: The minimum value that this variable can be set to by the Optimizer block. If it is entered without a decimal point, it can only assume integer values. Do not enter limits for variables that are used as results from the model (i.e. Exited from an Exit block).
1 {9 B& V$ |7 `$ {0 D" g" _- `( x2 U: n" |! G
Maximum Limit: Table Column 6: The maximum value that this variable can be set to by the Optimizer block. If it is entered without a decimal point, it can only assume integer values. Do not enter limits for variables that are used as results from the model (i.e. Exited from an Exit block).+ ]2 a. R  B  O: T2 |* e/ {6 D) e) ~
下面的Equation栏里面应该写入目标函数吧。( m1 ~! z$ J: J3 L, ]. p9 M6 C
MaxProfit (MiniCost)= Var0 + Var1 + Var2;
发表于 2009-5-22 16:37:01 | 显示全部楼层
哦,搞错了,抱歉
) e. w5 {- V3 x不等式都是在条件里面如1 X* i2 U+ p" w' u8 ~4 B
if (DelTankSize >= 6000 && DeliveryTimes < 60)
' \8 M& M2 h% N' E  t% JReject = TRUE;  //  你的意思是这个地方是不等式的情况吗?手册里好像没有这样的说明。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-6-27 18:13 , Processed in 2.033610 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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