Solver Question: Equally Divide List Into 5 Groups

John Luther

New Member
Joined
May 5, 2014
Messages
28
I am trying to setup up a larger solver model that, in addition to another of other things, solves for this problem:

I have a list of, in this case, 15 finishes in column A that I would like to divide into 5 equally sized groups (days) of 3 finishes by changing the values (1-5) in column B.

I have tried to setup a solver model with only the constraints that the range in column B be an integer <=1 and >=5, solving for a minimization of the max + average of the total for all 5 groups. The totals for each day are calculated on the worksheet as the variable cells change. The optimal solution would be 3 finishes per day, and the objective would be 6 (the max + the average). That may be a loopy way to try to evenly distribute the list, but it seems to me that it should work. But I can't get solver to give me a good solution. If I use the GRG Nonlinear option, it wants to use decimals even though I have an integer constraint. If I use the evolutionary option, it solves but not optimally - even if I use a high mutation rate and let it run for a long time. The solution below is the best I could get. I am a novice at this sort of thing, but I'm trying to learn. I just can't figure out why solver wouldn't be able to do this. Any help would be appreciated.

FINISHES
GROUP (1-5)GROUP:
1
2
3
4
5
EM
3
TOTAL:
3
444
3
TCM
3Black Tea
DM
EM
OMTMM
TMM5HMEMTCMDistressed AWCSMM
CSMM5
Tobacco
DGKAWMCCOEM
TCM3AWMDMOld World AW
DM2
DM2
OM4
Distressed AW4
CC4
OEM5
OEM5
EM3
AWM3
Black Tea1
EM2
HM1
AWM3
OM4
DGK2
DGK2
AWM2
AWM3
AWM2
AWM3
HM1
DM2
DM2
DM2
DM2
DM3
Tobacco1
DM3
AWM2
EM2
EM2
AWM2
EM2
HM1
DM2
DM2
DM2
DM2
DM3
DM3
DM2
Distressed AW4
HM1
HM1
Tobacco1
Tobacco1
DGK2
Old World AW
4
Tobacco1
Tobacco1
EM3

<colgroup><col style="mso-width-source:userset;mso-width-alt:3291;width:68pt" width="90"> <col style="mso-width-source:userset;mso-width-alt:5046;width:104pt" width="138"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:3474; width:71pt" span="5" width="95"> </colgroup><tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,214,375
Messages
6,119,168
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top