Objective function with MAD

Uncategorized
Feb 7, 2021
A

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?

M

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