Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b4787286 authored by EL MOUSSAWI Ali Hassan's avatar EL MOUSSAWI Ali Hassan
Browse files

minor fix failure management

parent 45cb54bc
No related branches found
No related tags found
No related merge requests found
......@@ -83,6 +83,11 @@ public class MinPlusOneExploration extends AbstractExplorationAlgorithm {
logger.fine("Found best next (W Plus One) solution: " + solution.getID());
}
if(!getAccuracy(solution).isPresent() || !getCost(solution).isPresent())
throw new NoSolutionFoundException("Failed to find a solution likely because the minimun precision "
+ "configuration of some Symbols is too low, resulting in errors (like divide by zero for example).\n"
+ "Try rerun after enabling pruning or increasing the minimum W values of some symbols.");
if(!userAccuracyConstraint.isValid(solution))
throw new NoSolutionFoundException("No valid solution was found!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment