Cbc 2.10.5
Loading...
Searching...
No Matches
CbcMipStartIO.hpp
Go to the documentation of this file.
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 */
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
27
28/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
29*/
int readMIPStart(CbcModel *model, const char *fileName, std::vector< std::pair< std::string, double > > &colValues, double &solObj)
int computeCompleteSolution(CbcModel *model, const std::vector< std::string > colNames, const std::vector< std::pair< std::string, double > > &colValues, double *sol, double &obj)
Simple Branch and bound class.
Definition: CbcModel.hpp:100