Originally posted by: Ed Chamberlayne
This is a follow-up on a July 2009 post.
Has anyone successfully used indicator constraints in lieu of Big M constraints?
I'm a little confused on the notation in OPL versus AMPL. What has replaced "==>" that was used in AMPL? Is it "=>" which I thought was greater or equal to as well?
My previous code was:
forall (<i,j> in ordlinks, t in 1..T)
e1p[<i,j>,t] <= maxl(N[i],N[j])*z1[<i,j>,t];
forall (<i,j> in ordlinks, t in 1..T)
e1n[<i,j>,t] <= maxl(N[i],N[j])*(1-z1[<i,j>,t]);
where z1 is a binary variable and e1p,e1n are non-negative floats.
I've since replaced this with:
forall (<i,j> in ordlinks, t in 1..T)
z1[<i,j>,t]==1 => e1p[<i,j>,t] <= maxl(N[i],N[j]) && e1n[<i,j>,t]==0;
forall (<i,j> in ordlinks, t in 1..T)
z1[<i,j>,t]==0 => e1n[<i,j>,t] <= maxl(N[i],N[j]) && e1p[<i,j>,t]==0;
are these equivalent?
Thanks,
Ed
#DecisionOptimization#OPLusingCPLEXOptimizer