fixed an error leading the simplex solver to compute the right solution but return another one JIRA: MATH-286