フィルターのクリア

optimization for points game, 2 variables!

2 ビュー (過去 30 日間)
Matlabbey
Matlabbey 2012 年 9 月 11 日
hi all,
i'm trying to figure out a way to solve this problem and do so in matlab.
here is the setup:
1. you want to maximize the number of points, x
2. there is one variable,s, with 5 inputs weighted from most to least (5 4 3 2 1)
3. there is another variable, t, with two weighted inputs (13 7)
I want to maximize x by figuring out the best way to allocate the #scores(category1) and #scores(category2)....how to do this!?
  2 件のコメント
Kevin Claytor
Kevin Claytor 2012 年 9 月 11 日
How are s and t linked to x? If you have an equation like; x = 7*t + 3*s, it should be pretty easy to maximize. Also, how is the game played, is there some condition from just allowing the player to pick the largest s (for example)?
Matlabbey
Matlabbey 2012 年 9 月 11 日
hi, thank you for the response. now im trying to make to simulate the results with different values.

サインインしてコメントする。

回答 (1 件)

Sean de Wolski
Sean de Wolski 2012 年 9 月 11 日
This sounds like a linear programming problem.
doc linprog

カテゴリ

Help Center および File ExchangeParticle Swarm についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by