Indicator Constraints

Problems with syntax of GAMS
Post Reply
Nikou
User
User
Posts: 33
Joined: 4 years ago

Indicator Constraints

Post by Nikou »

Hi

I try to work with indicator constraints but I seem to make somewhere a mistake

I declare the equations

indicatorEq(i,j,k,i1,j1,k1,s)..
tS(i,j,k) - tS(i1,j1,k1) =g= feasEps ;

which should become active if PIn(i,j,k,i1,j1,k1) = 0

In the option file cplex.opt I write:

indic indicatorEq(i,j,k,i1,j1,k1,s)$PIn(i,j,k,i1,j1,k1) 0

When solving, GAMS terminates with the message:

Error: Column not a binary variable
Option record: indic indicatorEq(i,j,k,i1,j1,k1,s)$PIn(i,j,k,i1,j1,k1) 0

But the variable PIn(i,j,k,i1,j1,k1) is declared as binary.

What am I doing wrong?
User avatar
bussieck
Moderator
Moderator
Posts: 1042
Joined: 7 years ago

Re: Indicator Constraints

Post by bussieck »

Can you send a workable small example? -Michael
Nikou
User
User
Posts: 33
Joined: 4 years ago

Re: Indicator Constraints

Post by Nikou »

Hello Michael

It was my mistake.

I declared everything correctly but then I made the statement

P.prior(i,j,k,i1,j1,k1) = INF

This has obviously the effect to declare/treat P(i,j,k,i1,k1,k1) as non-binary.

I fixed my mistake by deleting the priority assignment; now everything works fine.

Thank you very much your time
Post Reply