updated for mosek solver interface.