44 new_sol->
cost = sol->cost;
57 sol->cost +=
WEIGHT(weight, col);
75 for(p = pcol->
first_row; p != 0; p = pnext) {
100 if (best1->cost <= best2->cost) {
solution_t * solution_choose_best(solution_t *best1, solution_t *best2)
void solution_accept(solution_t *sol, sm_matrix *A, int *weight, int col)
ABC_NAMESPACE_IMPL_START solution_t * solution_alloc()
solution_t * solution_dup(solution_t *sol)
sm_element * sm_row_insert(sm_row *prow, int col)
void solution_reject(solution_t *sol, sm_matrix *A, int *weight, int col)
sm_row * sm_row_dup(sm_row *prow)
void sm_delrow(sm_matrix *A, int i)
#define ABC_NAMESPACE_IMPL_END
#define sm_get_col(A, colnum)
#define WEIGHT(weight, col)
#define ABC_NAMESPACE_IMPL_START
void solution_free(solution_t *sol)
typedefABC_NAMESPACE_HEADER_START struct sm_element_struct sm_element
ABC_NAMESPACE_IMPL_START sm_row * sm_row_alloc()
void sm_row_free(sm_row *prow)
void solution_add(solution_t *sol, int *weight, int col)
void sm_delcol(sm_matrix *A, int i)