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