Bonmin 1.8.9
Loading...
Searching...
No Matches
BonSolverHelp.hpp
Go to the documentation of this file.
1// (C) Copyright International Business Machines (IBM) 2006
2// All Rights Reserved.
3// This code is published under the Eclipse Public License.
4//
5// Authors :
6// P. Bonami, International Business Machines
7//
8// Date : 12/07/2006
9
10
11// Code separated from BonOaDecBase to try to clarify OAs
12// A number of utility to manipulate models used in OA and FP
13#ifndef BonSolverHelp_H
14#define BonSolverHelp_H
15
18class OsiObject;
19class OsiCuts;
20
21namespace Bonmin {
24 double integer_tolerance,
25 OsiObject ** objects = 0, int nObjects = -1);
26
31 double integer_tolerance,
32 OsiObject ** objects = 0, int nObjects = -1);
36 double integer_tolerance,
37 OsiObject ** objects = 0, int nObjects = -1);
40 OsiObject ** objects, int nObjects,
41 double integer_tolerance,
42 const double * colsol, const double * other);
43
46 const OsiCuts& cs, int numberCuts);
47
48}
49#endif
50
(C) Copyright International Business Machines Corporation 2007
bool integerFeasible(OsiSolverInterface &si, const OsiBranchingInformation &info, double integer_tolerance, OsiObject **objects=0, int nObjects=-1)
Check for integer feasibility of a solution return true if it is feasible.
void relaxIntegers(OsiSolverInterface &si, const OsiBranchingInformation &info, double integer_tolerance, OsiObject **objects=0, int nObjects=-1)
Relax integer variables in si.
bool isDifferentOnIntegers(OsiSolverInterface &si, OsiObject **objects, int nObjects, double integer_tolerance, const double *colsol, const double *other)
Check if two solutions are the same on integer variables.
void installCuts(OsiSolverInterface &si, const OsiCuts &cs, int numberCuts)
Install cuts in solver.
void fixIntegers(OsiSolverInterface &si, const OsiBranchingInformation &info, double integer_tolerance, OsiObject **objects=0, int nObjects=-1)
Fix integer variables in si to their values in colsol.