added check that objective is minimize/maximize and fixed bug with cvxopt and exponential cone