簡體   English   中英

我應該在哪里寫 Anylogic 中動態變量的 if 條件?

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

我必須在 Anylogic 中為動態變量編寫以下條件:“當按訂單銑削加上銑削庫存小於銑削重新訂購點時,放置的銑削是按訂單銑削;否則為零”但我不知道我應該怎么做 go。 變量賦值圖像

語法 1(如果直接寫在動態字段中):

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

語法 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