QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
Functions
QUBO++ API for Gurobi Optimizer

API to call Gurobi Optimizer from QUBO++ Library. More...

Functions

 qbpp_grb::QuadModel::QuadModel (const qbpp::QuadModel &quad_model, bool verbose=false)
 Constructor to create a model from QuadModel object. More...
 
 qbpp_grb::QuadModel::QuadModel (const QuadModel &grb_model)=default
 Copy constructor to create a model from another model. More...
 
void qbpp_grb::QuadModel::set (const std::string &key, const std::string &val)
 Sets a parameter to the Gurobi environment. More...
 
void qbpp_grb::QuadModel::set_time_limit (uint32_t time_limit)
 Sets time limit to the Gurobi model. More...
 
void qbpp_grb::QuadModel::set (Callback &cb)
 Set a callback function to the Gurobi model. More...
 
 qbpp_grb::Sol::Sol (const qbpp::QuadModel &quad_model)
 Creates a solution object from a model. More...
 

Detailed Description

API to call Gurobi Optimizer from QUBO++ Library.

API to provide a way to call Gurobi Optimizer from QUBO++ Library.

Function Documentation

◆ 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_modelQUBO model of QUBO++ library
verbosetrue if Gurobi optimizer outputs are shown on the screen

Definition at line 222 of file qbpp_grb.hpp.

Here is the call graph for this function:

◆ QuadModel() [2/2]

qbpp_grb::QuadModel::QuadModel ( const QuadModel grb_model)
default

Copy constructor to create a model from another model.

Parameters
grb_modelGurobi model

◆ 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
keyparameter name
valparameter value

Definition at line 70 of file qbpp_grb.hpp.

Here is the caller graph for this function:

◆ set_time_limit()

void qbpp_grb::QuadModel::set_time_limit ( uint32_t  time_limit)
inline

Sets time limit to the Gurobi model.

Parameters
time_limitTime limit in seconds

Definition at line 76 of file qbpp_grb.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set() [2/2]

void qbpp_grb::QuadModel::set ( Callback cb)
inline

Set a callback function to the Gurobi model.

Parameters
cbPointer 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()

qbpp_grb::Sol::Sol ( const qbpp::QuadModel quad_model)
inline

Creates a solution object from a model.

Parameters
quad_modelQUBO model of QUBO++ library

Definition at line 130 of file qbpp_grb.hpp.