Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.LinearConstraintProto Class Referencesealed

The linear sum vars[i] * coeffs[i] must fall in the given domain. The domain has the same format as the one in IntegerVariableProto. More...

Inheritance diagram for Google.OrTools.Sat.LinearConstraintProto:

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.
 
const int CoeffsFieldNumber = 2
 Field number for the "coeffs" field.
 
const int DomainFieldNumber = 3
 Field number for the "domain" field.
 

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.
 
pbc::RepeatedField< long > Domain [get]
 

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
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 1367 of file CpModel.pb.cs.

Constructor & Destructor Documentation

◆ LinearConstraintProto() [1/2]

Google.OrTools.Sat.LinearConstraintProto.LinearConstraintProto ( )
inline

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

◆ LinearConstraintProto() [2/2]

Google.OrTools.Sat.LinearConstraintProto.LinearConstraintProto ( LinearConstraintProto other)
inline

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

Member Function Documentation

◆ CalculateSize()

int Google.OrTools.Sat.LinearConstraintProto.CalculateSize ( )
inline

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

◆ Clone()

LinearConstraintProto Google.OrTools.Sat.LinearConstraintProto.Clone ( )
inline

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

◆ Equals() [1/2]

bool Google.OrTools.Sat.LinearConstraintProto.Equals ( LinearConstraintProto other)
inline

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

◆ Equals() [2/2]

override bool Google.OrTools.Sat.LinearConstraintProto.Equals ( object other)
inline

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

◆ GetHashCode()

override int Google.OrTools.Sat.LinearConstraintProto.GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void Google.OrTools.Sat.LinearConstraintProto.MergeFrom ( LinearConstraintProto other)
inline

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

◆ MergeFrom() [2/2]

void Google.OrTools.Sat.LinearConstraintProto.MergeFrom ( pb.CodedInputStream input)
inline

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

◆ ToString()

override string Google.OrTools.Sat.LinearConstraintProto.ToString ( )
inline

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

◆ WriteTo()

void Google.OrTools.Sat.LinearConstraintProto.WriteTo ( pb.CodedOutputStream output)
inline

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

Member Data Documentation

◆ CoeffsFieldNumber

const int Google.OrTools.Sat.LinearConstraintProto.CoeffsFieldNumber = 2
static

Field number for the "coeffs" field.

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

◆ DomainFieldNumber

const int Google.OrTools.Sat.LinearConstraintProto.DomainFieldNumber = 3
static

Field number for the "domain" field.

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

◆ VarsFieldNumber

const int Google.OrTools.Sat.LinearConstraintProto.VarsFieldNumber = 1
static

Field number for the "vars" field.

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

Property Documentation

◆ Coeffs

pbc.RepeatedField<long> Google.OrTools.Sat.LinearConstraintProto.Coeffs
get

Same size as vars.

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

◆ Descriptor

pbr.MessageDescriptor Google.OrTools.Sat.LinearConstraintProto.Descriptor
staticget

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

◆ Domain

pbc.RepeatedField<long> Google.OrTools.Sat.LinearConstraintProto.Domain
get

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

◆ Parser

pb.MessageParser<LinearConstraintProto> Google.OrTools.Sat.LinearConstraintProto.Parser
staticget

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

◆ Vars

pbc.RepeatedField<int> Google.OrTools.Sat.LinearConstraintProto.Vars
get

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


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