public abstract class HyperplaneTerm extends ADMMObjectiveTerm
Modifier and Type | Field and Description |
---|---|
protected float[] |
coefficients |
protected float |
constant |
protected float[] |
point |
protected float[] |
unitNormal |
groundRule, size, variables
Constructor and Description |
---|
HyperplaneTerm(GroundRule groundRule,
Hyperplane<LocalVariable> hyperplane) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
coefficients^T * x - constant
|
float |
evaluate(float[] consensusValues)
Evaluate this potential using the given consensus values.
|
protected void |
project(float stepSize,
float[] consensusValues)
Finds the orthogonal projection onto the hyperplane
argmin stepSize/2 * \|x - z + y / stepSize \|_2^2 such that coefficients^T * x = constant. |
getGroundRule, getVariables, minimize, size, updateLagrange
protected final float[] coefficients
protected final float[] unitNormal
protected final float constant
protected final float[] point
public HyperplaneTerm(GroundRule groundRule, Hyperplane<LocalVariable> hyperplane)
protected void project(float stepSize, float[] consensusValues)
Stores the result in x.
public float evaluate()
evaluate
in class ADMMObjectiveTerm
public float evaluate(float[] consensusValues)
ADMMObjectiveTerm
evaluate
in class ADMMObjectiveTerm
Copyright © 2020 University of California, Santa Cruz. All rights reserved.