A class for storing both the qbpp::QuadModel and abs2::Model.
More...
#include <qbpp_abs2.hpp>
|
| QuadModel ()=delete |
| Default constructor is deleted to avoid creating an empty model. More...
|
|
A class for storing both the qbpp::QuadModel and abs2::Model.
This class is derived from qbpp::QuadModel and containing an abs2::Model object.
Definition at line 76 of file qbpp_abs2.hpp.
◆ QuadModel() [1/2]
qbpp_abs2::QuadModel::QuadModel |
( |
| ) |
|
|
privatedelete |
Default constructor is deleted to avoid creating an empty model.
◆ QuadModel() [2/2]
qbpp_abs2::QuadModel::QuadModel |
( |
const QuadModel & |
quad_model | ) |
|
|
inline |
◆ get_abs2_model()
const abs2::Model& qbpp_abs2::QuadModel::get_abs2_model |
( |
| ) |
const |
|
inline |
Get the ABS2 model.
- Returns
- ABS2 model
Definition at line 95 of file qbpp_abs2.hpp.
◆ get_linear() [1/2]
const std::vector<coeff_t>& qbpp::QuadModel::get_linear |
( |
| ) |
const |
|
inlineinherited |
◆ get_linear() [2/2]
coeff_t qbpp::QuadModel::get_linear |
( |
vindex_t |
index | ) |
const |
|
inlineinherited |
◆ get_degree() [1/2]
const std::vector<vindex_t>& qbpp::QuadModel::get_degree |
( |
| ) |
const |
|
inlineinherited |
◆ get_degree() [2/2]
vindex_t qbpp::QuadModel::get_degree |
( |
vindex_t |
index | ) |
const |
|
inlineinherited |
◆ get_quadratic() [1/2]
const std::vector<std::vector<std::pair<vindex_t, coeff_t> > >& qbpp::QuadModel::get_quadratic |
( |
| ) |
const |
|
inlineinherited |
◆ get_quadratic() [2/2]
std::pair<vindex_t, coeff_t> qbpp::QuadModel::get_quadratic |
( |
vindex_t |
i, |
|
|
vindex_t |
j |
|
) |
| const |
|
inlineinherited |
◆ term_count() [1/2]
size_t qbpp::QuadModel::term_count |
( |
vindex_t |
deg | ) |
const |
|
inlineinherited |
◆ term_count() [2/2]
size_t qbpp::QuadModel::term_count |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ get_min_coeff()
coeff_t qbpp::QuadModel::get_min_coeff |
( |
| ) |
const |
|
inlineinherited |
◆ get_max_coeff()
coeff_t qbpp::QuadModel::get_max_coeff |
( |
| ) |
const |
|
inlineinherited |
◆ check_expr() [1/2]
static const Expr& qbpp::Model::check_expr |
( |
const Expr & |
expr | ) |
|
|
inlinestaticprotectedinherited |
◆ check_expr() [2/2]
static Expr qbpp::Model::check_expr |
( |
Expr && |
expr | ) |
|
|
inlinestaticprotectedinherited |
◆ var_count()
vindex_t qbpp::Model::var_count |
( |
| ) |
const |
|
inlineinherited |
◆ get_var()
Var qbpp::Model::get_var |
( |
vindex_t |
index | ) |
const |
|
inlineinherited |
◆ get_index()
vindex_t qbpp::Model::get_index |
( |
Var |
var | ) |
const |
|
inlineinherited |
◆ has()
bool qbpp::Model::has |
( |
Var |
var | ) |
const |
|
inlineinherited |
◆ get_expr()
const Expr& qbpp::Model::get_expr |
( |
| ) |
const |
|
inlineinherited |
◆ operator const Expr &()
qbpp::Model::operator const Expr & |
( |
| ) |
const |
|
inlineinherited |
◆ get_constant()
energy_t qbpp::Model::get_constant |
( |
| ) |
const |
|
inlineinherited |
◆ get_terms()
const Terms& qbpp::Model::get_terms |
( |
| ) |
const |
|
inlineinherited |
◆ get_index_var()
std::vector<Var> qbpp::Model::get_index_var |
( |
| ) |
const |
|
inlineinherited |
◆ abs2model_ptr
std::shared_ptr<abs2::Model> qbpp_abs2::QuadModel::abs2model_ptr |
|
private |
ABS2 model associated with the QUBO model.
Definition at line 78 of file qbpp_abs2.hpp.
◆ pimpl_
const std::shared_ptr<const Impl> qbpp::QuadModel::pimpl_ |
|
privateinherited |
◆ linear_
const std::vector<coeff_t>& qbpp::QuadModel::linear_ |
|
privateinherited |
◆ degree_
const std::vector<vindex_t>& qbpp::QuadModel::degree_ |
|
privateinherited |
◆ quadratic_
const std::vector<std::vector<std::pair<vindex_t, coeff_t> > >& qbpp::QuadModel::quadratic_ |
|
privateinherited |
◆ expr_ptr_
const std::shared_ptr<const Expr> qbpp::Model::expr_ptr_ |
|
protectedinherited |
◆ index_var_ptr_
const std::shared_ptr<const impl::IndexVarMapper> qbpp::Model::index_var_ptr_ |
|
protectedinherited |
The documentation for this class was generated from the following file: