Multi-criterial example for the Matlab interface
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package eva2.server.go.problems;
|
||||
|
||||
import eva2.server.go.individuals.AbstractEAIndividual;
|
||||
import eva2.server.go.individuals.GAIndividualIntegerData;
|
||||
import eva2.server.go.individuals.GIIndividualIntegerData;
|
||||
import eva2.server.go.individuals.InterfaceDataTypeInteger;
|
||||
import eva2.server.go.populations.Population;
|
||||
import eva2.server.go.strategies.InterfaceOptimizer;
|
||||
@@ -20,7 +20,7 @@ public abstract class AbstractProblemInteger extends AbstractOptimizationProblem
|
||||
}
|
||||
|
||||
protected void initTemplate() {
|
||||
if (m_Template==null) m_Template = new GAIndividualIntegerData();
|
||||
if (m_Template==null) m_Template = new GIIndividualIntegerData();
|
||||
if (((InterfaceDataTypeInteger)this.m_Template).size()!=this.getProblemDimension()) {
|
||||
((InterfaceDataTypeInteger)this.m_Template).setIntegerDataLength(this.getProblemDimension());
|
||||
}
|
||||
|
@@ -63,6 +63,6 @@ public class I1Problem extends AbstractProblemInteger implements java.io.Seriali
|
||||
}
|
||||
|
||||
public static String globalInfo() {
|
||||
return "I1(x) = x^2 is to be minimized.";
|
||||
return "A hyper parabola on integer values x with I1(x) = x^2 is to be minimized.";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user