Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
Solver of Boolean Optimization Problems based on Local Search. More...
#include <bop_solver.h>
Public Member Functions | |
BopSolver (const sat::LinearBooleanProblem &problem) | |
virtual | ~BopSolver () |
void | SetParameters (const BopParameters ¶meters) |
Parameters management. | |
BopSolveStatus | Solve () |
Returns the status of the optimization. | |
BopSolveStatus | Solve (const BopSolution &first_solution) |
BopSolveStatus | SolveWithTimeLimit (TimeLimit *time_limit) |
Runs the solver with an external time limit. | |
BopSolveStatus | SolveWithTimeLimit (const BopSolution &first_solution, TimeLimit *time_limit) |
const BopSolution & | best_solution () const |
bool | GetSolutionValue (VariableIndex var_id) const |
double | GetScaledBestBound () const |
double | GetScaledGap () const |
Solver of Boolean Optimization Problems based on Local Search.
Definition at line 50 of file bop_solver.h.
|
explicit |
Definition at line 75 of file bop_solver.cc.
|
virtual |
Definition at line 83 of file bop_solver.cc.
|
inline |
Definition at line 69 of file bop_solver.h.
double operations_research::bop::BopSolver::GetScaledBestBound | ( | ) | const |
Returns the scaled best bound. In case of minimization (resp. maximization), the best bound is defined as the lower bound (resp. upper bound).
Definition at line 180 of file bop_solver.cc.
double operations_research::bop::BopSolver::GetScaledGap | ( | ) | const |
Definition at line 185 of file bop_solver.cc.
|
inline |
Definition at line 70 of file bop_solver.h.
|
inline |
Parameters management.
Definition at line 56 of file bop_solver.h.
BopSolveStatus operations_research::bop::BopSolver::Solve | ( | ) |
Returns the status of the optimization.
Definition at line 85 of file bop_solver.cc.
BopSolveStatus operations_research::bop::BopSolver::Solve | ( | const BopSolution & | first_solution | ) |
Definition at line 149 of file bop_solver.cc.
BopSolveStatus operations_research::bop::BopSolver::SolveWithTimeLimit | ( | const BopSolution & | first_solution, |
TimeLimit * | time_limit ) |
Definition at line 155 of file bop_solver.cc.
BopSolveStatus operations_research::bop::BopSolver::SolveWithTimeLimit | ( | TimeLimit * | time_limit | ) |
Runs the solver with an external time limit.
Definition at line 91 of file bop_solver.cc.