ContentsIndexHome
PreviousUpNext
IAimmsMathProgramCallback::GetHeuristicSolution Method

Get a heuristic solution from AIMMS.

virtual _LONG_T GetHeuristicSolution(
    int max_no, 
    double * lev, 
    double * objval
) = 0;
Parameters 
Description 
int max_no 
Number of columns for which the level values should be retrieved. Normally this is equal to the number of columns in the model. 
double * lev 
Buffer containing the double valued level values of the columns. The buffer should have size of at least max_no
double * objval 
Objective value of heuristic solution. 

The GetHeuristicSolution method returns the number of columns for which the level values were obtained.

The GetHeuristicSolution method can be used to obtain a heuristic solution from AIMMS. It should only be called just after the RunCallback method returns from a heuristic callback.

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