DotNet Reference

DotNet Reference

LinearConstraintProto

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

◆ LinearConstraintProto() [2/2]

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

Member Function Documentation

◆ CalculateSize()

int CalculateSize ( )
inline

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

◆ Clone()

LinearConstraintProto Clone ( )
inline

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

◆ Equals() [1/2]

bool Equals ( LinearConstraintProto  other)
inline

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

◆ Equals() [2/2]

override bool Equals ( object  other)
inline

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

◆ GetHashCode()

override int GetHashCode ( )
inline

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

◆ MergeFrom() [1/2]

void MergeFrom ( LinearConstraintProto  other)
inline

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

◆ MergeFrom() [2/2]

void MergeFrom ( pb::CodedInputStream  input)
inline

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

◆ ToString()

override string ToString ( )
inline

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

◆ WriteTo()

void WriteTo ( pb::CodedOutputStream  output)
inline

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

Member Data Documentation

◆ CoeffsFieldNumber

const int CoeffsFieldNumber = 2
static

Field number for the "coeffs" field.

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

◆ DomainFieldNumber

const int DomainFieldNumber = 3
static

Field number for the "domain" field.

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

◆ VarsFieldNumber

const int VarsFieldNumber = 1
static

Field number for the "vars" field.

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

Property Documentation

◆ Coeffs

pbc.RepeatedField<long> Coeffs
get

Same size as vars.

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

◆ Descriptor

pbr.MessageDescriptor Descriptor
staticget

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

◆ Domain

pbc.RepeatedField<long> Domain
get

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

◆ Parser

pb.MessageParser<LinearConstraintProto> Parser
staticget

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

◆ Vars

pbc.RepeatedField<int> Vars
get

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


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