Hexaly Optimizer 13.0¶
Release notes
- A new operator HULL has been added.
- A new operator STEP_ARRAY has been added.
- The AT operator applied on a list will now fail if the index is out of bounds.
Modeling operators¶
Hull¶
The smallest interval including all intervals given in operands. This operator accepts n operands of type interval, or an unique operator of type array of intervals. The operator returns an interval with a start equal to the smallest start of its operands, and an end equal to the largest end of its operands. Void intervals given in operands will be ignored.
StepArray¶
A constant array with optimised memory. StepArray takes as parameters two constant arrays X and Y of equal size N. X contains the indexes of the constant array where the value changes. X must have strictly positive increasing values. Y is an array of constants. These constants are the value in each interval between the indices given by X : all values between X[i - 1] and X[i] are equal to Y[i].
At (behavior change)¶
The AT operator applied to a list decision variable takes two operands: the list and the index. If the index is outside the bounds of the list, i.e. strictly less than 0 or greater than or equal to the number of elements in the list (which can be obtained using the COUNT operator), the evaluation of the AT will no longer return -1 but will fail. This behavior is now aligned with the one implemented for arrays.
API Changes¶
Hexaly Modeler¶
- Added
hull()operator. - Added
stepArray()operator. - Added new methods
HxCollection.isUndefined()andHxArray.isUndefined()to test if the collection or the array is undefined.
Python¶
- Added
HxOperator.HULLoperator. - Added
HxModel.hullto create hull expressions. - Added
HxOperator.STEP_ARRAYoperator. - Added
HxModel.step_arrayto create stepArray expressions. - Added new methods
HxCollection.is_undefined()andHxArray.is_undefined()to test if the collection or the array is undefined.
C++¶
- Added
O_Hulloperator. - Added
HxModel::hull()to create hull expressions. - Added
O_StepArrayoperator. - Added
HxModel::stepArray()to create stepArray expressions. - Added new methods
HxCollection::isUndefined()andHxArray::isUndefined()to test if the collection or the array is undefined.
C#¶
- Added
HxOperator.Hulloperator. - Added
HxModel.Hullto create hull expressions. - Added
HxOperator.StepArrayoperator. - Added
HxModel.StepArrayto create stepArray expressions. - Added new methods
HxCollection.IsUndefinedandHxArray.IsUndefinedto test if the collection or the array is undefined.
Java¶
- Added
HxOperator.Hulloperator. - Added
HxModel.Hullto create hull expressions. - Added
HxOperator.StepArrayoperator. - Added
HxModel.StepArrayto create stepArray expressions. - Added new methods
HxCollection.isUndefinedandHxArray.isUndefinedto test if the collection or the array is undefined.