A heuristic that stores the initial solution of the NLP.
More...
#include <BonInitHeuristic.hpp>
A heuristic that stores the initial solution of the NLP.
This is computed before Cbc is started, and in this way we can tell Cbc about this.
Definition at line 24 of file BonInitHeuristic.hpp.
Couenne::InitHeuristic::InitHeuristic |
( |
double |
objValue, |
|
|
const double * |
sol, |
|
|
CouenneProblem & |
cp |
|
) |
| |
Constructor with model and Ipopt problems.
Couenne::InitHeuristic::InitHeuristic |
( |
const InitHeuristic & |
other | ) |
|
virtual Couenne::InitHeuristic::~InitHeuristic |
( |
| ) |
|
|
virtual |
Couenne::InitHeuristic::InitHeuristic |
( |
| ) |
|
|
private |
virtual CbcHeuristic* Couenne::InitHeuristic::clone |
( |
| ) |
const |
|
virtual |
virtual void Couenne::InitHeuristic::resetModel |
( |
CbcModel * |
model | ) |
|
|
inlinevirtual |
virtual int Couenne::InitHeuristic::solution |
( |
double & |
objectiveValue, |
|
|
double * |
newSolution |
|
) |
| |
|
virtual |
Run heuristic, return 1 if a better solution than the one passed is found and 0 otherwise.
objectiveValue Best known solution in input and value of solution found in output newSolution Solution found by heuristic.
- Todo:
- Find a quicker way to get to Couenne objects, store them or something
double Couenne::InitHeuristic::objValue_ |
|
private |
double* Couenne::InitHeuristic::sol_ |
|
private |
int Couenne::InitHeuristic::nVars_ |
|
private |
The documentation for this class was generated from the following file: