The amount of capital allocated in each asset given long only weights is calculated as $allocation_i \ = K\cdot w_i$.
weights = [ 0., 0., 0., 0., 0., 0., 0., 0., 0., 3.205
0., 0., 0., 0., 1.84, 11.168, 0., 0., 0., 0.
0., 12.297, 11.339, 0., 0., 0., 0., 0., 0., 0.
0., 0., 11.489, 0., 6.807, 18.372, 0., 0., 0., 0.
0., 4.54, 0., 0., 0., 0., 0., 0., 0., 0.
0., 0., 14.06, 0., 0., 0., 0., 4.882]
Could anyone explain which is the right method to calculate the amount of capital that needs to be allocated in each asset according to long-short weights? It appears that the following weights require a capital equal to $2\cdot K$.
weights = [-16.236, 42.662, 9.071, -3.043, -30.727, 11.649, 9.688
21.987, 6.123, 37.917, -12.818, -17.302, 3.501, 56.237, 8.001, 18.2,
-9.894, -4.824, -7.25, -1.315, 0.673, 37.075, 35.864, -9.306, -21.19
-53.798, -22.175, -41.449, -15.007, -12.847, -56.741, 19.637, 21.805
-4.066, 25.44, 27.779, 10.321, 4.372, 7.127, 10.733, 13.87, 16.277
-9.371, -4.053, -22.877, 1.631, 8.721, -24.908, -6.497, -16.44, -11.304
-2.084, 24.29, 23.836, 5.427, -11.143, 4.654, 24.099]