public class LinearConstraintTerm extends HyperplaneTerm
coeffs, constant, point, unitNormal
variables
Modifier | Constructor and Description |
---|---|
protected |
LinearConstraintTerm(List<LocalVariable> variables,
List<Float> coeffs,
float constant,
FunctionComparator comparator) |
Modifier and Type | Method and Description |
---|---|
float |
evaluate()
if (coeffs^T * x [comparator] constant) { 0.0 }
else { infinity }
|
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) |
project
getVariables, updateLagrange
protected LinearConstraintTerm(List<LocalVariable> variables, List<Float> coeffs, float constant, FunctionComparator comparator)
public float evaluate()
evaluate
in class HyperplaneTerm
public void minimize(float stepSize, float[] consensusValues)
ADMMObjectiveTerm
minimize
in class ADMMObjectiveTerm
Copyright © 2018 University of California, Santa Cruz. All rights reserved.