Association Problem With Weighting Coefficient

You can see an example here How to formulate a MILP in CVX