Google OR-Tools v9.12
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 2584 of file CpModel.pb.cs.

Constructor & Destructor Documentation

◆ NoOverlap2DConstraintProto() [1/2]

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

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

◆ NoOverlap2DConstraintProto() [2/2]

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

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

Member Function Documentation

◆ CalculateSize()

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

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

◆ Clone()

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

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

◆ Equals() [1/2]

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

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

◆ Equals() [2/2]

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

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

◆ GetHashCode()

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

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

◆ MergeFrom() [1/2]

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

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

◆ MergeFrom() [2/2]

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

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

◆ ToString()

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

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

◆ WriteTo()

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

Definition at line 2694 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 2630 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 2641 of file CpModel.pb.cs.

Property Documentation

◆ Descriptor

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

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

◆ Parser

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

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

◆ XIntervals

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

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

◆ YIntervals

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

Same size as x_intervals.

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


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