thanks for your response, inequality would work fine. I would need a bit of help to code it.
I can't figure out how to code the abs() inside the sum()
The closest I get is to code an inequality constraint on the linear sum_i(x_i) <= 1
but not sum_i(abs(x_i)) <= 1
# Create inequality constraint for sum_i(x_i) <= 1
G = opt.matrix(1.0, (1, n)) # row vector for sum_i(), with dot product.
h = opt.matrix(1.0, (n ,1)) # column vector of constraints