File matchmtx.c changed (mode: 100644) (index f5c8f3b..045bb34) |
... |
... |
main (int argc, char **argv) |
44 |
44 |
double *price, *profit = NULL; |
double *price, *profit = NULL; |
45 |
45 |
|
|
46 |
46 |
int errflg, i, j; |
int errflg, i, j; |
47 |
|
double p, d; |
|
|
47 |
|
double p, d, td; |
48 |
48 |
volatile double auction_primal = 0.0, mc64_primal = 0.0; |
volatile double auction_primal = 0.0, mc64_primal = 0.0; |
49 |
49 |
/* gcc-3.4 compiler bug? ap becomes zero after calling mc64 |
/* gcc-3.4 compiler bug? ap becomes zero after calling mc64 |
50 |
50 |
with optimization */ |
with optimization */ |
|
... |
... |
main (int argc, char **argv) |
131 |
131 |
CALLGRIND_STOP_INSTRUMENTATION(); |
CALLGRIND_STOP_INSTRUMENTATION(); |
132 |
132 |
|
|
133 |
133 |
auction_eval_primal_mdual (A, expint, match, price, &auction_primal, &d); |
auction_eval_primal_mdual (A, expint, match, price, &auction_primal, &d); |
|
134 |
|
td = timer_duration(timer); |
134 |
135 |
printf ("Primal: %20g\nDual: %20g\nTime: %20g\nmu_min: %20g\n", |
printf ("Primal: %20g\nDual: %20g\nTime: %20g\nmu_min: %20g\n", |
135 |
|
auction_primal, d, timer_duration(timer), mu_min); |
|
|
136 |
|
auction_primal, d, td, mu_min); |
136 |
137 |
|
|
137 |
138 |
{ |
{ |
138 |
139 |
int i, j; |
int i, j; |
|
... |
... |
main (int argc, char **argv) |
164 |
165 |
fwrite (&bo_tag, sizeof(int), 1, fout); |
fwrite (&bo_tag, sizeof(int), 1, fout); |
165 |
166 |
fwrite (&mu_min, sizeof(double), 1, fout); |
fwrite (&mu_min, sizeof(double), 1, fout); |
166 |
167 |
fwrite (&relgap, sizeof(int), 1, fout); |
fwrite (&relgap, sizeof(int), 1, fout); |
|
168 |
|
|
|
169 |
|
fwrite (&auction_primal, sizeof(double), 1, fout); |
|
170 |
|
fwrite (&d, sizeof(double), 1, fout); |
|
171 |
|
fwrite (&td, sizeof(double), 1, fout); |
|
172 |
|
|
167 |
173 |
fwrite (match, sizeof(int), A.nc, fout); |
fwrite (match, sizeof(int), A.nc, fout); |
168 |
174 |
|
|
169 |
175 |
profit = malloc (A.nr * sizeof(double)); |
profit = malloc (A.nr * sizeof(double)); |