DotNet Reference

.Net Reference

Detailed Description

An interval variable

This class must be constructed from the CpModel class.

Definition at line 23 of file IntervalVariables.cs.

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 More...
 
LinearExpr StartExpr ()
 The start expression of the interval More...
 
LinearExpr SizeExpr ()
 The size expression of the interval More...
 
LinearExpr EndExpr ()
 The end expression of the interval More...
 
override string ToString ()
 
string Name ()
 

Properties

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

Constructor & Destructor Documentation

◆ IntervalVar() [1/2]

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]

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 EndExpr ( )
inline

The end expression of the interval

Definition at line 78 of file IntervalVariables.cs.

◆ GetIndex()

int GetIndex ( )
inline

The Index of the interval in the model proto

Definition at line 60 of file IntervalVariables.cs.

◆ Name()

string Name ( )
inline

Definition at line 99 of file IntervalVariables.cs.

◆ SizeExpr()

LinearExpr SizeExpr ( )
inline

The size expression of the interval

Definition at line 72 of file IntervalVariables.cs.

◆ StartExpr()

LinearExpr StartExpr ( )
inline

The start expression of the interval

Definition at line 66 of file IntervalVariables.cs.

◆ ToString()

override string ToString ( )
inline

Definition at line 94 of file IntervalVariables.cs.

Property Documentation

◆ Proto

IntervalConstraintProto 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: