Hello All,
I need help with the problem below, I think the problem is in the equation “AgebtoPtoEnc…â€
I’ll be very gratefully if someone could help me.
Best Regards
VÃctor OrtÃz
\
- TITLE Set Covering;
Set i / i1*i6 / ;
Set k / k1*k6 / ;
Table d(i,k)
k1 k2 k3 k4 k5 k6
i1 1 1 0 1 0 0
i2 1 1 1 0 0 0
i3 0 1 1 0 0 1
i4 1 0 0 1 1 0
i5 0 0 0 1 1 1
i6 0 0 1 0 1 1 ;
Binary Variable Y(k);
Variables
z “Set Covering”
Equation AgebtoPtoEnc , Def_obj ;
AgebtoPtoEnc…
sum(k, Y(k)*d[i,k)) =g= 1 ;
Def_obj…
z =e= sum(k, Y(k));
Model setcovering / all / ;
Solve setcovering using mip minimizing z;
Display z.l, y.l ;
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
\