I have the following portfolio optimization problem that I want to solve using Cvxpy:
However I am having troubles implementing the last constraint involving an indicator function. Any ideas on how to code that constraint? Also, if the constraint is not implementable in Cvxpy, is there any open-source solver that can deal with that kind of constraints? Thanks.