A class for calling the ABS2 QUBO solver.
More...
#include <qbpp_abs2.hpp>
|
| Sol | operator() (const QuadModel &quad_model, Param ¶m) const |
| | Executes ABS2 for "quad_model" with "param" and returns "sol". More...
|
| |
| Sol | operator() (const QuadModel &quad_model, Param ¶m, const Sol &start) const |
| | Executes ABS2 for model with "param" and "start", and returns "sol". More...
|
| |
| std::string | get (const std::string &key) |
| | Retrieves the solver attribute value associated with the given key. More...
|
| |
| void | print (const std::string &option="", std::ostream &output_stream=std::cout) const |
| | Outputs the solver attribute value in the specified format. More...
|
| |
| void | print (std::ostream &output_stream, const std::string &option="") const |
| | Outputs the solver attribute value in the specified format. More...
|
| |
| Sol | operator() (const Model &model, const Param ¶m) const |
| | Executes the ABS2 solver for the given model and parameters, returning the solution. More...
|
| |
| Sol | operator() (const Model &model, const Param ¶m, const Sol &start) const |
| | Executes the ABS2 solver for the given model, parameters, and initial solution, returning the solution. More...
|
| |
A class for calling the ABS2 QUBO solver.
This class is derived from derived from abs2::Solver.
- Note
- This class is inherited from abs2::Solver.
Definition at line 53 of file qbpp_abs2.hpp.
◆ get()
| std::string abs2::Solver::get |
( |
const std::string & |
key | ) |
|
|
inherited |
Retrieves the solver attribute value associated with the given key.
- Parameters
-
- Returns
- The attribute value as a string.
◆ print() [1/2]
| void abs2::Solver::print |
( |
const std::string & |
option = "", |
|
|
std::ostream & |
output_stream = std::cout |
|
) |
| const |
|
inherited |
Outputs the solver attribute value in the specified format.
- Parameters
-
| option | The format option. |
| output_stream | The output stream to write to. Defaults to std::cout. |
◆ print() [2/2]
| void abs2::Solver::print |
( |
std::ostream & |
output_stream, |
|
|
const std::string & |
option = "" |
|
) |
| const |
|
inherited |
Outputs the solver attribute value in the specified format.
- Parameters
-
| output_stream | The output stream to write to. |
| option | The format option. Defaults to an empty string. |
◆ operator()() [1/2]
| Sol abs2::Solver::operator() |
( |
const Model & |
model, |
|
|
const Param & |
param |
|
) |
| const |
|
inherited |
Executes the ABS2 solver for the given model and parameters, returning the solution.
- Parameters
-
| model | The QUBO model. |
| param | The ABS2 solver parameters. |
- Returns
- The solution as a Sol object.
◆ operator()() [2/2]
| Sol abs2::Solver::operator() |
( |
const Model & |
model, |
|
|
const Param & |
param, |
|
|
const Sol & |
start |
|
) |
| const |
|
inherited |
Executes the ABS2 solver for the given model, parameters, and initial solution, returning the solution.
- Parameters
-
| model | The QUBO model. |
| param | The ABS2 solver parameters. |
| start | The initial solution. |
- Returns
- The solution as a Sol object.
◆ pimpl
| Impl* abs2::Solver::pimpl |
|
privateinherited |
The documentation for this class was generated from the following file: