API to call Gurobi Optimizer from QUBO++ Library.
More...
API to call Gurobi Optimizer from QUBO++ Library.
API to provide a way to call Gurobi Optimizer from QUBO++ Library.
◆ QuadModel() [1/2]
qbpp_grb::QuadModel::QuadModel |
( |
const qbpp::QuadModel & |
quad_model, |
|
|
bool |
verbose = false |
|
) |
| |
|
inline |
Constructor to create a model from QuadModel object.
- Parameters
-
quad_model | QUBO model of QUBO++ library |
verbose | true if Gurobi optimizer outputs are shown on the screen |
Definition at line 222 of file qbpp_grb.hpp.
◆ QuadModel() [2/2]
qbpp_grb::QuadModel::QuadModel |
( |
const QuadModel & |
grb_model | ) |
|
|
default |
Copy constructor to create a model from another model.
- Parameters
-
◆ set() [1/2]
void qbpp_grb::QuadModel::set |
( |
const std::string & |
key, |
|
|
const std::string & |
val |
|
) |
| |
|
inline |
Sets a parameter to the Gurobi environment.
- Parameters
-
key | parameter name |
val | parameter value |
Definition at line 70 of file qbpp_grb.hpp.
◆ set_time_limit()
void qbpp_grb::QuadModel::set_time_limit |
( |
uint32_t |
time_limit | ) |
|
|
inline |
Sets time limit to the Gurobi model.
- Parameters
-
time_limit | Time limit in seconds |
Definition at line 76 of file qbpp_grb.hpp.
◆ set() [2/2]
void qbpp_grb::QuadModel::set |
( |
Callback & |
cb | ) |
|
|
inline |
Set a callback function to the Gurobi model.
- Parameters
-
cb | Pointer to the class object that includes user-defined callback function |
The callback function in the class object *cb is called during the optimization process of Gurobi Optimizer.
Definition at line 258 of file qbpp_grb.hpp.
◆ Sol()
Creates a solution object from a model.
- Parameters
-
quad_model | QUBO model of QUBO++ library |
Definition at line 130 of file qbpp_grb.hpp.