DotNet Reference
.Net Reference
Detailed Description
The linear sum vars[i] * coeffs[i] must fall in the given domain.
The domain has the same format as the one in IntegerVariableProto.
Note that the validation code currently checks using the domain of the involved variables that the sum can always be computed without integer overflow and throws an error otherwise.
Definition at line 1457 of file CpModel.pb.cs.
Public Member Functions | |
LinearConstraintProto () | |
LinearConstraintProto (LinearConstraintProto other) | |
LinearConstraintProto | Clone () |
override bool | Equals (object other) |
bool | Equals (LinearConstraintProto other) |
override int | GetHashCode () |
override string | ToString () |
void | WriteTo (pb::CodedOutputStream output) |
int | CalculateSize () |
void | MergeFrom (LinearConstraintProto other) |
void | MergeFrom (pb::CodedInputStream input) |
Static Public Attributes | |
const int | VarsFieldNumber = 1 |
Field number for the "vars" field. More... | |
const int | CoeffsFieldNumber = 2 |
Field number for the "coeffs" field. More... | |
const int | DomainFieldNumber = 3 |
Field number for the "domain" field. More... | |
Properties | |
static pb::MessageParser< LinearConstraintProto > | Parser [get] |
static pbr::MessageDescriptor | Descriptor [get] |
pbc::RepeatedField< int > | Vars [get] |
pbc::RepeatedField< long > | Coeffs [get] |
Same size as vars. More... | |
pbc::RepeatedField< long > | Domain [get] |
Constructor & Destructor Documentation
◆ LinearConstraintProto() [1/2]
|
inline |
Definition at line 1478 of file CpModel.pb.cs.
◆ LinearConstraintProto() [2/2]
|
inline |
Definition at line 1485 of file CpModel.pb.cs.
Member Function Documentation
◆ CalculateSize()
|
inline |
Definition at line 1593 of file CpModel.pb.cs.
◆ Clone()
|
inline |
Definition at line 1493 of file CpModel.pb.cs.
◆ Equals() [1/2]
|
inline |
Definition at line 1536 of file CpModel.pb.cs.
◆ Equals() [2/2]
|
inline |
Definition at line 1531 of file CpModel.pb.cs.
◆ GetHashCode()
|
inline |
Definition at line 1550 of file CpModel.pb.cs.
◆ MergeFrom() [1/2]
|
inline |
Definition at line 1605 of file CpModel.pb.cs.
◆ MergeFrom() [2/2]
|
inline |
Definition at line 1616 of file CpModel.pb.cs.
◆ ToString()
|
inline |
Definition at line 1562 of file CpModel.pb.cs.
◆ WriteTo()
|
inline |
Definition at line 1567 of file CpModel.pb.cs.
Member Data Documentation
◆ CoeffsFieldNumber
|
static |
Field number for the "coeffs" field.
Definition at line 1508 of file CpModel.pb.cs.
◆ DomainFieldNumber
|
static |
Field number for the "domain" field.
Definition at line 1521 of file CpModel.pb.cs.
◆ VarsFieldNumber
|
static |
Field number for the "vars" field.
Definition at line 1498 of file CpModel.pb.cs.
Property Documentation
◆ Coeffs
|
get |
Same size as vars.
Definition at line 1516 of file CpModel.pb.cs.
◆ Descriptor
|
staticget |
Definition at line 1468 of file CpModel.pb.cs.
◆ Domain
|
get |
Definition at line 1526 of file CpModel.pb.cs.
◆ Parser
|
staticget |
Definition at line 1465 of file CpModel.pb.cs.
◆ Vars
|
get |
Definition at line 1503 of file CpModel.pb.cs.
The documentation for this class was generated from the following file: