A very simple class to provide a common interface for solving MIPs with Cplex and Cbc.  
 More...
#include <BonSubMipSolver.hpp>
 | 
|   | SubMipSolver (BabSetupBase &b, const std::string &prefix) | 
|   | Constructor.  More...
  | 
|   | 
|   | SubMipSolver (const SubMipSolver ©) | 
|   | Copy Constructor.  More...
  | 
|   | 
|   | ~SubMipSolver () | 
|   | 
| void  | setLpSolver (OsiSolverInterface *lp) | 
|   | Assign lp solver.  More...
  | 
|   | 
| void  | setStrategy (CbcStrategyDefault *strategy) | 
|   | Assign a strategy.  More...
  | 
|   | 
| const double *  | getLastSolution () | 
|   | get the solution found in last local search (return NULL if no solution).  More...
  | 
|   | 
| double  | getLowerBound () | 
|   | 
| void  | solve (double cutoff, int loglevel, double maxTime) | 
|   | 
| void  | find_good_sol (double cutoff, int loglevel, double maxTime) | 
|   | update cutoff and perform a local search to a good solution.  More...
  | 
|   | 
| void  | optimize (double cutoff, int loglevel, double maxTime) | 
|   | update cutoff and optimize MIP.  More...
  | 
|   | 
| void  | optimize_with_lazy_constraints (double cutoff, int loglevel, double maxTime, const OsiCuts &cs) | 
|   | update cutoff, put OA constraints in cs as lazy constraints and optimize MIP.  More...
  | 
|   | 
| double  | lowBound () | 
|   | Returns lower bound.  More...
  | 
|   | 
| bool  | optimal () | 
|   | returns optimality status.  More...
  | 
|   | 
| int  | nodeCount () | 
|   | Returns number of nodes in last solve.  More...
  | 
|   | 
| int  | iterationCount () | 
|   | Returns number of simplex iterations in last solve.  More...
  | 
|   | 
| OsiSolverInterface *  | solver () | 
|   | 
A very simple class to provide a common interface for solving MIPs with Cplex and Cbc. 
Definition at line 29 of file BonSubMipSolver.hpp.
 
      
        
          | Bonmin::SubMipSolver::SubMipSolver  | 
          ( | 
          BabSetupBase &  | 
          b,  | 
        
        
           | 
           | 
          const std::string &  | 
          prefix  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | Bonmin::SubMipSolver::SubMipSolver  | 
          ( | 
          const SubMipSolver &  | 
          copy | ) | 
           | 
        
      
 
 
      
        
          | Bonmin::SubMipSolver::~SubMipSolver  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | void Bonmin::SubMipSolver::setLpSolver  | 
          ( | 
          OsiSolverInterface *  | 
          lp | ) | 
           | 
        
      
 
 
      
        
          | void Bonmin::SubMipSolver::setStrategy  | 
          ( | 
          CbcStrategyDefault *  | 
          strategy | ) | 
           | 
        
      
 
 
  
  
      
        
          | const double* Bonmin::SubMipSolver::getLastSolution  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | double Bonmin::SubMipSolver::getLowerBound  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void Bonmin::SubMipSolver::solve  | 
          ( | 
          double  | 
          cutoff,  | 
         
        
           | 
           | 
          int  | 
          loglevel,  | 
         
        
           | 
           | 
          double  | 
          maxTime  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void Bonmin::SubMipSolver::find_good_sol  | 
          ( | 
          double  | 
          cutoff,  | 
        
        
           | 
           | 
          int  | 
          loglevel,  | 
        
        
           | 
           | 
          double  | 
          maxTime  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
update cutoff and perform a local search to a good solution. 
Referenced by solve().
 
 
      
        
          | void Bonmin::SubMipSolver::optimize  | 
          ( | 
          double  | 
          cutoff,  | 
        
        
           | 
           | 
          int  | 
          loglevel,  | 
        
        
           | 
           | 
          double  | 
          maxTime  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
update cutoff and optimize MIP. 
Referenced by solve().
 
 
      
        
          | void Bonmin::SubMipSolver::optimize_with_lazy_constraints  | 
          ( | 
          double  | 
          cutoff,  | 
        
        
           | 
           | 
          int  | 
          loglevel,  | 
        
        
           | 
           | 
          double  | 
          maxTime,  | 
        
        
           | 
           | 
          const OsiCuts &  | 
          cs  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
update cutoff, put OA constraints in cs as lazy constraints and optimize MIP. 
 
 
  
  
      
        
          | double Bonmin::SubMipSolver::lowBound  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | bool Bonmin::SubMipSolver::optimal  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int Bonmin::SubMipSolver::nodeCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | int Bonmin::SubMipSolver::iterationCount  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | OsiSolverInterface* Bonmin::SubMipSolver::solver  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Register options for that Oa based cut generation method. 
 
 
  
  
      
        
          | OsiClpSolverInterface* Bonmin::SubMipSolver::clp_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | OsiCpxSolverInterface* Bonmin::SubMipSolver::cpx_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | double Bonmin::SubMipSolver::lowBound_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool Bonmin::SubMipSolver::optimal_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | double* Bonmin::SubMipSolver::integerSolution_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | CbcStrategyDefault* Bonmin::SubMipSolver::strategy_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | int Bonmin::SubMipSolver::nodeCount_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | int Bonmin::SubMipSolver::iterationCount_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | double Bonmin::SubMipSolver::gap_tol_ | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | bool Bonmin::SubMipSolver::ownClp_ | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following file: