}
}
-int main(int argc, char **argv) {
- int opt;
- while ((opt = getopt(argc,argv,"j:")) >= 0) {
- switch (opt) {
- case 'j': ncpus = atoi(optarg); break;
- case '+': assert(!"bad option");
- default: abort();
- }
- }
- argc -= optind-1;
- argv += optind-1;
- assert(argc==3);
- n = atoi(argv[1]);
- m = atoi(argv[2]);
-
- prep();
- iterate();
+static void report(void) {
fprintf(stderr, "\n");
if (best_prob) {
double min = glp_get_obj_val(best_prob);
}
}
if (ferror(stdout) || fclose(stdout)) { perror("stdout"); exit(-1); }
+}
+
+int main(int argc, char **argv) {
+ int opt;
+ while ((opt = getopt(argc,argv,"j:")) >= 0) {
+ switch (opt) {
+ case 'j': ncpus = atoi(optarg); break;
+ case '+': assert(!"bad option");
+ default: abort();
+ }
+ }
+ argc -= optind-1;
+ argv += optind-1;
+ assert(argc==3);
+ n = atoi(argv[1]);
+ m = atoi(argv[2]);
+
+ prep();
+ iterate();
+ report();
return 0;
}