Update optimality_fctn.m

added support for mosek, gurobi, quadprog, and cplex