Program: 57472
Project: 57472
Buggy source:
public void testLargeModel() throws OptimizationException {
  double[] objective=new double[]{1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
  LinearObjectiveFunction f=new LinearObjectiveFunction(objective,0);
  Collection<LinearConstraint> constraints=new ArrayList<LinearConstraint>();
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  SimplexSolver solver=new SimplexSolver();
  RealPointValuePair solution=solver.optimize(f,constraints,GoalType.MINIMIZE,true);
  assertEquals(13366.0,solution.getValue(),.0000001);
}

Fixed version (ground truth):
public void testLargeModel() throws OptimizationException {
  double[] objective=new double[]{1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1};
  LinearObjectiveFunction f=new LinearObjectiveFunction(objective,0);
  Collection<LinearConstraint> constraints=new ArrayList<LinearConstraint>();
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  constraints.add(equationFromString(objective.length,"String_Node_Str"));
  SimplexSolver solver=new SimplexSolver();
  RealPointValuePair solution=solver.optimize(f,constraints,GoalType.MINIMIZE,true);
  assertEquals(7518.0,solution.getValue(),.0000001);
}