14 #include "CoinPragma.hpp"
138 void set_usergdxname(
const char* usergdxname,
const char* usergdxprefix = NULL);
139 void set_usergdxnameinc(
const char* usergdxnameinc,
const char* usergdxprefix = NULL);
140 void set_usergdxin(
const char* usergdxin_,
const char* usergdxprefix = NULL);
196 void setNodeSolution(
const double* x_,
double objval_,
const double* lb_,
const double* ub_);
const char * get_userheurcall()
bool doCuts()
Returns true if generateCuts should be called, otherwise false.
void set_userincbicall(const char *userincbicall)
void set_usercutfirst(int usercutfirst)
Structure to store a Cut generated by a Gams BCH cut generator.
void set_userjobid(const char *userjobid)
Sets the users job id.
void set_usercutnewint(bool usercutnewint)
void set_usercutmult(int usercutmult)
int getNumSols() const
Accumulated number of solutions.
void set_userheurfirst(int userheurfirst)
int getNumCalls() const
Accumulated number of BCH calls.
const char * get_usercutcall()
bool setIncumbentSolution(const double *x_, double objval_)
Informs BCH about the current incumbent.
void set_usergdxname(const char *usergdxname, const char *usergdxprefix=NULL)
bool get_usercutnewint() const
int reportIncumbent()
Writes the incumbent to the file specified in gdxnameinc and calls the incumbent reporting callback...
void set_userheurfreq(int userheurfreq)
double * coeff
Nonzero coefficients.
bool runHeuristic(double *x, double &objvalue)
Calls the GAMS heuristic.
virtual int getColCount() const =0
The number of columns in the possibly transformed problem space.
void set_userheurobjfirst(int userheurobjfirst)
void set_userincbcall(const char *userincbcall)
int getNumCuts() const
Accumulated number of created cuts.
void set_userheurmult(int userheurmult)
bool get_userheurnewint() const
int * indices
Indices of nonzero coefficients.
void setupParameters(GamsOptions &opt)
Reads the BCH parameters from a GamsOptions object.
void set_userheurinterval(int userheurinterval)
Class to provide access to a GAMS dictionary.
void set_usercutcall(const char *usercutcall)
int getNumCols() const
The number of columns expected by GamsBCH.
Forwards requests for output, point transformations, dictionary files, and other things to a GAMS I/O...
void set_userheurnewint(bool userheurnewint)
int nnz
Number of nonzero coefficients.
void set_usercutfreq(int usercutfreq)
void set_usergdxin(const char *usergdxin_, const char *usergdxprefix=NULL)
GamsBCH(GamsHandler &gams_, GamsDictionary &gamsdict, GamsOptions &opt)
Constructor that also reads the BCH parameters from a GamsOptions object.
double ub
Upper bound of cut.
void set_usergdxnameinc(const char *usergdxnameinc, const char *usergdxprefix=NULL)
void set_userkeep(bool userkeep_)
void setNodeSolution(const double *x_, double objval_, const double *lb_, const double *ub_)
Sets the solution and bounds of the current node.
void setLogLevel(int loglevel_)
Level of output created by GamsBCH handler.
void setGlobalBounds(const double *lb_, const double *ub_)
You should call this method after the constructor.
Class to handle the access to a GAMS options file.
void set_usercutinterval(int usercutinterval)
bool doHeuristic(double bestbnd, double curobj)
Returns true if runHeuristic should be called, otherwise false.
void set_userheurcall(const char *userheurcall)
double lb
Lower bound of cut.
bool generateCuts(std::vector< Cut > &cuts)
Calls the GAMS cut generator.
Interface to GAMS BCH facility.
void printParameters() const