Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Quadratic part of a model's objective. Added with other objectives (such as linear), this creates the model's objective function to be optimized. More...
Public Member Functions | |
MPQuadraticObjective () | |
MPQuadraticObjective (MPQuadraticObjective other) | |
MPQuadraticObjective | Clone () |
override bool | Equals (object other) |
bool | Equals (MPQuadraticObjective other) |
override int | GetHashCode () |
override string | ToString () |
void | WriteTo (pb::CodedOutputStream output) |
int | CalculateSize () |
void | MergeFrom (MPQuadraticObjective other) |
void | MergeFrom (pb::CodedInputStream input) |
Static Public Attributes | |
const int | Qvar1IndexFieldNumber = 1 |
Field number for the "qvar1_index" field. | |
const int | Qvar2IndexFieldNumber = 2 |
Field number for the "qvar2_index" field. | |
const int | CoefficientFieldNumber = 3 |
Field number for the "coefficient" field. | |
Properties | |
static pb::MessageParser< MPQuadraticObjective > | Parser [get] |
static pbr::MessageDescriptor | Descriptor [get] |
pbc::RepeatedField< int > | Qvar1Index [get] |
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[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 > | Coefficient [get] |
Must be finite. | |
Quadratic part of a model's objective. Added with other objectives (such as linear), this creates the model's objective function to be optimized.
Definition at line 3784 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3809 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3817 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3945 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3826 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3883 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3877 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3898 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3958 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3970 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3911 of file LinearSolver.pb.cs.
|
inline |
Definition at line 3917 of file LinearSolver.pb.cs.
|
static |
Field number for the "coefficient" field.
Definition at line 3862 of file LinearSolver.pb.cs.
|
static |
Field number for the "qvar1_index" field.
Definition at line 3831 of file LinearSolver.pb.cs.
|
static |
Field number for the "qvar2_index" field.
Definition at line 3851 of file LinearSolver.pb.cs.
|
get |
Must be finite.
Definition at line 3871 of file LinearSolver.pb.cs.
|
staticget |
Definition at line 3797 of file LinearSolver.pb.cs.
|
staticget |
Definition at line 3793 of file LinearSolver.pb.cs.
|
get |
Sparse representation of quadratic terms in the objective function, where term i is qvar1_index[i] * qvar2_index[i] * coefficient[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 3846 of file LinearSolver.pb.cs.
|
get |
Definition at line 3857 of file LinearSolver.pb.cs.