File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/main/java/br/usp/poli/pcs/lti/moabhh/agents Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2121 <dependency >
2222 <groupId >com.github.vinixnan</groupId >
2323 <artifactId >jMetalHyperHeuristicHelper</artifactId >
24- <version >1.5 </version >
24+ <version >1.6 </version >
2525 </dependency >
2626 <dependency >
2727 <groupId >org.projectlombok</groupId >
Original file line number Diff line number Diff line change 11package br .usp .poli .pcs .lti .moabhh .agents ;
22
33import br .usp .poli .pcs .lti .jmetalhhhelper .core .DoubleTaggedSolution ;
4+ import br .usp .poli .pcs .lti .jmetalhhhelper .core .PermutationTaggedSolution ;
45import br .usp .poli .pcs .lti .jmetalhhhelper .core .TaggedSolution ;
56import br .usp .poli .pcs .lti .jmetalhhhelper .util .IndicatorFactory ;
67import br .usp .poli .pcs .lti .jmetalhhhelper .util .metrics .*;
2324import java .util .logging .Logger ;
2425import org .apache .commons .math3 .stat .StatUtils ;
2526import org .uma .jmetal .problem .DoubleProblem ;
27+ import org .uma .jmetal .problem .PermutationProblem ;
2628
2729import org .uma .jmetal .problem .Problem ;
2830import org .uma .jmetal .solution .Solution ;
@@ -166,7 +168,13 @@ public void run() {
166168 }
167169 List <S > pts =new ArrayList <>();
168170 for (int i = 0 ; i < idealPoints .length ; i ++) {
169- Solution pt =new DoubleTaggedSolution ((DoubleProblem ) problem );
171+ Solution pt ;
172+ if (problem instanceof DoubleProblem ){
173+ pt =new DoubleTaggedSolution ((DoubleProblem ) problem );
174+ }
175+ else {
176+ pt =new PermutationTaggedSolution ((PermutationProblem ) problem );
177+ }
170178 for (int j = 0 ; j < idealPoints .length ; j ++) {
171179 pt .setObjective (i , idealPoints [i ]);
172180 }
You can’t perform that action at this time.
0 commit comments