Solved

How to code βˆ€π‘–,𝑑,𝑗\{𝑖} in domain index

  • 2 December 2021
  • 3 replies
  • 95 views

Badge

Dear community,

Β 

I am working on a lot sizing problem with sequence dependent setupcosts for my thesis project. Since I have no particular background in e.g., operations research, some of the notations are unfamiliar to me. ConsiderΒ the following constraint to eliminate subtours in the setup sequence between products (indexed with i and j) in a specific time period t.

𝑉𝑖𝑑 + 𝑁 βˆ™ 𝑇𝑖𝑗𝑑 βˆ’ (𝑁 βˆ’ 1) βˆ’ 𝑁 βˆ™ 𝛼𝑖𝑑 ≀ 𝑉𝑗𝑑  Β  Β  Β βˆ€π‘–,𝑑,𝑗\{𝑖}

I do not understand how to implement the last part (𝑗\{𝑖}) in the index domain.Β 

Β 

I really appreciate your help!

icon

Best answer by gdiepen 2 December 2021, 21:29

View original

3 replies

Userlevel 5
Badge +7

Hi,

is this not just for all combinations of i, j, and t for which holds that i and j are not the same?

That could be done in the index domain in AIMMS like

Β 

(i,j,t) | i <> j

Badge

I was thinking of that too. However, why isn't it then notated withΒ iΒ β‰ Β jΒ ?

Userlevel 5
Badge +7

Just a different notation probably. Is more set related notation AFAIK

Reply


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

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