lingo 如何表示 两个和式的或?规划目标矩阵的每一行,可以是4也可以是5,这个怎么表示? @for(supply(j):@sum(demand(i):x(i,j))=5#or#supply(j):@sum(demand(i):x(i,j))=4);@for(supply(j):(@sum(demand(i):x(i,j))=5#or#@sum(demand(i):x(i,j))=4));

问题描述:

lingo 如何表示 两个和式的或?
规划目标矩阵的每一行,可以是4也可以是5,这个怎么表示?
@for(supply(j):@sum(demand(i):x(i,j))=5#or#supply(j):@sum(demand(i):x(i,j))=4);
@for(supply(j):(@sum(demand(i):x(i,j))=5#or#@sum(demand(i):x(i,j))=4));