I'm trying to solve a VRP-model and I receive "Error 101 Incompatible types for operator ('set of integer' * 'mpvar' not defined)" when I try to run, and I have no idea how to solve this. The error is located at this line:
Obj := sum(vv in Vessels, rr in Routes) C(vv,rr)*x(vv,rr);
Vessels := 1..2;
Routes := 1..132; and declared as set of integer before this.
C: dynamic array(Vessels, Routes) of set of integer;
where C is initialized from a txt-file and then finalized:
forall(vv in Vessels, rr in Routes) finalize(C(vv,rr));
All entries in C are integer and C is on the form: (1 1) [ 0 ]
(1 2) [ 1200 ] etc..
And then the decision variable x:
x: dynamic array(Vessels, Routes) of mpvar;
forall (vv in Vessels, rr in Routes) do
Obj is declared as linctr