简体   繁体   English

我应该在哪里写 Anylogic 中动态变量的 if 条件?

[英]Where should I write the if condition for a dynamic variable in Anylogic?

I have to write the following condition for a dynamic variable in Anylogic: "When milling on order plus milling inventory is less than milling reordering point, then milling placed is milling to order; otherwise, it is zero" but I don't know in what way should I go.我必须在 Anylogic 中为动态变量编写以下条件:“当按订单铣削加上铣削库存小于铣削重新订购点时,放置的铣削是按订单铣削;否则为零”但我不知道我应该怎么做 go。 Variable Assignment Image变量赋值图像

Syntax 1 (if written in a dynamic field directly):语法 1(如果直接写在动态字段中):

(milling on order) + (milling inventory) < (milling reordering point) ? (milling to order) : 0

Syntax 2 (if written as code):语法 2(如果写成代码):

if( (milling on order) + (milling inventory) < (milling reordering point) )
milling placed = milling to order;
else
milling placed = 0;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM