Hi I am trying to find a way to optimize a long-short portfolio, the aim is to have control over a) the gross exposure b) the net exposure
So let's say I want to have a gross exposure of 150%
I have tried:
ef.add_constraint(lambda w: cvxpy.sum(cvxpy.abs(w)) <= 1.5)
I am little stuck as to how I could do something like:
Target a long allocation of 100% which building on the example above, would mean 50% absolute value of short positions.
Great package and hope you can point me in the right direction.
Hi I am trying to find a way to optimize a long-short portfolio, the aim is to have control over a) the gross exposure b) the net exposure
So let's say I want to have a gross exposure of 150% I have tried:
ef.add_constraint(lambda w: cvxpy.sum(cvxpy.abs(w)) <= 1.5)
I am little stuck as to how I could do something like: Target a long allocation of 100% which building on the example above, would mean 50% absolute value of short positions.
Great package and hope you can point me in the right direction.