Hi, as my objective function I’m trying to minimise the Mean Absolute Deviation of a variable x, which is mean(abs(x-mu)) where mu is a known vector. CVX however doesn’t allow to take the mean of a variable x. Does anyone know what I could use to solve this?

`sum(abs(x-mu))/length(x)`

1 Like