public abstract class SquaredHyperplaneTerm extends ADMMObjectiveTerm implements WeightedTerm
Modifier and Type | Field and Description |
---|---|
protected List<Float> |
coeffs |
protected float |
constant |
protected float |
weight |
variables
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
coeffs^T * x - constant
|
float |
getWeight() |
protected void |
minWeightedSquaredHyperplane(float stepSize,
float[] consensusValues)
Minimizes the weighted, squared hyperplane
argmin weight * (coeffs^T * x - constant)^2 + stepSize/2 * \|x - z + y / stepSize \|_2^2 |
void |
setWeight(float weight)
Set the weight of the term.
|
getVariables, minimize, updateLagrange
public void setWeight(float weight)
WeightedTerm
setWeight
in interface WeightedTerm
public float getWeight()
getWeight
in interface WeightedTerm
public float evaluate()
evaluate
in class ADMMObjectiveTerm
protected void minWeightedSquaredHyperplane(float stepSize, float[] consensusValues)
Stores the result in x.
Copyright © 2018 University of California, Santa Cruz. All rights reserved.