source: trunk/Cbc/src/CbcMipStartIO.hpp @ 2464

Last change on this file since 2464 was 2464, checked in by unxusr, 7 months ago

.clang-format with proposal for formatting code

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 731 bytes
Line 
1#ifndef MIPSTARTIO_HPP_INCLUDED
2#define MIPSTARTIO_HPP_INCLUDED
3
4#include <vector>
5#include <string>
6#include <utility>
7class CbcModel;
8
9class OsiSolverInterface;
10
11/* tries to read mipstart (solution file) from
12   fileName, filling colValues and obj
13   returns 0 with success,
14   1 otherwise */
15int readMIPStart(CbcModel *model, const char *fileName,
16  std::vector<std::pair<std::string, double>> &colValues,
17  double &solObj);
18
19/* from a partial list of variables tries to fill the
20   remaining variable values */
21int computeCompleteSolution(CbcModel *model,
22  const std::vector<std::string> colNames,
23  const std::vector<std::pair<std::string, double>> &colValues,
24  double *sol, double &obj);
25
26#endif // MIPSTARTIO_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.