Skip to content
Snippets Groups Projects
Commit 5a2424df authored by Caron Olivier's avatar Caron Olivier
Browse files

correction small bug nwfsp executable

parent d6af0116
Branches
No related tags found
No related merge requests found
Pipeline #4552 failed
...@@ -106,10 +106,11 @@ int main(void) { ...@@ -106,10 +106,11 @@ int main(void) {
// creation of objects for tutorial: // creation of objects for tutorial:
// tag::stopCriterionPart1[] // tag::stopCriterionPart1[]
NoWaitFSP fsp_instanceSC("../../instances/fsp/020_05_01.txt"); // the problem object NoWaitFSP fsp_instanceSC("../../instances/fsp/020_05_01.txt"); // the problem object
EVAL evalSC(fsp_instance); // the evaluation object, requires the problem instance EVAL evalSC(fsp_instanceSC); // the evaluation object, requires the problem instance
SOL solSC(fsp_instance.getN()); // creation of the solution object SOL solSC(fsp_instance.getN()); // creation of the solution object
opt::singleSolution::neighborhood::explorer::BestImprNeighborhoodExplorer<SOL> bestSC(randomNeighborhood, evalSC);
opt::singleSolution::localsearch::HillClimbing<SOL> hillclimbingSC(best, evalSC); opt::singleSolution::localsearch::HillClimbing<SOL> hillclimbingSC(bestSC, evalSC);
opt::criterion::EvalCriterion<SOL> stop500evaluations(500,evalSC) ; // <1> opt::criterion::EvalCriterion<SOL> stop500evaluations(500,evalSC) ; // <1>
opt::criterion::TimeCriterion<SOL> stopMilliSeconds(3000) ; opt::criterion::TimeCriterion<SOL> stopMilliSeconds(3000) ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment