bluetaurean
Member
Can some help me with code for this
a. Each product has a minimum and maximum qty
b. demand for each varies.
c. Code required to schedule the maximum of each provide total demand is higher than the max.
d. Move to the next product and repeat
e. after all products are run once, repeat steps c & d to finish the balance demand
f. when final iteration qtys are less than the minimum run qty then run the minimum.
Product; Demand; Minimum in each run; Maximum in Each run; Runs
A 300 70 90 3.333333
B 200 70 90 2.222222
C 20 50 90 0.222222
OUtput needed.
Expected Output Run
A 90
B 90
C 50
A 90
B 90
C 0
A 90
B 70
C 0
A 70
B 0
C 0
__________________________________________________________________
a. Each product has a minimum and maximum qty
b. demand for each varies.
c. Code required to schedule the maximum of each provide total demand is higher than the max.
d. Move to the next product and repeat
e. after all products are run once, repeat steps c & d to finish the balance demand
f. when final iteration qtys are less than the minimum run qty then run the minimum.
Product; Demand; Minimum in each run; Maximum in Each run; Runs
A 300 70 90 3.333333
B 200 70 90 2.222222
C 20 50 90 0.222222
OUtput needed.
Expected Output Run
A 90
B 90
C 50
A 90
B 90
C 0
A 90
B 70
C 0
A 70
B 0
C 0
__________________________________________________________________
Mod edit : post moved to appropriate forum …