Checks whether an interval variable with the specified name is currently set to be absent.
Namespace: ILOG.CP
Assembly: oplall (in oplall.dll)
Syntax
| C# |
|---|
public virtual bool IsAbsent( string intervalVarName ) |
Parameters
- intervalVarName
- Type: System..::..String
Remarks
This method returns true if the interval variable with the specified name is currently set to be absent. It is a shortcut for cp.IsAbsent(cp.GetIIntervalVar(intervalVarName)).
An instance of IloException is thrown if:
- an interval variable with the specified name does not exist,
- or the presence status of the interval variable is not fixed yet,
- or there are duplicate names in the current model.
Note that name aliases cannot be used in this method as described in the section "Statements > Aliasing" of the CP Optimizer File Format Reference Manual.