Skip to main content

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

Hi @Alex 

Sounds like you're looking for the ForAll operator

 


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