Errors with constraint programming

  • 4 December 2020
  • 1 reply


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 !!


1 reply

Userlevel 4
Badge +3

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


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


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

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