| 1 |
// (C) Copyright CNRS and others 2010 |
| 2 |
// All Rights Reserved. |
| 3 |
// This code is published under the Eclipse Public License. |
| 4 |
// |
| 5 |
// Authors : |
| 6 |
// Pierre Bonami, Université de la Méditérannée |
| 7 |
// Hassan Hijazi, Orange Labs |
| 8 |
// |
| 9 |
// Date : 05/22/2010 |
| 10 |
|
| 11 |
#ifndef OuterDescription_H |
| 12 |
#define OuterDescription_H |
| 13 |
|
| 14 |
#define INT_BIAS 0e-8 |
| 15 |
|
| 16 |
#include <string> |
| 17 |
#include <iostream> |
| 18 |
|
| 19 |
#include "BonOsiTMINLPInterface.hpp" |
| 20 |
#include "CoinWarmStartBasis.hpp" |
| 21 |
|
| 22 |
#include "BonCutStrengthener.hpp" |
| 23 |
|
| 24 |
namespace Bonmin { |
| 25 |
|
| 26 |
/** Get the outer approximation constraints at provided point and only for the specified constraint (ind is the constraint or row number). |
| 27 |
If x2 is different from NULL only add cuts violated by x2 by more than delta. **/ |
| 28 |
void getMyOuterApproximation(OsiTMINLPInterface &si, |
| 29 |
OsiCuts &cs, int ind, const double * x, |
| 30 |
int getObj, const double * x2, |
| 31 |
double theta, bool global); |
| 32 |
|
| 33 |
/** Adds an outer description of problem to linear formulation.*/ |
| 34 |
void addOuterDescription(OsiTMINLPInterface &nlp, OsiSolverInterface &si, |
| 35 |
const double * x, int nbAp, bool getObj); |
| 36 |
|
| 37 |
} |
| 38 |
#endif |