Class AbstractGrammarBitStringProblem
java.lang.Object
com.knezevic.edaf.v3.problems.grammar.AbstractGrammarBitStringProblem
- Direct Known Subclasses:
GrammarCsvClassificationProblem,GrammarCsvRegressionProblem,GrammarMajorityProblem,GrammarNguyenRegressionProblem,GrammarXorProblem
Shared base for grammar-encoded symbolic optimization problems.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractGrammarBitStringProblem(Map<String, Object> params, double complexityPenalty) -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomplexityTerm(GrammarTreeEngine.TreeInspection inspection) Complexity term used by all grammar tasks.protected GrammarTreeEngine.TreeInspectionReturns tree inspection for one genotype.Returns whether this problem is min or max.violations(BitString genotype) Returns validation/constraint violations for diagnostics.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.knezevic.edaf.v3.core.api.Problem
evaluate, feasible, name, objectiveCount
-
Field Details
-
treeEngine
-
complexityPenalty
protected final double complexityPenalty
-
-
Constructor Details
-
AbstractGrammarBitStringProblem
-
-
Method Details
-
objectiveSense
Description copied from interface:ProblemReturns whether this problem is min or max.- Specified by:
objectiveSensein interfaceProblem<BitString>
-
violations
-
inspect
Returns tree inspection for one genotype. -
complexityTerm
Complexity term used by all grammar tasks.
-