QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
Public Member Functions | Public Attributes | Protected Attributes | List of all members
qbpp::exhaustive_solver::ExhaustiveSolver Class Reference

#include <qbpp_exhaustive_solver.hpp>

Collaboration diagram for qbpp::exhaustive_solver::ExhaustiveSolver:
Collaboration graph
[legend]

Public Member Functions

 ExhaustiveSolver (const QuadModel &quad_model)
 
virtual ~ExhaustiveSolver ()=default
 
virtual void callback (const SolHolder &sol_holder) const
 
vindex_t var_count () const
 
qbpp::Sol search ()
 
Sol search_optimal_solutions ()
 
Sol search_all_solutions ()
 
void enable_default_callback (bool enable=true)
 
const QuadModelget_quad_model () const
 

Public Attributes

std::mutex callback_mutex_
 

Protected Attributes

const QuadModel quad_model_
 
bool enable_default_callback_ = false
 

Detailed Description

Definition at line 100 of file qbpp_exhaustive_solver.hpp.

Constructor & Destructor Documentation

◆ ExhaustiveSolver()

qbpp::exhaustive_solver::ExhaustiveSolver::ExhaustiveSolver ( const QuadModel quad_model)
inline

Definition at line 108 of file qbpp_exhaustive_solver.hpp.

◆ ~ExhaustiveSolver()

virtual qbpp::exhaustive_solver::ExhaustiveSolver::~ExhaustiveSolver ( )
virtualdefault

Member Function Documentation

◆ callback()

virtual void qbpp::exhaustive_solver::ExhaustiveSolver::callback ( const SolHolder sol_holder) const
inlinevirtual

Definition at line 114 of file qbpp_exhaustive_solver.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ var_count()

vindex_t qbpp::exhaustive_solver::ExhaustiveSolver::var_count ( ) const
inline

Definition at line 128 of file qbpp_exhaustive_solver.hpp.

Here is the call graph for this function:

◆ search()

qbpp::Sol qbpp::exhaustive_solver::ExhaustiveSolver::search ( )
inline

Definition at line 277 of file qbpp_exhaustive_solver.hpp.

Here is the call graph for this function:

◆ search_optimal_solutions()

Sol qbpp::exhaustive_solver::ExhaustiveSolver::search_optimal_solutions ( )
inline

Definition at line 283 of file qbpp_exhaustive_solver.hpp.

Here is the call graph for this function:

◆ search_all_solutions()

Sol qbpp::exhaustive_solver::ExhaustiveSolver::search_all_solutions ( )
inline

Definition at line 292 of file qbpp_exhaustive_solver.hpp.

Here is the call graph for this function:

◆ enable_default_callback()

void qbpp::exhaustive_solver::ExhaustiveSolver::enable_default_callback ( bool  enable = true)
inline

Definition at line 136 of file qbpp_exhaustive_solver.hpp.

◆ get_quad_model()

const QuadModel& qbpp::exhaustive_solver::ExhaustiveSolver::get_quad_model ( ) const
inline

Definition at line 141 of file qbpp_exhaustive_solver.hpp.

Member Data Documentation

◆ quad_model_

const QuadModel qbpp::exhaustive_solver::ExhaustiveSolver::quad_model_
protected

Definition at line 102 of file qbpp_exhaustive_solver.hpp.

◆ enable_default_callback_

bool qbpp::exhaustive_solver::ExhaustiveSolver::enable_default_callback_ = false
protected

Definition at line 104 of file qbpp_exhaustive_solver.hpp.

◆ callback_mutex_

std::mutex qbpp::exhaustive_solver::ExhaustiveSolver::callback_mutex_
mutable

Definition at line 110 of file qbpp_exhaustive_solver.hpp.


The documentation for this class was generated from the following file: