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< LinearConstraintProtoParser [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]

Definition at line 1478 of file CpModel.pb.cs.

◆ LinearConstraintProto() [2/2]

Definition at line 1485 of file CpModel.pb.cs.

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

Definition at line 1593 of file CpModel.pb.cs.

◆ Clone()

LinearConstraintProto Clone ( )
inline

Definition at line 1493 of file CpModel.pb.cs.

◆ Equals() [1/2]

bool Equals ( LinearConstraintProto  other)
inline

Definition at line 1536 of file CpModel.pb.cs.

◆ Equals() [2/2]

override bool Equals ( object  other)
inline

Definition at line 1531 of file CpModel.pb.cs.

◆ GetHashCode()

override int GetHashCode ( )
inline

Definition at line 1550 of file CpModel.pb.cs.

◆ MergeFrom() [1/2]

void MergeFrom ( LinearConstraintProto  other)
inline

Definition at line 1605 of file CpModel.pb.cs.

◆ MergeFrom() [2/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

Definition at line 1616 of file CpModel.pb.cs.

◆ ToString()

override string ToString ( )
inline

Definition at line 1562 of file CpModel.pb.cs.

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

Definition at line 1567 of file CpModel.pb.cs.

Member Data Documentation

◆ CoeffsFieldNumber

const int CoeffsFieldNumber = 2
static

Field number for the "coeffs" field.

Definition at line 1508 of file CpModel.pb.cs.

◆ DomainFieldNumber

const int DomainFieldNumber = 3
static

Field number for the "domain" field.

Definition at line 1521 of file CpModel.pb.cs.

◆ VarsFieldNumber

const int VarsFieldNumber = 1
static

Field number for the "vars" field.

Definition at line 1498 of file CpModel.pb.cs.

Property Documentation

◆ Coeffs

pbc.RepeatedField<long> Coeffs
get

Same size as vars.

Definition at line 1516 of file CpModel.pb.cs.

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

Definition at line 1468 of file CpModel.pb.cs.

◆ Domain

pbc.RepeatedField<long> Domain
get

Definition at line 1526 of file CpModel.pb.cs.

◆ Parser

pb.MessageParser<LinearConstraintProto> Parser
staticget

Definition at line 1465 of file CpModel.pb.cs.

◆ Vars

pbc.RepeatedField<int> Vars
get

Definition at line 1503 of file CpModel.pb.cs.


The documentation for this class was generated from the following file: