Class SOCPGeneralConstraints
- java.lang.Object
-
- dev.nm.solver.multivariate.constrained.convex.sdp.socp.problem.SOCPGeneralConstraints
-
- All Implemented Interfaces:
SOCPConstraints
,Iterable<SOCPGeneralConstraint>
public class SOCPGeneralConstraints extends Object implements Iterable<SOCPGeneralConstraint>, SOCPConstraints
This represents a set of SOCP general constraints of this form. \[ ||A^{T}x+c||_{2}\leq b^{T}x+d \]
-
-
Constructor Summary
Constructors Constructor Description SOCPGeneralConstraints()
Constructs a set of SOCP general constraints.SOCPGeneralConstraints(SOCPGeneralConstraint[] constraints)
Constructs a set of SOCP general constraints.SOCPGeneralConstraints(List<SOCPGeneralConstraint> constraints)
Constructs a set of SOCP general constraints.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SOCPGeneralConstraint constraint)
Add an SOCP constraint.Iterator<SOCPGeneralConstraint>
iterator()
int
size()
Gets the number of constraints.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SOCPGeneralConstraints
public SOCPGeneralConstraints()
Constructs a set of SOCP general constraints.
-
SOCPGeneralConstraints
public SOCPGeneralConstraints(List<SOCPGeneralConstraint> constraints)
Constructs a set of SOCP general constraints.- Parameters:
constraints
- a list of SOCP general constraints
-
SOCPGeneralConstraints
public SOCPGeneralConstraints(SOCPGeneralConstraint[] constraints)
Constructs a set of SOCP general constraints.- Parameters:
constraints
- an array of SOCP general constraints
-
-
Method Detail
-
add
public void add(SOCPGeneralConstraint constraint)
Add an SOCP constraint.- Parameters:
constraint
- an SOCP constraint
-
size
public int size()
Gets the number of constraints.- Returns:
- the number of constraints
-
iterator
public Iterator<SOCPGeneralConstraint> iterator()
- Specified by:
iterator
in interfaceIterable<SOCPGeneralConstraint>
-
-