private void populateViolatedConstraints(List<List<ILPConstraint>> violated) { violated.clear(); IStructure y = outputGenerator.getOutput(baseSolver, variables, x); for (ILPConstraintGenerator c : this.cuttingPlaneConstraints) { // see if the constraint generator has anything to say about the input // upon which it operates. If not, then use the input to the inference, // namely x IInstance input = c.getConstraintInput(); if (input == null) input = x; IStructure output = c.getConstraintOutput(y); List<ILPConstraint> cs = c.getViolatedILPConstraints(input, output, variables); violated.add(cs); } }
private void populateViolatedConstraints(List<List<ILPConstraint>> violated) { violated.clear(); IStructure y = outputGenerator.getOutput(baseSolver, variables, x); for (ILPConstraintGenerator c : this.cuttingPlaneConstraints) { // see if the constraint generator has anything to say about the input // upon which it operates. If not, then use the input to the inference, // namely x IInstance input = c.getConstraintInput(); if (input == null) input = x; IStructure output = c.getConstraintOutput(y); List<ILPConstraint> cs = c.getViolatedILPConstraints(input, output, variables); violated.add(cs); } }