QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
|
A class for setting parameters for the ABS2 QUBO solver. More...
#include <qbpp_abs2.hpp>
Public Member Functions | |
Param ()=default | |
Construct a new Param object from a QuadModel object. More... | |
void | set_target_energy (qbpp::energy_t target_energy) |
Set the target energy for ABS2 QUBO solver. More... | |
std::optional< qbpp::energy_t > | get_target_energy () const |
Get the target energy for ABS2 QUBO solver. More... | |
void | set_time_limit (uint32_t time_limit) |
Set the time limit for ABS2 QUBO solver. More... | |
void | set_arithmetic_bits (uint32_t bits) |
Set the arithmetic bits. More... | |
void | set (const std::string &key, const std::string &val) |
Set "val" to "key". More... | |
void | set (Callback &callback) |
Set Callback function to ABS2. More... | |
std::string | get (const std::string &key) const |
Get the value of "key". More... | |
void | print (const std::string &option="", std::ostream &output_stream=std::cout) const |
Output parameters in stream "output_stream". More... | |
void | print (std::ostream &output_stream, const std::string &option="") const |
Output parameters in stream "output_stream". More... | |
Private Attributes | |
std::optional< qbpp::energy_t > | target_energy |
The target energy given by C++ library. More... | |
std::unique_ptr< Impl > | pimpl |
A class for setting parameters for the ABS2 QUBO solver.
This class is derived from abs2::Param.
Definition at line 104 of file qbpp_abs2.hpp.
|
inherited |
Set "val" to "key".
key | Parameter key |
val | Parameter value |
|
inherited |
|
inherited |
Get the value of "key".
key | Parameter key |
|
inherited |
Output parameters in stream "output_stream".
option | Format option |
output_stream | Output stream |
|
inherited |
Output parameters in stream "output_stream".
output_stream | Output stream |
option | Format option |
|
private |
The target energy given by C++ library.
Definition at line 108 of file qbpp_abs2.hpp.