MILT Optimization Expression Array Manipulation
7 次查看(过去 30 天)
显示 更早的评论
I have been strugling with this for quite a while and am sure that I am missing something simple but would love some support. As I am rather new to the optimization toolbox please forgive me if I am not explaning anything well.
HighLevel background:
I am working on using the optimization toolbox to creat rosters for dailey fantasey sports such as those avalable on draftkings. The objective is to develop X number of rotsers that maximimize the expected player performance while being significantly diffrent from each other and staying in line with the selection rules for the website.
Current State:
I have been able to utilzie the toolbox to develop X number of rosters, each with no more than & players in similar, while respecting the position and salary requirments.
Challange:
The last requirment is that each roster have players from atleast 3 diffrent teams, this is where I am stuck. I have been able to get to the point where I have a optimization expression which is (t,1) in size where t is the number of avalable teams to select from. The values of this expression are the number of players selected from each team. for example if we were selecting from 5 teams and had selected 1 player from team 1, 2 from team2, 1 from team3, 0 from team4, and 1 from team5 the expression would take the value [1;2;1;0;1]. I am stuck when trying to figure out how to transform this into a 1 X 1 expression which contains the number of teams utilized (4 in the above example). If anyone could help me figure out how to do so it would be very apriciated.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surrogate Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!