跳至主内容
框架 无框架

IloLengthOfNext

public 'IloIntExprArg'IloLengthOfNext(const 'IloIntervalSequenceVar'序列, const 'IloIntervalVar'a, 'IloInt'lastVal)
定义文件: ilconcert/ilosmodel.h
返回表示下一个区间变量的长度的整型表达式。

This function returns an integer expression that represents the length of the interval variable that is next to interval a in sequence variable seq. 当区间 "a存在且是序列 "seq的最后一个区间时,它将返回常数整数值 "lastVal。 当区间 "a不存在时,返回 0。

有关区间变量排序的更多信息,请参阅CP 优化器中的区间变量排序概念。


IloLengthOfNext

public 'IloIntExprArg'IloLengthOfNext(const 'IloIntervalSequenceVar'序列, const 'IloIntervalVar'a, 'IloInt'lastVal, 'IloInt' 'absVal' )
定义文件: ilconcert/ilosmodel.h
返回表示下一个区间变量的长度的整型表达式。

This function returns an integer expression that represents the length of the interval variable that is next to interval a in sequence variable seq. 当区间 "a存在且是序列 "seq的最后一个区间时,它将返回常数整数值 "lastVal。 当区间 "a不存在时,它会返回常数整数值 "absVal

有关区间变量排序的更多信息,请参阅CP 优化器中的区间变量排序概念。