DotNet Reference
DotNet 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 1153 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 1170 of file CpModel.pb.cs.
◆ LinearConstraintProto() [2/2]
|
inline |
Definition at line 1177 of file CpModel.pb.cs.
Member Function Documentation
◆ CalculateSize()
|
inline |
Definition at line 1269 of file CpModel.pb.cs.
◆ Clone()
|
inline |
Definition at line 1185 of file CpModel.pb.cs.
◆ Equals() [1/2]
|
inline |
Definition at line 1228 of file CpModel.pb.cs.
◆ Equals() [2/2]
|
inline |
Definition at line 1223 of file CpModel.pb.cs.
◆ GetHashCode()
|
inline |
Definition at line 1242 of file CpModel.pb.cs.
◆ MergeFrom() [1/2]
|
inline |
Definition at line 1281 of file CpModel.pb.cs.
◆ MergeFrom() [2/2]
|
inline |
Definition at line 1292 of file CpModel.pb.cs.
◆ ToString()
|
inline |
Definition at line 1254 of file CpModel.pb.cs.
◆ WriteTo()
|
inline |
Definition at line 1259 of file CpModel.pb.cs.
Member Data Documentation
◆ CoeffsFieldNumber
|
static |
Field number for the "coeffs" field.
Definition at line 1200 of file CpModel.pb.cs.
◆ DomainFieldNumber
|
static |
Field number for the "domain" field.
Definition at line 1213 of file CpModel.pb.cs.
◆ VarsFieldNumber
|
static |
Field number for the "vars" field.
Definition at line 1190 of file CpModel.pb.cs.
Property Documentation
◆ Coeffs
|
get |
Same size as vars.
Definition at line 1208 of file CpModel.pb.cs.
◆ Descriptor
|
staticget |
Definition at line 1160 of file CpModel.pb.cs.
◆ Domain
|
get |
Definition at line 1218 of file CpModel.pb.cs.
◆ Parser
|
staticget |
Definition at line 1157 of file CpModel.pb.cs.
◆ Vars
|
get |
Definition at line 1195 of file CpModel.pb.cs.
The documentation for this class was generated from the following file: