Skip to main content
Solved

How to code Summation of (inverted A)(w)-element of-W in constraints?

  • May 29, 2019 10:47 PM UTC
  • 3 replies
  • 224 views

Hi! We were able to execute the model already but we're having warnings that the result for this column is similar with the other column. Take for example the constraints 22 and 26? How do we code the "summation"? Sorry I'm just a beginner and I have no one to teach me and I only have a month to study everything because the deadline is just for 2 months.

Our aimms model can be downloaded here: https://drive.google.com/file/d/1zcGWpj_FOGOrUKZiCdutLQ_gxANGrPI6/view?usp=sharingMODEL 2

Best answer by deannezhang

If you have a parameter NeighborSubBlocks(e,k) = 1 when k is one of the pair subblocks of neighbor block v, then the constraint is

index domain: (e, m)
definition:
sum((v,k)|NeighborSubBlocks(e,k) , l(v,m) * x(v,k))
View original
This topic has been closed for replies.

3 replies

deannezhang
AIMMS Champ
Forum|alt.badge.img+3
  • AIMMS Champ
  • May 30, 2019 1:47 PM UTC
Hi, I think the answer on the other question on subtraction of element works on constraint 22. Regarding 27, I do not understand what it is. Would you explain what the meaing of k, e, E ?

  • Author
  • Newcomer
  • May 31, 2019 9:40 PM UTC
Hi!
k - index of Set of Subblocks (container ports)
e - pair of neighboring subblocks
E - set of all pairs of neighboring subblocks

deannezhang
AIMMS Champ
Forum|alt.badge.img+3
  • AIMMS Champ
  • Answer
  • Jun 1, 2019 8:52 AM UTC
If you have a parameter NeighborSubBlocks(e,k) = 1 when k is one of the pair subblocks of neighbor block v, then the constraint is

index domain: (e, m)
definition:
sum((v,k)|NeighborSubBlocks(e,k) , l(v,m) * x(v,k))

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

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