Skip to main content
Solved

Stuck on level 1a G-AIMMS

  • October 11, 2022
  • 1 reply
  • 96 views

Hi everybody,

I am new to AIMMS and just started the AIMMS Learning Game (G-AIMMS) on the tutorial site (https://how-to.aimms.com/Articles/363/363-getting-started-tutorials.html). However, I am stuck on level 1a (Gathering Ingredients), specifically at the part where I have to add the restriction that at most two markets can be visited. Can anybody help me or does anybody have the solution code?

Best answer by MarcelRoelofs

Introduce a variable that indicates whether a market has been selected to buy from. You can then easily  enforce that any good can only be bought from markets that have been selected.

View original

1 reply

MarcelRoelofs
AIMMSian
Forum|alt.badge.img+5
  • AIMMSian
  • 106 replies
  • Answer
  • October 21, 2022

Introduce a variable that indicates whether a market has been selected to buy from. You can then easily  enforce that any good can only be bought from markets that have been selected.