Same variable with different index in constraints

  • 12 September 2022
  • 3 replies
  • 32 views

Badge

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

Userlevel 5
Badge +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? 

Badge

Thank you for your reply!

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

Userlevel 5
Badge +6

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

Reply


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

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