[問題] 關於cplex的問題
請各位有使用過cplex的大大幫忙
float information2[Stores][inf]=...;
dvar boolean Supply[Stores];
int D[inf];
execute{
for (var i in inf)
for(var j in Stores)
var D[i]=D[i] + Supply[j]*information2[j][i];
}
或是
execute error{
for (var i in inf)
var D[i]=sum(j in Stores)(Supply[j]*information[j][i]);
}
綠色的兩行總是出現錯誤訊息:
Scripting parser error: missing ';' or newline between statements.
煩請各位大大幫忙
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 120.107.149.92
※ 編輯: tgplf2x3 來自: 120.107.149.92 (10/20 20:31)
※ 編輯: tgplf2x3 來自: 120.107.149.92 (10/20 20:31)
→
10/20 21:27, , 1F
10/20 21:27, 1F
→
10/20 23:02, , 2F
10/20 23:02, 2F
→
10/20 23:03, , 3F
10/20 23:03, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章