Skip to main content

Same variable with different index in constraints

  • Sep 12, 2022 5:03 PM UTC
  • 3 replies
  • 76 views

Forum|alt.badge.img

Hello,

I have the variable u(i) specifiying the remaining cargo on arrival at vertex i.

I want to write the following constraint into AIMMS:

0 <= u(j) <= u(i) - q(i)x(i,j) + C(1-x(i,j))

Then I always get the message “The number of arguments in the variable u is not correct”

because of u(j) <= u(i).

Can you please help me to solve this problem.

Thanks

3 replies

gabiservidone
Administrator
Forum|alt.badge.img+6

Marco, can you send us the project you are working on here (support@aimms.com). 

If not, can you screenshot the u(i) identifier definition? 


Forum|alt.badge.img
  • Author
  • Enthusiast
  • Sep 14, 2022 11:22 AM UTC

Thank you for your reply!

I have sent you the information by Email to support@aimms.com


gabiservidone
Administrator
Forum|alt.badge.img+6

This question is being handled trought support, but here are some tips on how to start developing your own linear programming model.