#include "GamsModel.hpp"
#include "GamsMessageHandler.hpp"
#include "OsiSolverInterface.hpp"
Include dependency graph for GamsFinalize.hpp:
Go to the source code of this file.
Functions | |
void | GamsFinalizeOsi (GamsModel *gm, GamsMessageHandler *myout, OsiSolverInterface *solver, bool PresolveInfeasible) |
Analyze solution stored in an OsiSolverInterface and writes GAMS solution file. |
void GamsFinalizeOsi | ( | GamsModel * | gm, | |
GamsMessageHandler * | myout, | |||
OsiSolverInterface * | solver, | |||
bool | PresolveInfeasible | |||
) |
Analyze solution stored in an OsiSolverInterface and writes GAMS solution file.
If the model was solved to optimality, this method tries to obtain the optimal basis from the solver. If solver->optimalBasisIsAvailable() returns positive, the basis returned by solver->getBasisStatus is used. Else, if solver->getWarmStart() returns a basis, then this basis is used. Otherwise we try to guess a basis, which is likely to fail.
gm | The GamsModel. | |
myout | The GAMS message handler for output. | |
solver | The OSI solver interface to read the solution from. | |
PresolveInfeasible | Indicate, whether the solver found the model infeasible in the presolve. |