ContentsIndexHome
PreviousUpNext
IAimmsMathProgramMatrixManipulationInfo::GetNextChangedQMatrixElements Method

Get modified quadratic objective coefficients.

virtual _LONG_T GetNextChangedQMatrixElements(
    _LONG_T max_no, 
    _LONG_T col_no1[], 
    _LONG_T col_no2[], 
    double val[]
) = 0;
Parameters 
Description 
_LONG_T max_no 
The maximum number of quadratic elements to retrieve. 
_LONG_T col_no1[] 
Array with the first column numbers of the quadratic matrix elements. Length must be at least max_no
_LONG_T col_no2[] 
Array with the second column numbers of the quadratic matrix elements. Length must be at least max_no
double val[] 
Array with the values of the quadratic coefficients. Length must be at least max_no

The GetNextChangedQMatrixElements method returns the actual number of quadratic elements retrieved.

The GetNextChangedQMatrixElements method is used to get quadratic objective elements from AIMMS that were changed after a solve using GMP modifications. This method should only be called if the capability flag SolverCapability::CAPAB_MATRIX_MANIP has been set in the GetInitialInfo method.

  1. The number of changed quadratic elements is equal to the value of parameter IntegerMathProgramInfo::IPARAM_MM_CHG_QE, as passed to the DoSolve method.
  2. If max_no is greater than or equal to the number of changed quadratic elements in the problem, you get all column data using a single call to this method.
  3. If max_no is smaller than the number of changed quadratic elements then you request for a block-wise retrieval, and you must call GetNextChangedQMatrixElements repeatedly, until all changed quadratic elements are retrieved.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.