I am trying to optimize objective function * w1 profit(x) + w2 * risk(x)**, where x is decision variable and has an equality constraint like sum(x) = C. I have to use simulated annealing to solve this problem. I am curious

**if equality constraint can be implemented in CVX when using simulated annealing**as Matlab only allow bound constraints in this case. I shall appreciate any help in this regard.