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

An interval variable. More...

Public Member Functions

 IntervalVar (CpModelProto model, LinearExpressionProto start, LinearExpressionProto size, LinearExpressionProto end, int is_present_index, string name)
 
 IntervalVar (CpModelProto model, LinearExpressionProto start, LinearExpressionProto size, LinearExpressionProto end, string name)
 
int GetIndex ()
 The Index of the interval in the model proto.
 
LinearExpr StartExpr ()
 The start expression of the interval.
 
LinearExpr SizeExpr ()
 The size expression of the interval.
 
LinearExpr EndExpr ()
 The end expression of the interval.
 
override string ToString ()
 
string Name ()
 

Properties

IntervalConstraintProto Proto [get, set]
 The underlying interval proto.
 

Detailed Description

An interval variable.

This class must be constructed from the CpModel class.

Definition at line 23 of file IntervalVariables.cs.

Constructor & Destructor Documentation

◆ IntervalVar() [1/2]

Google.OrTools.Sat.IntervalVar.IntervalVar ( CpModelProto model,
LinearExpressionProto start,
LinearExpressionProto size,
LinearExpressionProto end,
int is_present_index,
string name )
inline

Definition at line 25 of file IntervalVariables.cs.

◆ IntervalVar() [2/2]

Google.OrTools.Sat.IntervalVar.IntervalVar ( CpModelProto model,
LinearExpressionProto start,
LinearExpressionProto size,
LinearExpressionProto end,
string name )
inline

Definition at line 43 of file IntervalVariables.cs.

Member Function Documentation

◆ EndExpr()

LinearExpr Google.OrTools.Sat.IntervalVar.EndExpr ( )
inline

The end expression of the interval.

Definition at line 78 of file IntervalVariables.cs.

◆ GetIndex()

int Google.OrTools.Sat.IntervalVar.GetIndex ( )
inline

The Index of the interval in the model proto.

Definition at line 60 of file IntervalVariables.cs.

◆ Name()

string Google.OrTools.Sat.IntervalVar.Name ( )
inline

Definition at line 99 of file IntervalVariables.cs.

◆ SizeExpr()

LinearExpr Google.OrTools.Sat.IntervalVar.SizeExpr ( )
inline

The size expression of the interval.

Definition at line 72 of file IntervalVariables.cs.

◆ StartExpr()

LinearExpr Google.OrTools.Sat.IntervalVar.StartExpr ( )
inline

The start expression of the interval.

Definition at line 66 of file IntervalVariables.cs.

◆ ToString()

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

Definition at line 94 of file IntervalVariables.cs.

Property Documentation

◆ Proto

IntervalConstraintProto Google.OrTools.Sat.IntervalVar.Proto
getset

The underlying interval proto.

Definition at line 84 of file IntervalVariables.cs.


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