ContentsIndexHome
PreviousUpNext
setValues Method

Sets the values for the complete domain of the data, by passing the values as an array and specifying the number of elements in the array.

If the data has more than one dimension, the values must be in row major order (the default order in Java, C++, C# as well as in AIMMS), i.e. the tuple (1,2) comes before the tuple (2,1). 

See also the Wikipedia page on row major ordering.

Sets the values for the complete domain of the data, by passing all the values as a dense array. Applies to string and (if the range is no subset of Integers) element valued data. 

 

virtual void setValues(const char* const values[], int numberOfValues) = 0;

 

Sets the values for the complete domain of the data, by passing all the values as a dense array. Applies to double valued data only. 

 

virtual void setValues(const double values[], int numberOfValues) = 0;

 

Sets the values for the complete domain of the data, by passing all the values as a dense array. Applies to integer, double and (if the range is a subset of Integers) element valued data. 

 

virtual void setValues(const int values[], int numberOfValues) = 0;

 

Sets the values for the complete domain of the data, by passing all the values as a dense array. Applies to string and (if the range is no subset of Integers) element valued data. 

 

virtual void setValues(const std::string values[], int numberOfValues) = 0;