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

The boxes defined by [start_x, end_x) * [start_y, end_y) cannot overlap. Furthermore, one box is optional if at least one of the x or y interval is optional. More...

Inheritance diagram for Google.OrTools.Sat.NoOverlap2DConstraintProto:

Public Member Functions

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

Static Public Attributes

const int XIntervalsFieldNumber = 1
 Field number for the "x_intervals" field.
 
const int YIntervalsFieldNumber = 2
 Field number for the "y_intervals" field.
 

Properties

static pb::MessageParser< NoOverlap2DConstraintProtoParser [get]
 
static pbr::MessageDescriptor Descriptor [get]
 
pbc::RepeatedField< int > XIntervals [get]
 
pbc::RepeatedField< int > YIntervals [get]
 Same size as x_intervals.
 

Detailed Description

The boxes defined by [start_x, end_x) * [start_y, end_y) cannot overlap. Furthermore, one box is optional if at least one of the x or y interval is optional.

Note
the case of boxes of size zero is special. The following cases violate the constraint:
  • a point box inside a box with a non zero area
  • a line box overlapping a box with a non zero area
  • one vertical line box crossing an horizontal line box.

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

Constructor & Destructor Documentation

◆ NoOverlap2DConstraintProto() [1/2]

Google.OrTools.Sat.NoOverlap2DConstraintProto.NoOverlap2DConstraintProto ( )
inline

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

◆ NoOverlap2DConstraintProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

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

Member Data Documentation

◆ XIntervalsFieldNumber

const int Google.OrTools.Sat.NoOverlap2DConstraintProto.XIntervalsFieldNumber = 1
static

Field number for the "x_intervals" field.

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

◆ YIntervalsFieldNumber

const int Google.OrTools.Sat.NoOverlap2DConstraintProto.YIntervalsFieldNumber = 2
static

Field number for the "y_intervals" field.

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

Property Documentation

◆ Descriptor

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

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

◆ Parser

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

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

◆ XIntervals

pbc.RepeatedField<int> Google.OrTools.Sat.NoOverlap2DConstraintProto.XIntervals
get

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

◆ YIntervals

pbc.RepeatedField<int> Google.OrTools.Sat.NoOverlap2DConstraintProto.YIntervals
get

Same size as x_intervals.

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


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