Refactoring

This commit is contained in:
2015-03-18 07:15:35 -04:00
parent ad8e20c62b
commit 67ca00a0e0
13 changed files with 485 additions and 363 deletions

View File

@@ -3,15 +3,23 @@
#include "lp.h"
int bnc_solve_node(
struct LP *lp, double *best_val, int ncount, int ecount, int *elist,
int depth);
struct BNC
{
struct LP *lp;
double best_val;
int *problem_data;
int bnc_branch_node(
struct LP *lp, double *x, int ncount, int ecount, int depth,
double *current_val, int *elist);
int (*problem_init_lp)(struct LP *, void *);
int bnc_init_lp(
struct LP *lp, int node_count, int edge_count, int *edge_list, int *edge_weights);
int (*problem_add_cutting_planes)(struct LP *, void *);
};
int BNC_init(struct BNC *bnc);
int BNC_solve(struct BNC *bnc);
int BNC_init_lp(struct BNC *bnc);
void BNC_free(struct BNC *bnc);
#endif //_PROJECT_BRANCH_AND_CUT_H_