Go to the source code of this file.
◆ solution_accept()
Definition at line 62 of file solution.c.
67{
70
72
73
78 }
79}
typedefABC_NAMESPACE_HEADER_START struct sm_element_struct sm_element
struct sm_col_struct sm_col
#define sm_get_col(A, colnum)
◆ solution_add()
| void solution_add |
( |
solution_t * | sol, |
|
|
int * | weight, |
|
|
int | col ) |
Definition at line 51 of file solution.c.
55{
57 sol->
cost += WEIGHT(weight, col);
58}
sm_element * sm_row_insert()
◆ solution_alloc()
Definition at line 17 of file solution.c.
18{
20
24 return sol;
25}
struct solution_struct solution_t
ABC_NAMESPACE_IMPL_START sm_row * sm_row_alloc()
◆ solution_choose_best()
Definition at line 95 of file solution.c.
97{
102 return best1;
103 } else {
105 return best2;
106 }
107 } else {
108 return best1;
109 }
110 } else {
112 return best2;
113 } else {
115 }
116 }
117}
◆ solution_dup()
Definition at line 38 of file solution.c.
40{
42
46 return new_sol;
47}
◆ solution_free()
◆ solution_reject()