33void run(Optimizer optim,
double bmult)
35 cout <<
"Scenario bmult=" << bmult <<
", Obj:" << optim.solve(bmult) << endl;
43int main(
int argc,
char* argv[])
45 cout <<
"---------- Transport 14 --------------" << endl;
48 vector<double> bmultlist { 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3 };
49 const Optimizer &optim = Optimizer(argc, argv);
51 vector<thread> threads;
52 for (
auto bmult : bmultlist)
53 threads.push_back(thread(run, optim, bmult));
55 for (
auto& t : threads)
59 cout <<
"GAMSException occured: " << ex.what() << endl;
60 }
catch (exception &ex) {
61 cout << ex.what() << endl;
Wrapper class definition for executing transport14.