21 #include "CoinTime.hpp"
32 # error "don't have header file for time"
38 int main(
int argc,
char ** argv){
47 std::string osolFileName;
52 std::cout <<
"Too Many Input Parameters" << std::endl;
57 std::cout <<
"usage: parsingtest <filename> " << std::endl;
65 double start = CoinCpuTime();
67 osolFileName = argv[1];
72 osoption = osolreader->
readOSoL( osol) ;
85 masterCpuTime = CoinCpuTime() - start;
96 cpuTime = CoinCpuTime() - start;
98 std::cout <<
"CPU TIME FOR GETTING INITIAL SOLUTION " << masterCpuTime << std::endl;
100 std::cout <<
"CPU TIME " << cpuTime << std::endl;
103 std::cout <<
"Something went wrong:" << std::endl;
104 std::cout << eclass.
errormsg << std::endl;
std::string errormsg
errormsg is the error that is causing the exception to be thrown
int main(int argc, char *argv[])
void getInitialRestrictedMaster()
OSOption * readOSoL(const std::string &osol)
parse the OSoL solver options.
Used to read an OSoL string.
std::string getFileAsString(const char *fname)
read a file and return contents as a string.
class used to make it easy to read and write files.
used for throwing exceptions.