Skip to main content
Solved

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

  • November 28, 2024
  • 1 reply
  • 26 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!

View original

1 reply

gabiservidone
Administrator
Forum|alt.badge.img+6
  • AIMMSian
  • 214 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!


Reply