Class to define ABS2 callback function for factorization.
More...
Class to define ABS2 callback function for factorization.
Definition at line 201 of file factorization.cpp.
◆ ABS2Callback()
Construct a new ABS2Callback object for factorization.
- Parameters
-
quad_model | The ABS2 quad_model. |
sol_holder_ptr | The pointer to the solution holder given to the ABS2Callback. |
Definition at line 211 of file factorization.cpp.
◆ callback()
void qbpp::factorization::ABS2Callback::callback |
( |
const std::string & |
event | ) |
|
|
inlineoverridevirtual |
The default callback function for ABS2 QUBO solver.
This function is called by ABS2 QUBO solver when an event occurs.
- Parameters
-
event | Event type specfied by ABS2 QUBO solver |
- Note
- This is a default callback function that displays the TTS and the energy when a new best solution is obtained. This function can be customized by overriding it.
Reimplemented from qbpp_abs2::Callback.
Definition at line 215 of file factorization.cpp.
◆ set() [1/3]
void abs2::Callback::set |
( |
const std::string & |
operation | ) |
|
|
inherited |
Set the operation to the ABS2 Callback.
- Parameters
-
operation | Operation string |
Set the operation to the ABS2 Callback.
◆ set() [2/3]
void abs2::Callback::set |
( |
const std::string & |
operation, |
|
|
const std::string & |
operand |
|
) |
| |
|
inherited |
Set the operation and operand to the ABS2 Callback.
- Parameters
-
operation | Operation string |
operand | Operand string |
Set the operation and operand to the ABS2 Callback.
◆ set() [3/3]
void abs2::Callback::set |
( |
const Sol & |
hint | ) |
|
|
inherited |
Provide a hint solution to the ABS2 solver.
- Parameters
-
Provide a hint solution will be used by the ABS2 solver to improve the solution.
◆ get()
const Sol& abs2::Callback::get |
( |
| ) |
const |
|
inherited |
Get the current solution.
◆ sol_holder_ptr_
const std::shared_ptr<SolHolder> qbpp::factorization::ABS2Callback::sol_holder_ptr_ |
|
private |
◆ quad_model
const QuadModel qbpp_abs2::Callback::quad_model |
|
protectedinherited |
◆ pimpl
std::shared_ptr<Impl> abs2::Callback::pimpl |
|
privateinherited |
The documentation for this class was generated from the following file: