Skip to main content
Solved

The symbol ")" is not expected

  • March 31, 2026
  • 2 replies
  • 25 views

Hey, I'm new to AIMMS and did a definition of a constraint and it says “The symbol ")” is not expected.” but I don't see what’s wrong with it. Maybe you can help me.

Bestellmenge(t)=Zielniveau(t)-(if ord(t)=1 then Anfangslagerbestand else Lagerbestand(t-1))

Best answer by Marcel Hunting

Hi ​@itsme. The definition is missing ‘endif’. The correct definition is:

Bestellmenge(t)=Zielniveau(t)-(if ord(t)=1 then Anfangslagerbestand else Lagerbestand(t-1) endif)

2 replies

Marcel Hunting
AIMMSian
Forum|alt.badge.img+4

Hi ​@itsme. The definition is missing ‘endif’. The correct definition is:

Bestellmenge(t)=Zielniveau(t)-(if ord(t)=1 then Anfangslagerbestand else Lagerbestand(t-1) endif)


  • Author
  • Explorer
  • March 31, 2026

Thank you very much Marcel!


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

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