Class AbstractBooleanFunctionProblem<G>
java.lang.Object
com.knezevic.edaf.v3.problems.crypto.AbstractBooleanFunctionProblem<G>
- All Implemented Interfaces:
Problem<G>
- Direct Known Subclasses:
BooleanFunctionMultiObjectiveProblem,BooleanFunctionPermutationProblem,BooleanFunctionProblem,BooleanFunctionTreeProblem
Shared base for cryptographic boolean-function optimization problems.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<CryptoFitnessCriterion> protected final double[]protected final doubleprotected final intprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FitnessEvaluates one genotype and returns its fitness.protected final ScalarFitnessevaluateScalarFitness(int[] truthTable) protected final VectorFitnessevaluateVectorFitness(int[] truthTable, double[] scalarWeights) intNumber of objectives; defaults to one objective.Returns whether this problem is min or max.protected final double[]protected final int[]toTruthTableFromBalancedPermutation(int[] permutation) protected final int[]toTruthTableFromBits(boolean[] bits) intintMethods 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
feasible, name, violations
-
Field Details
-
n
protected final int n -
truthTableSize
protected final int truthTableSize -
criteria
-
criterionIds
-
criterionWeights
protected final double[] criterionWeights -
criterionWeightSum
protected final double criterionWeightSum
-
-
Constructor Details
-
AbstractBooleanFunctionProblem
-
-
Method Details
-
objectiveSense
Description copied from interface:ProblemReturns whether this problem is min or max.- Specified by:
objectiveSensein interfaceProblem<G>
-
evaluateScalarFitness
-
evaluateVectorFitness
-
objectiveValues
-
toTruthTableFromBits
protected final int[] toTruthTableFromBits(boolean[] bits) -
toTruthTableFromBalancedPermutation
protected final int[] toTruthTableFromBalancedPermutation(int[] permutation) -
objectiveCount
public int objectiveCount()Description copied from interface:ProblemNumber of objectives; defaults to one objective.- Specified by:
objectiveCountin interfaceProblem<G>
-
variableCount
public int variableCount() -
truthTableSize
public int truthTableSize() -
criterionIds
-
evaluate
-