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

#include <qbpp_easy_solver.hpp>

Collaboration diagram for qbpp::easy_solver::RandomMinSet:
Collaboration graph
[legend]

Public Member Functions

 RandomMinSet (vindex_t size)
 
vindex_t var_count () const
 
void insert (vindex_t index, energy_t delta)
 
void erase (vindex_t index, energy_t delta)
 
bool has (vindex_t index) const
 
vindex_t select_at_random () const
 
vindex_t get_first () const
 
void print (const std::string &prefix) const
 

Private Attributes

MinSet min_set_
 
RandomSet random_set_
 

Detailed Description

Definition at line 143 of file qbpp_easy_solver.hpp.

Constructor & Destructor Documentation

◆ RandomMinSet()

qbpp::easy_solver::RandomMinSet::RandomMinSet ( vindex_t  size)
inline

Definition at line 148 of file qbpp_easy_solver.hpp.

Member Function Documentation

◆ var_count()

vindex_t qbpp::easy_solver::RandomMinSet::var_count ( ) const
inline

Definition at line 150 of file qbpp_easy_solver.hpp.

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

◆ insert()

void qbpp::easy_solver::RandomMinSet::insert ( vindex_t  index,
energy_t  delta 
)
inline

Definition at line 154 of file qbpp_easy_solver.hpp.

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

◆ erase()

void qbpp::easy_solver::RandomMinSet::erase ( vindex_t  index,
energy_t  delta 
)
inline

Definition at line 159 of file qbpp_easy_solver.hpp.

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

◆ has()

bool qbpp::easy_solver::RandomMinSet::has ( vindex_t  index) const
inline

Definition at line 164 of file qbpp_easy_solver.hpp.

Here is the call graph for this function:

◆ select_at_random()

vindex_t qbpp::easy_solver::RandomMinSet::select_at_random ( ) const
inline

Definition at line 166 of file qbpp_easy_solver.hpp.

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

◆ get_first()

vindex_t qbpp::easy_solver::RandomMinSet::get_first ( ) const
inline

Definition at line 168 of file qbpp_easy_solver.hpp.

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

◆ print()

void qbpp::easy_solver::RandomMinSet::print ( const std::string &  prefix) const
inline

Definition at line 170 of file qbpp_easy_solver.hpp.

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

Member Data Documentation

◆ min_set_

MinSet qbpp::easy_solver::RandomMinSet::min_set_
private

Definition at line 144 of file qbpp_easy_solver.hpp.

◆ random_set_

RandomSet qbpp::easy_solver::RandomMinSet::random_set_
private

Definition at line 145 of file qbpp_easy_solver.hpp.


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