Skip to main content
Solved

Using an Element Parameter, or certain Elements of a set as identifiers

  • July 15, 2022
  • 2 replies
  • 45 views

Forum|alt.badge.img+3

Hello everyone, 

 

I have a problem in the following part of my code: (Right now it can happen for an order j that a part gets released cause station 1 has some load left, but all other parts dont get released , cause on these stations there is no load left.

 

if(CurrentWorkloadOnStation (i) + WorkloadIfOrderGetsReleased(j,i) <= WorkloadNormOfWorkstations) then
            CurrentWorkloadOnStation(i) := CurrentWorkloadOnStation(i) + WorkloadIfOrderGetsReleased(j,i);

 

 

What i want the If-statement to do is basically :

if(CurrentWorkloadOnStation (Station1) + WorkloadIfOrderGetsReleased(j,i) <= WorkloadNormOfWorkstations AND CurrentWorkloadOnStation (Station2) + WorkloadIfOrderGetsReleased(j,i) <= WorkloadNormOfWorkstations AND on Station 3 etc) then

….

 

I am thankful for any tips on how to implement this. 

 

With kind regards 

Alex

Best answer by Alex

Hi @Alex 

Sounds like you're looking for the ForAll operator

 

Hi @MarcelRoelofs,

 

yes thank you. It did exactly what i tried to do.

2 replies

MarcelRoelofs
AIMMSian
Forum|alt.badge.img+5
  • AIMMSian
  • 107 replies
  • July 16, 2022

Hi @Alex 

Sounds like you're looking for the ForAll operator

 


Forum|alt.badge.img+3
  • Author
  • Ace
  • 10 replies
  • Answer
  • July 16, 2022

Hi @Alex 

Sounds like you're looking for the ForAll operator

 

Hi @MarcelRoelofs,

 

yes thank you. It did exactly what i tried to do.



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

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