snip i would change the 0.9 to 0.9999 to get the 2nd best yeah?
You can of course set the value to 0.9999 but the difference between the first run and the second run may then be so small that you may get the same value again. Perhaps the better option would be to say that the first run is the optimal run and the subsequent runs should at least be 10 pts lower than the previous run. To model that you could do like this:
Then there is also the question of how you define second best. To me that that would be to set up a team with the best players to get the max points within a given budget, having found that I would then remove these players an do another run with the reaming one to find the second best team.
Could also be that having found the best team I would lower my budget with 10 % and see what max point that would buy me and call that the second best team.
think i saw 0.9 twice to change in the visual basic.
Yes that's correct, this solver loop contains two part. First a run where you get the best possible pts result and there is no restrain on the pts but marco set a pts value that is
90 % of the maximum pts solver find at the first run.
Then there comes the solver loop where i goes from i = 1 to 5 and for the first run in this loop there is a constraint on the pts value, it should be equal to or less than first pts value (i.e. 593.2687) so when solver finds this new value it takes 90 % of that and write that result cell B41 in order to prepare for the run where i = 2 with a new constraint on the pts value.
and i can change that 5 to any number?
Yes that's correct but as i is dim'd as "Integer" it must be an integer number.
hen to get the top 5 from the next sim i just change the objective cell to C39? is that how its set up? or does it move to C39 automatically
Not sure I understands that, C38 is the objective cell containing the formula
and the C39 is just the sum of binaries to ensure that 6 persons are selected. Can you clarify?
Alf
Bookmarks