Please look at this .. I am having error in the
model.add(cost[i] == costMatrix[i](supplier[i]));
model.add(open(supplier[i])==1 );
Please look at this .. I am having error in the
model.add(cost[i] == costMatrix[i](supplier[i]));
model.add(open(supplier[i])==1 );
> costMatrix[i](supplier[i])
The ( ) is the function call.
It thinks costMatrix[i] should be a function (and it isn't).
Did you mean to perform some calculation, say
costMatrix[i] * (supplier[i])