linquad_cuts.hpp File Reference
#include <CglCutGenerator.hpp>
#include <tracer.hpp>
Go to the source code of this file.
Defines |
#define | indexQ(i, j, n) ((n) + (i) * (2*(n)-1-(i)) / 2 + (j)) |
#define | NEWTON_MAX_ITER 10 |
#define | NEWTON_POW_TOLERANCE 1e-12 |
Functions |
void | linQuadCutGen (const double *sol, OsiCuts &cs) |
double | f_ (double x) |
double | fp_ (double x) |
double | fpp_ (double x) |
double | powNewton (double xc, double yc, double(*f)(double), double(*fp)(double), double(*fpp)(double)) |
void | linQuadCutGen (const double *sol, int n, OsiCuts &cs, Tracer *tracer) |
void | linQuadCutGenOriginalBounds (const double *xlb, const double *xub, int n, OsiCuts &cs, Tracer *tracer) |
void | generateTangentDiagonalEntryCut (int n, int i, OsiCuts &cs, double xc, double yc, const double *sol, bool ifViolated) |
Define Documentation
#define indexQ |
( |
i, |
|
|
j, |
|
|
n |
|
) |
((n) + (i) * (2*(n)-1-(i)) / 2 + (j)) |
#define NEWTON_MAX_ITER 10 |
#define NEWTON_POW_TOLERANCE 1e-12 |
Function Documentation
void linQuadCutGen |
( |
const double * |
sol, |
|
|
OsiCuts & |
cs | |
|
) |
| | |
double powNewton |
( |
double |
xc, |
|
|
double |
yc, |
|
|
double(*)(double) |
f, |
|
|
double(*)(double) |
fp, |
|
|
double(*)(double) |
fpp | |
|
) |
| | |
void linQuadCutGen |
( |
const double * |
sol, |
|
|
int |
n, |
|
|
OsiCuts & |
cs, |
|
|
Tracer * |
tracer | |
|
) |
| | |
void linQuadCutGenOriginalBounds |
( |
const double * |
xlb, |
|
|
const double * |
xub, |
|
|
int |
n, |
|
|
OsiCuts & |
cs, |
|
|
Tracer * |
tracer | |
|
) |
| | |
void generateTangentDiagonalEntryCut |
( |
int |
n, |
|
|
int |
i, |
|
|
OsiCuts & |
cs, |
|
|
double |
xc, |
|
|
double |
yc, |
|
|
const double * |
sol, |
|
|
bool |
ifViolated | |
|
) |
| | |