public abstract class ADMMObjectiveTerm extends Object implements ReasonerTerm
Modifier and Type | Field and Description |
---|---|
protected GroundRule |
groundRule |
protected int |
size |
protected LocalVariable[] |
variables |
Constructor and Description |
---|
ADMMObjectiveTerm(Hyperplane<LocalVariable> hyperplane,
GroundRule groundRule)
Caller releases control of the hyperplane and all members of it.
|
Modifier and Type | Method and Description |
---|---|
abstract float |
evaluate()
Evaluate this potential using the local variables.
|
abstract float |
evaluate(float[] consensusValues)
Evaluate this potential using the given consensus values.
|
GroundRule |
getGroundRule() |
LocalVariable[] |
getVariables()
Get the variables used in this term.
|
abstract void |
minimize(float stepSize,
float[] consensusValues)
Updates x to the solution of
argmin f(x) + stepSize / 2 * \|x - z + y / stepSize \|_2^2 for the objective term f(x) |
int |
size()
Get the number of variables in this term.
|
void |
updateLagrange(float stepSize,
float[] consensusValues) |
protected final GroundRule groundRule
protected final LocalVariable[] variables
protected final int size
public ADMMObjectiveTerm(Hyperplane<LocalVariable> hyperplane, GroundRule groundRule)
public void updateLagrange(float stepSize, float[] consensusValues)
public abstract void minimize(float stepSize, float[] consensusValues)
public abstract float evaluate()
public abstract float evaluate(float[] consensusValues)
public LocalVariable[] getVariables()
public int size()
size
in interface ReasonerTerm
public GroundRule getGroundRule()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.