Solved

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


Badge +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

icon

Best answer by Alex 16 July 2022, 21:18

View original

2 replies

Userlevel 4
Badge +5

Hi @Alex 

Sounds like you're looking for the ForAll operator

 

Badge +3

Hi @Alex 

Sounds like you're looking for the ForAll operator

 

Hi @MarcelRoelofs,

 

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

Reply


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

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