Baseball question!
But if that's not your thing, feel free to think of it in terms of your favorite sport.
Let's say I have a typical roster of players. The cell values are their unit values, if they play each position (it's different for each player--if they play one position, they'll have more or less value than they do if they play another).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]First Base[/TD]
[TD]Second Base[/TD]
[TD]Third Base[/TD]
[TD]Shortstop[/TD]
[/TR]
[TR]
[TD]Sam
[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Will[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Brian[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Tod
[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]2
[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Matt[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Ahmed[/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Billy[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Benjamin Netanyahu[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
How would I write an equation that solves for the optimal value of this configuration (who to put at which four positions, to maximize total value)?
It seems more complex to me than a standard optimization problem, because it involves things like "if you use Steve here, then he can't play there" or "if you use Ahmed at his second-best position, it allows Steve to play his best position" (and then of course those combinations compound with further iterations).
So it may be that it just requires higher optimization logic than I can easily conceive. Or maybe this is an iterative solve? I really don't know where to start, and would appreciate the help.
Thanks!
But if that's not your thing, feel free to think of it in terms of your favorite sport.
Let's say I have a typical roster of players. The cell values are their unit values, if they play each position (it's different for each player--if they play one position, they'll have more or less value than they do if they play another).
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]First Base[/TD]
[TD]Second Base[/TD]
[TD]Third Base[/TD]
[TD]Shortstop[/TD]
[/TR]
[TR]
[TD]Sam
[/TD]
[TD]5[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Tom[/TD]
[TD]5[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Will[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Brian[/TD]
[TD]4[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Tod
[/TD]
[TD]5[/TD]
[TD]6[/TD]
[TD]2
[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Matt[/TD]
[TD]6[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Ahmed[/TD]
[TD]2[/TD]
[TD]7[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Billy[/TD]
[TD]3[/TD]
[TD]1[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Steve[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]6[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]1[/TD]
[TD]4[/TD]
[TD]1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Benjamin Netanyahu[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]
How would I write an equation that solves for the optimal value of this configuration (who to put at which four positions, to maximize total value)?
It seems more complex to me than a standard optimization problem, because it involves things like "if you use Steve here, then he can't play there" or "if you use Ahmed at his second-best position, it allows Steve to play his best position" (and then of course those combinations compound with further iterations).
So it may be that it just requires higher optimization logic than I can easily conceive. Or maybe this is an iterative solve? I really don't know where to start, and would appreciate the help.
Thanks!