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

This is not really a constraint. It is there so it can be referred by other constraints using this "interval" concept. More...

Inheritance diagram for Google.OrTools.Sat.IntervalConstraintProto:

Public Member Functions

 IntervalConstraintProto ()
 
 IntervalConstraintProto (IntervalConstraintProto other)
 
IntervalConstraintProto Clone ()
 
override bool Equals (object other)
 
bool Equals (IntervalConstraintProto other)
 
override int GetHashCode ()
 
override string ToString ()
 
void WriteTo (pb::CodedOutputStream output)
 
int CalculateSize ()
 
void MergeFrom (IntervalConstraintProto other)
 
void MergeFrom (pb::CodedInputStream input)
 

Static Public Attributes

const int StartFieldNumber = 4
 Field number for the "start" field.
 
const int EndFieldNumber = 5
 Field number for the "end" field.
 
const int SizeFieldNumber = 6
 Field number for the "size" field.
 

Properties

static pb::MessageParser< IntervalConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
global::Google.OrTools.Sat.LinearExpressionProto Start [get, set]
 
global::Google.OrTools.Sat.LinearExpressionProto End [get, set]
 
global::Google.OrTools.Sat.LinearExpressionProto Size [get, set]
 

Detailed Description

This is not really a constraint. It is there so it can be referred by other constraints using this "interval" concept.

IMPORTANT: For now, this constraint do not enforce any relations on the components, and it is up to the client to add in the model:

  • enforcement => start + size == end.
  • enforcement => size >= 0 ///< Only needed if size is not already >= 0. IMPORTANT: For now, we just support affine relation. We could easily create an intermediate variable to support full linear expression, but this isn't done currently.

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

Constructor & Destructor Documentation

◆ IntervalConstraintProto() [1/2]

Google.OrTools.Sat.IntervalConstraintProto.IntervalConstraintProto ( )
inline

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

◆ IntervalConstraintProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

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

Member Data Documentation

◆ EndFieldNumber

const int Google.OrTools.Sat.IntervalConstraintProto.EndFieldNumber = 5
static

Field number for the "end" field.

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

◆ SizeFieldNumber

const int Google.OrTools.Sat.IntervalConstraintProto.SizeFieldNumber = 6
static

Field number for the "size" field.

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

◆ StartFieldNumber

const int Google.OrTools.Sat.IntervalConstraintProto.StartFieldNumber = 4
static

Field number for the "start" field.

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

Property Documentation

◆ Descriptor

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

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

◆ End

global.Google.OrTools.Sat.LinearExpressionProto Google.OrTools.Sat.IntervalConstraintProto.End
getset

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

◆ Parser

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

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

◆ Size

global.Google.OrTools.Sat.LinearExpressionProto Google.OrTools.Sat.IntervalConstraintProto.Size
getset

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

◆ Start

global.Google.OrTools.Sat.LinearExpressionProto Google.OrTools.Sat.IntervalConstraintProto.Start
getset

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


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