I am a beginner on AIMMS. I want to use AIMMS to solve my integer programming model. Now I need some help about my AIMMS code.
Let me take a simple example to explain my problem:
x is a 0-1 integer variable, and y is an integer variable.
I need a constraint that if y>0, then x=1; if y<=0, then x=0.
Therefore, I describe the constraint:
If y > 0
Then x=1
Else x=0
Endif
It cannot run due to x and y are both variable, I am not sure why. And the model will become nonlinear model. Do you know how to explain this constraint and still make the model linear?
--
You received this message because you are subscribed to the Google Groups "AIMMS - The Modeling System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aimms+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.