17 const std::string mpdDir );
53 CglClique(
bool setPacking =
false,
bool justOriginalRows =
false);
242 const int *current_indices,
243 const int *current_degrees,
244 const double *current_values);
247 int *current_indices,
int *current_degrees,
248 double *current_values);
263 const std::string mpdDir);
void CglCliqueUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglClique class.
int * cl_del_indices
An array of nodes discarded from the candidate list.
void selectFractionals(const OsiSolverInterface &si)
Scan through the variables and select those that are at a fractional level.
int rcl_candidate_length_threshold
In the row clique method the maximal length of the candidate list (those nodes that can extend the ro...
int enumerate_maximal_cliques(int &pos, bool *scl_label, OsiCuts &cs)
CglClique(bool setPacking=false, bool justOriginalRows=false)
Default constructor.
void setDoStarClique(bool yesno=true)
void deleteSetPackingSubMatrix()
void setStarCliqueCandidateLengthThreshold(int maxlen)
int scl_candidate_length_threshold
In the star clique method the maximal length of the candidate list (those nodes that are in a star,...
void setRowCliqueReport(bool yesno=true)
int cl_length
The length of cl_indices.
virtual std::string generateCpp(FILE *fp)
Create C++ lines to get to current state.
int maxNumber_
Maximum number of binaries for looking at all.
const int * cl_perm_indices
variables/arrays that are used across many methods
void setDoRowClique(bool yesno=true)
bool justOriginalRows_
True if just look at original rows.
int sp_numrows
pieces of the set packing part of the solverinterface
CglClique & operator=(const CglClique &rhs)
Assignment operator.
void selectRowCliques(const OsiSolverInterface &si, int numOriginalRows)
void considerRows(const int numRows, const int *rowInd)
int scl_choose_next_node(const int current_nodenum, const int *current_indices, const int *current_degrees, const double *current_values)
void setStarCliqueNextNodeMethod(scl_next_node_method method)
void deleteFractionalGraph()
virtual ~CglClique()
Destructor.
CglClique(const CglClique &rhs)
Copy constructor.
void recordClique(const int len, int *indices, OsiCuts &cs)
int cl_perm_length
The length of cl_perm_indices.
scl_next_node_method
possible choices for selecting the next node in the star clique search
void setMaxNumber(int value)
Maximum number of binaries for looking at all.
void setMinViolation(double minviol)
frac_graph fgraph
the intersection graph corresponding to the set packing problem
virtual CglCutGenerator * clone() const
Clone.
bool * node_node
the node-node incidence matrix of the intersection graph.
int greedy_maximal_clique(OsiCuts &cs)
void setStarCliqueReport(bool yesno=true)
bool do_row_clique
data for the star clique algorithm
int * cl_indices
List of indices that should be considered for extending the ones listed in cl_perm_indices.
double getMinViolation() const
void selectFractionalBinaries(const OsiSolverInterface &si)
Scan through the variables and select those that are binary and are at a fractional level.
void find_scl(OsiCuts &cs)
void find_rcl(OsiCuts &cs)
void createSetPackingSubMatrix(const OsiSolverInterface &si)
bool scl_report_result
whether to give a detailed statistics on the star clique method
void setRowCliqueCandidateLengthThreshold(int maxlen)
bool setPacking_
An indicator showing whether the whole matrix in the solverinterface is a set packing problem or not.
void createFractionalGraph()
friend void CglCliqueUnitTest(const OsiSolverInterface *siP, const std::string mpdDir)
A function that tests the methods in the CglClique class.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate cuts for the model data contained in si.
bool do_star_clique
whether to do the star clique algorithm or not.
void scl_delete_node(const int del_ind, int ¤t_nodenum, int *current_indices, int *current_degrees, double *current_values)
int cl_del_length
The length of cl_del_indices.
bool rcl_report_result
whether to give a detailed statistics on the row clique method
double petol
The primal tolerance in the solverinterface.
scl_next_node_method scl_next_node_rule
How the next node to be added to the star clique should be selected.
CglCutGenerator()
Default constructor.
virtual CglCutGenerator * clone() const
Clone.
CglFakeClique(OsiSolverInterface *solver=NULL, bool setPacking=false)
Default constructor.
virtual void generateCuts(const OsiSolverInterface &si, OsiCuts &cs, const CglTreeInfo info=CglTreeInfo())
Generate cuts for the model data contained in si.
CglFakeClique(const CglFakeClique &rhs)
Copy constructor.
CglProbing * probing_
Probing object.
CglFakeClique & operator=(const CglFakeClique &rhs)
Assignment operator.
OsiSolverInterface * fakeSolver_
fake solver to use
virtual ~CglFakeClique()
Destructor.
void assignSolver(OsiSolverInterface *fakeSolver)
Assign solver (generator takes over ownership)
Probing Cut Generator Class.
Information about where the cut generator is invoked from.
A node of the fractional graph.
int degree
degree of the node
int * nbrs
pointer into all_nbr
double val
the fractional value of the variable corresponding to this node
double * edgecosts
1-x_i-x_j, needed for odd holes, in the same order as the adj list, pointer into all_edgecost
A graph corresponding to a fractional solution of an LP.
double density
density= edgenum/(nodenum choose 2)
int * all_nbr
The array of all the neighbors.
fnode * nodes
The array of the nodes in the graph.
double * all_edgecost
The array of the costs of the edges going to the neighbors.