Skip to main content

Hello,

I am a beginner with aimms programmation. I added a constraint which is :sum[t,BackLog(i,t)|t>14]=0

But when i compile my model, it gives me this message error: Constraint programming constraints cannot be used in combination with real valued variables, only with integer valued variables, element valued variables, and activities.  The real valued objective variable is an exception.  The mathematical program "MinCost" has both constraint programming constraints and real valued variables, for instance constraint "BackLogC" and variable "Quantities".

Do you know wha should I do ?

Thank you !!

 

The syntax for domain condition is to have it after the indices, like

summt|t>14,BackLog(i,t)]=0

Please note if the set, which has t as index, is not a subset of integer,  it is better to use ord(t) >14


Reply


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator