QUBO++ Library with QUBO Solver APIs
Author: Koji Nakano, License: Non-commercial research and evaluation purposes without any guarantees.
Classes | Namespaces | Macros
qbpp_grb.hpp File Reference

QUBO++ interface to call Gurobi Optimizer. More...

#include <cmath>
#include "abs2.hpp"
#include "gurobi_c++.h"
#include "qbpp.hpp"
Include dependency graph for qbpp_grb.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  qbpp_grb::QuadModel
 Class to store a QUBO model using Gurobi Optimizer through QUBO++ library. More...
 
class  qbpp_grb::Sol
 Class to store a solution of a QUBO model using Gurobi Optimizer. More...
 
class  qbpp_grb::Callback
 Class to manage a callback function called by Gurobi Optimizer. More...
 

Namespaces

 qbpp_grb
 Namespace to use Gurobi optimizer from QUBO++ library.
 

Macros

#define GRB_SAFE_CALL(func)
 

Detailed Description

QUBO++ interface to call Gurobi Optimizer.

This file provides interfaces to call Gurobi Optimizer from QUBO++

Author
Koji Nakano
Version
2026-01-17

Definition in file qbpp_grb.hpp.

Macro Definition Documentation

◆ GRB_SAFE_CALL

#define GRB_SAFE_CALL (   func)
Value:
try { \
func; \
} catch (GRBException e) { \
std::cerr << e.getErrorCode() << ": " << e.getMessage() << std::endl; \
exit(1); \
}

Definition at line 16 of file qbpp_grb.hpp.