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