QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
|
Class to store a solution of a QUBO model using Gurobi Optimizer. More...
#include <qbpp_grb.hpp>
Public Member Functions | |
Sol (const qbpp::QuadModel &quad_model) | |
Creates a solution object from a model. More... | |
qbpp::energy_t | get_bound () const |
Gets the energy bound of the solution. More... | |
qbpp::energy_t | set_bound (qbpp::energy_t eval) |
Sets the energy bound of the solution. More... | |
bool | operator== (const Sol &sol) const |
bool | operator< (const Sol &sol) const |
var_val_t | get (vindex_t index) const |
var_val_t | get (Var var) const |
energy_t | get (const Expr &expr) const |
template<typename T > | |
auto | get (const Vector< T > &vec) const |
bool | has (Var var) const |
void | clear () |
void | set (vindex_t index, bool value) |
void | set (Var var, bool value) |
Sol | set (const Sol &sol) |
Sol | set (const MapList &map_list) |
virtual void | flip (vindex_t index) |
void | flip (Var var) |
vindex_t | popcount () const |
energy_t | get_energy () const |
void | set_energy (energy_t energy) |
const impl::BitVector & | get_bit_vector () const |
vindex_t | var_count () const |
energy_t | get_constant () const |
Var | get_var (vindex_t index) const |
vindex_t | get_index (Var var) const |
operator MapList () const | |
Protected Member Functions | |
energy_t | comp_energy () const |
MapList | get_map_list () const |
Protected Attributes | |
const QuadModel | quad_model_ |
impl::BitVector | bit_vector_ |
std::optional< energy_t > | energy_ = std::nullopt |
Private Attributes | |
qbpp::energy_t | bound |
Energy Bound obtained by of the Grobi Optimizer. More... | |
Class to store a solution of a QUBO model using Gurobi Optimizer.
This class is used to store a solution of a QUBO model obtained by Gurobi Optimizer through QUBO++ library.
Definition at line 120 of file qbpp_grb.hpp.
|
inline |
Gets the energy bound of the solution.
Definition at line 136 of file qbpp_grb.hpp.
|
inline |
Sets the energy bound of the solution.
Definition at line 140 of file qbpp_grb.hpp.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Reimplemented in qbpp::exhaustive_solver::SolDelta, qbpp::easy_solver::TabuSolDelta, and qbpp::easy_solver::SolDelta.
Definition at line 1533 of file qbpp.hpp.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
private |
Energy Bound obtained by of the Grobi Optimizer.
Definition at line 122 of file qbpp_grb.hpp.
|
mutableprotectedinherited |