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])
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.