MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / read

Method read

highs/io/filereaderlp/reader.cpp:337–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337Model Reader::read() {
338 // std::clog << "Reading input, tokenizing..." << std::endl;
339 this->linebufferpos = 0;
340 // read first NRAWTOKEN token
341 // if file ends early, then all remaining tokens are set to FLEND
342 for (size_t i = 0; i < NRAWTOKEN; ++i)
343 while (!readnexttoken(rawtokens[i]))
344 ;
345
346 processtokens();
347
348 linebuffer.clear();
349 linebuffer.shrink_to_fit();
350
351 // std::clog << "Splitting tokens..." << std::endl;
352 splittokens();
353
354 // std::clog << "Setting up model..." << std::endl;
355 processsections();
356 processedtokens.clear();
357 processedtokens.shrink_to_fit();
358
359 return builder.model;
360}
361
362void Reader::processnonesec() {
363 lpassert(sectiontokens.count(LpSectionKeyword::NONE) == 0);

Callers 1

readinstanceFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected