p is the LP to be solved.
|
x1,x2,x3,x4 represent xCMP, xYDS, xTD and xINT respectively.
setting "nonnegetive=True" applies the constraing that all variables be greater than or equal to 0.
|
W is EFF(Watson)
S is EFF(Schuessler)
B is EFF(Bryant)
|
Adding the constraints that for each player's optimal weights, no player's efficiency rating should be above 200.
|
Solve the LP for Watson's optimized rating then print the weights used to achieve this.
Watson's optimized efficiency rating: 200.0 x1= 0.0 x2= 0.0 x3= 2222.22222222 x4= 0.0 Watson's optimized efficiency rating: 200.0 x1= 0.0 x2= 0.0 x3= 2222.22222222 x4= 0.0 |
Print the efficiency rating for all three players using Watson's optimized weights.
Watson: 200.0 Schuessler: 0.0 Bryant: 0.0 Watson: 200.0 Schuessler: 0.0 Bryant: 0.0 |
Solve the LP for Schuessler's optimized rating then print the weights used to achieve this.
Schuessler's optimized efficiency rating: 191.021734715 x1= 218.159658745 x2= 6.70322973796 x3= 0.0 x4= 0.0 Schuessler's optimized efficiency rating: 191.021734715 x1= 218.159658745 x2= 6.70322973796 x3= 0.0 x4= 0.0 |
Print the efficiency rating for all three players using Schuessler's optimized weights.
Watson: 200.0 Schuessler: 191.021734715 Bryant: 200.0 Watson: 200.0 Schuessler: 191.021734715 Bryant: 200.0 |
Bryant's optimized efficiency rating: 200.0 x1= 218.159658745 x2= 6.70322973796 x3= 0.0 x4= 0.0 Bryant's optimized efficiency rating: 200.0 x1= 218.159658745 x2= 6.70322973796 x3= 0.0 x4= 0.0 |
Print the efficiency rating for all three players using Bryant's optimized weights.
Watson: 200.0 Schuessler: 191.021734715 Bryant: 200.0 Watson: 200.0 Schuessler: 191.021734715 Bryant: 200.0 |
Each player's optimized efficiency ratings are as followed.
Watson: 200
Schuessler: 191
Bryant: 200
|