ContentsIndexHome
PreviousUpNext
ISolverMathProgramInstance::GetColumnSolution Method

Provides the column solution.

virtual void GetColumnSolution(
    _LONG_T first_col, 
    _LONG_T last_col, 
    _LONG_T type_flag, 
    double lev[], 
    double mar[], 
    _LONG_T basic[]
) = 0;
Parameters 
Description 
_LONG_T first_col 
The number of the column indicating the beginning of the range 
_LONG_T last_col 
The number of the column indicating the end of the range 
_LONG_T type_flag 
Bit field that specifies which (combination of) solution info should be returned; flags are taken from the SolutionReturnType enumeration. 
double lev[] 
Array for filling in the level values of the columns 
double mar[] 
Array for filling in the marginals of the columns 
_LONG_T basic[] 
Array for filling in the basis status of the columns if bit RETURN_SOLUTION_BASIC is set in type_flag, or the presolve status if bit RETURN_SOLUTION_PRESOLVE is set 

The GetColumnSolution method has no return value.

The GetColumnSolution method is called by AIMMS to request a solver to return the column level values, marginals and/or basic information for a range of columns. AIMMS can also use this method for obtaining the presolve status for a range of columns (if supported by the solver).

The arrays lev, mar and basic have length last_col - first_col + 1. Only the arrays as indicated by argument type_flag should be filled.

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