Skip to main content
Solved

How to write a constraint with format variable smaller equal to parameter?

  • November 28, 2024
  • 1 reply
  • 38 views

Hello, 

I am a beginner at using AIMMS and have my sets, parameters and variables all sorted out. I am, however, stuck with one constraint. I have a variable x(p) (so x(p) needed) and parameter d(p) (max capacity (p)) and want to have a constraint x(p) <= d(p), but without havin to use a sum. How do I so this? Thank you. 

Best answer by gabiservidone

Hi! Exacly as you wrote, and you just need to add ‘p’ as an index domain of your contraint:

 

 

This two courses will help you creating your first model!

1 reply

gabiservidone
Administrator
Forum|alt.badge.img+6
  • AIMMSian
  • 256 replies
  • Answer
  • November 28, 2024

Hi! Exacly as you wrote, and you just need to add ‘p’ as an index domain of your contraint:

 

 

This two courses will help you creating your first model!



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

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