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

Some constraints supports linear expression instead of just using a reference to a variable. This is especially useful during presolve to reduce the model size. More...

Inheritance diagram for Google.OrTools.Sat.LinearExpressionProto:

Public Member Functions

 LinearExpressionProto ()
 
 LinearExpressionProto (LinearExpressionProto other)
 
LinearExpressionProto Clone ()
 
override bool Equals (object other)
 
bool Equals (LinearExpressionProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (LinearExpressionProto 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 OffsetFieldNumber = 3
 Field number for the "offset" field.
 

Properties

static pb::MessageParser< LinearExpressionProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
pbc::RepeatedField< int > Vars [get]
 
pbc::RepeatedField< long > Coeffs [get]
 
long Offset [get, set]
 

Detailed Description

Some constraints supports linear expression instead of just using a reference to a variable. This is especially useful during presolve to reduce the model size.

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

Constructor & Destructor Documentation

◆ LinearExpressionProto() [1/2]

Google.OrTools.Sat.LinearExpressionProto.LinearExpressionProto ( )
inline

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

◆ LinearExpressionProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

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

Member Data Documentation

◆ CoeffsFieldNumber

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

Field number for the "coeffs" field.

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

◆ OffsetFieldNumber

const int Google.OrTools.Sat.LinearExpressionProto.OffsetFieldNumber = 3
static

Field number for the "offset" field.

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

◆ VarsFieldNumber

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

Field number for the "vars" field.

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

Property Documentation

◆ Coeffs

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

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

◆ Descriptor

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

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

◆ Offset

long Google.OrTools.Sat.LinearExpressionProto.Offset
getset

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

◆ Parser

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

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

◆ Vars

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

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


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