changed code for extracting dual variables when using gurobi to be consistent with the fact that the inequality constraints are listed first