DCP error/ Expreesion in objective function must be real

Complex objective functions make no sense. (How do you maximize or minimize a complex value?) As for why you cannot take the absolute value, read the FAQ).