DotNet Reference

.Net Reference

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

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

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]
 

Constructor & Destructor Documentation

◆ LinearExpressionProto() [1/2]

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

◆ LinearExpressionProto() [2/2]

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

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

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

◆ Clone()

LinearExpressionProto Clone ( )
inline

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

◆ Equals() [1/2]

bool Equals ( LinearExpressionProto  other)
inline

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

◆ Equals() [2/2]

override bool Equals ( object  other)
inline

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

◆ GetHashCode()

override int GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( LinearExpressionProto  other)
inline

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

◆ MergeFrom() [2/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

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

◆ ToString()

override string ToString ( )
inline

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

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

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

Member Data Documentation

◆ CoeffsFieldNumber

const int CoeffsFieldNumber = 2
static

Field number for the "coeffs" field.

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

◆ OffsetFieldNumber

const int OffsetFieldNumber = 3
static

Field number for the "offset" field.

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

◆ VarsFieldNumber

const int VarsFieldNumber = 1
static

Field number for the "vars" field.

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

Property Documentation

◆ Coeffs

pbc.RepeatedField<long> Coeffs
get

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

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

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

◆ Offset

long Offset
getset

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

◆ Parser

pb.MessageParser<LinearExpressionProto> Parser
staticget

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

◆ Vars

pbc.RepeatedField<int> Vars
get

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


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