Class to store the QUBO expression with variables for the Graph Coloring Problem.
More...
#include <qbpp_graph_color.hpp>
Class to store the QUBO expression with variables for the Graph Coloring Problem.
This class includes is a derived class of qbpp::QuadModel with the variables.
Definition at line 161 of file qbpp_graph_color.hpp.
◆ GraphColorQuadModel() [1/2]
◆ GraphColorQuadModel() [2/2]
qbpp::graph_color::GraphColorQuadModel::GraphColorQuadModel |
( |
const GraphColorMap & |
map, |
|
|
uint32_t |
color_count |
|
) |
| |
|
inline |
Generate a QUBO expression for the Graph Coloring Problem.
- Parameters
-
map | Map of nodes with their coordinates |
color_count | Number of colors to use for the coloring |
Definition at line 182 of file qbpp_graph_color.hpp.
◆ helper_func()
◆ node_count()
uint32_t qbpp::graph_color::GraphColorQuadModel::node_count |
( |
| ) |
const |
|
inline |
Returns the number of nodes in the TSP.
- Returns
- Number of nodes in the TSP.
Definition at line 187 of file qbpp_graph_color.hpp.
◆ get_x()
Returns the reference of the variables for the Graph Coloring Problem.
Definition at line 191 of file qbpp_graph_color.hpp.
◆ get_linear() [1/2]
const std::vector<coeff_t>& qbpp::QuadModel::get_linear |
( |
| ) |
const |
|
inlineinherited |
◆ get_linear() [2/2]
◆ get_degree() [1/2]
const std::vector<vindex_t>& qbpp::QuadModel::get_degree |
( |
| ) |
const |
|
inlineinherited |
◆ get_degree() [2/2]
◆ 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]
◆ 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()
◆ get_index()
◆ 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 |
◆ x_
◆ 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_
The documentation for this class was generated from the following file: