Quadratic constraints of the form lb <= sum a_i x_i + sum b_ij x_i x_j <= ub, where a, b, lb and ub are constants, and x are the model's variables. Quadratic matrices that are Positive Semi-Definite, Second-Order Cones or rotated Second-Order Cones are always accepted. Other forms may or may not be accepted depending on the underlying solver used. See https://scip.zib.de/doc/html/cons__quadratic_8h.php and https://www.gurobi.com/documentation/9.0/refman/constraints.html#subsubsection:QuadraticConstraints.
More...
|
static pb::MessageParser< MPQuadraticConstraint > | Parser [get] |
|
static pbr::MessageDescriptor | Descriptor [get] |
|
pbc::RepeatedField< int > | VarIndex [get] |
| Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coefficient[i]. var_index are variable indices w.r.t the "variable" field in MPModelProto, and should be unique.
|
|
pbc::RepeatedField< double > | Coefficient [get] |
| Must be finite.
|
|
pbc::RepeatedField< int > | Qvar1Index [get] |
| Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i]. qvar1_index and qvar2_index are variable indices w.r.t the "variable" field in MPModelProto. qvar1_index , qvar2_index and coefficients must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
|
|
pbc::RepeatedField< int > | Qvar2Index [get] |
|
pbc::RepeatedField< double > | Qcoefficient [get] |
| Must be finite.
|
|
double | LowerBound [get, set] |
| lower_bound must be <= upper_bound.
|
|
bool | HasLowerBound [get] |
| Gets whether the "lower_bound" field is set.
|
|
double | UpperBound [get, set] |
|
bool | HasUpperBound [get] |
| Gets whether the "upper_bound" field is set.
|
|
Quadratic constraints of the form lb <= sum a_i x_i + sum b_ij x_i x_j <= ub, where a, b, lb and ub are constants, and x are the model's variables. Quadratic matrices that are Positive Semi-Definite, Second-Order Cones or rotated Second-Order Cones are always accepted. Other forms may or may not be accepted depending on the underlying solver used. See https://scip.zib.de/doc/html/cons__quadratic_8h.php and https://www.gurobi.com/documentation/9.0/refman/constraints.html#subsubsection:QuadraticConstraints.
Definition at line 2552 of file LinearSolver.pb.cs.
◆ MPQuadraticConstraint() [1/2]
OperationsResearch.MPQuadraticConstraint.MPQuadraticConstraint |
( |
| ) |
|
|
inline |
◆ MPQuadraticConstraint() [2/2]
◆ CalculateSize()
int OperationsResearch.MPQuadraticConstraint.CalculateSize |
( |
| ) |
|
|
inline |
◆ ClearLowerBound()
void OperationsResearch.MPQuadraticConstraint.ClearLowerBound |
( |
| ) |
|
|
inline |
◆ ClearUpperBound()
void OperationsResearch.MPQuadraticConstraint.ClearUpperBound |
( |
| ) |
|
|
inline |
◆ Clone()
◆ Equals() [1/2]
◆ Equals() [2/2]
override bool OperationsResearch.MPQuadraticConstraint.Equals |
( |
object | other | ) |
|
|
inline |
◆ GetHashCode()
override int OperationsResearch.MPQuadraticConstraint.GetHashCode |
( |
| ) |
|
|
inline |
◆ MergeFrom() [1/2]
◆ MergeFrom() [2/2]
void OperationsResearch.MPQuadraticConstraint.MergeFrom |
( |
pb.CodedInputStream | input | ) |
|
|
inline |
◆ ToString()
override string OperationsResearch.MPQuadraticConstraint.ToString |
( |
| ) |
|
|
inline |
◆ WriteTo()
void OperationsResearch.MPQuadraticConstraint.WriteTo |
( |
pb.CodedOutputStream | output | ) |
|
|
inline |
◆ CoefficientFieldNumber
const int OperationsResearch.MPQuadraticConstraint.CoefficientFieldNumber = 2 |
|
static |
◆ LowerBoundFieldNumber
const int OperationsResearch.MPQuadraticConstraint.LowerBoundFieldNumber = 6 |
|
static |
◆ QcoefficientFieldNumber
const int OperationsResearch.MPQuadraticConstraint.QcoefficientFieldNumber = 5 |
|
static |
◆ Qvar1IndexFieldNumber
const int OperationsResearch.MPQuadraticConstraint.Qvar1IndexFieldNumber = 3 |
|
static |
◆ Qvar2IndexFieldNumber
const int OperationsResearch.MPQuadraticConstraint.Qvar2IndexFieldNumber = 4 |
|
static |
◆ UpperBoundFieldNumber
const int OperationsResearch.MPQuadraticConstraint.UpperBoundFieldNumber = 7 |
|
static |
◆ VarIndexFieldNumber
const int OperationsResearch.MPQuadraticConstraint.VarIndexFieldNumber = 1 |
|
static |
◆ Coefficient
pbc.RepeatedField<double> OperationsResearch.MPQuadraticConstraint.Coefficient |
|
get |
◆ Descriptor
pbr.MessageDescriptor OperationsResearch.MPQuadraticConstraint.Descriptor |
|
staticget |
◆ HasLowerBound
bool OperationsResearch.MPQuadraticConstraint.HasLowerBound |
|
get |
◆ HasUpperBound
bool OperationsResearch.MPQuadraticConstraint.HasUpperBound |
|
get |
◆ LowerBound
double OperationsResearch.MPQuadraticConstraint.LowerBound |
|
getset |
◆ Parser
◆ Qcoefficient
pbc.RepeatedField<double> OperationsResearch.MPQuadraticConstraint.Qcoefficient |
|
get |
◆ Qvar1Index
pbc.RepeatedField<int> OperationsResearch.MPQuadraticConstraint.Qvar1Index |
|
get |
Sparse representation of quadratic terms in the quadratic constraint, where term i is qvar1_index[i] * qvar2_index[i] * qcoefficient[i]. qvar1_index
and qvar2_index
are variable indices w.r.t the "variable" field in MPModelProto. qvar1_index
, qvar2_index
and coefficients
must have the same size. If the same unordered pair (qvar1_index, qvar2_index) appears several times, the sum of all of the associated coefficients will be applied.
Definition at line 2651 of file LinearSolver.pb.cs.
◆ Qvar2Index
pbc.RepeatedField<int> OperationsResearch.MPQuadraticConstraint.Qvar2Index |
|
get |
◆ UpperBound
double OperationsResearch.MPQuadraticConstraint.UpperBound |
|
getset |
◆ VarIndex
pbc.RepeatedField<int> OperationsResearch.MPQuadraticConstraint.VarIndex |
|
get |
Sparse representation of linear terms in the quadratic constraint, where term i is var_index[i] * coefficient[i]. var_index
are variable indices w.r.t the "variable" field in MPModelProto, and should be unique.
Definition at line 2617 of file LinearSolver.pb.cs.
The documentation for this class was generated from the following file: