public class DCDTermGenerator extends HyperplaneTermGenerator<DCDObjectiveTerm,GroundAtom>
addDeterTerms, collectiveDeter, deterConstant, deterEpsilon, deterWeight, invertNegativeWeight, mergeConstants
Constructor and Description |
---|
DCDTermGenerator() |
DCDTermGenerator(boolean mergeConstants) |
Modifier and Type | Method and Description |
---|---|
int |
createLinearConstraintTerm(Collection<DCDObjectiveTerm> newTerms,
TermStore<DCDObjectiveTerm,GroundAtom> termStore,
GroundRule groundRule,
Hyperplane<GroundAtom> hyperplane,
FunctionComparator comparator)
Create a hard constraint term, and add it to the collection of new terms.
|
int |
createLossTerm(Collection<DCDObjectiveTerm> newTerms,
TermStore<DCDObjectiveTerm,GroundAtom> baseTermStore,
boolean isHinge,
boolean isSquared,
GroundRule groundRule,
Hyperplane<GroundAtom> hyperplane)
Create a term from a ground rule and hyperplane, and add it to the collection of new terms.
|
Class<GroundAtom> |
getLocalVariableType()
Get the class object for the local variable type.
|
createTerm, generateTerms
public DCDTermGenerator()
public DCDTermGenerator(boolean mergeConstants)
public Class<GroundAtom> getLocalVariableType()
HyperplaneTermGenerator
getLocalVariableType
in class HyperplaneTermGenerator<DCDObjectiveTerm,GroundAtom>
public int createLossTerm(Collection<DCDObjectiveTerm> newTerms, TermStore<DCDObjectiveTerm,GroundAtom> baseTermStore, boolean isHinge, boolean isSquared, GroundRule groundRule, Hyperplane<GroundAtom> hyperplane)
HyperplaneTermGenerator
createLossTerm
in class HyperplaneTermGenerator<DCDObjectiveTerm,GroundAtom>
public int createLinearConstraintTerm(Collection<DCDObjectiveTerm> newTerms, TermStore<DCDObjectiveTerm,GroundAtom> termStore, GroundRule groundRule, Hyperplane<GroundAtom> hyperplane, FunctionComparator comparator)
HyperplaneTermGenerator
createLinearConstraintTerm
in class HyperplaneTermGenerator<DCDObjectiveTerm,GroundAtom>
Copyright © 2022 University of California, Santa Cruz. All rights reserved.