Skip to main content

Same variable with different index in constraints

  • September 12, 2022
  • 3 replies
  • 40 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
  • AIMMSian
  • 256 replies
  • September 12, 2022

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
  • 1 reply
  • September 14, 2022

Thank you for your reply!

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


gabiservidone
Administrator
Forum|alt.badge.img+6
  • AIMMSian
  • 256 replies
  • September 14, 2022

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



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

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