Class BMSSCSolutionValidator
java.lang.Object
es.urjc.etsii.grafo.solution.SolutionValidator<BMSSCSolution,BMSSCInstance>
es.urjc.etsii.grafo.bmssc.model.sol.BMSSCSolutionValidator
Validate that a solution is valid for the BMSSC problem.
Validation is always run after the algorithms executes, and can be run in certain algorithm stages to verify
that the current solution is valid.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate
(BMSSCSolution solution) Validate the current solution, check that no constraint is broken and everything is fine
-
Constructor Details
-
BMSSCSolutionValidator
public BMSSCSolutionValidator()
-
-
Method Details
-
validate
Validate the current solution, check that no constraint is broken and everything is fine- Specified by:
validate
in classSolutionValidator<BMSSCSolution,
BMSSCInstance> - Parameters:
solution
- BaseSolution to validate- Returns:
- ValidationResult.ok() if the solution is valid, ValidationResult.fail("reason why it failed") if a solution is not valid.
-