File: CbcMipStartIO.hpp

package info (click to toggle)
coinor-cbc 2.9.9+repack1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,848 kB
  • ctags: 5,787
  • sloc: cpp: 104,337; sh: 8,921; xml: 2,950; makefile: 520; ansic: 491; awk: 197
file content (26 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef MIPSTARTIO_HPP_INCLUDED
#define MIPSTARTIO_HPP_INCLUDED

#include <vector>
#include <string>
#include <utility>
class CbcModel;

class OsiSolverInterface;

/* tries to read mipstart (solution file) from
   fileName, filling colValues and obj
   returns 0 with success,
   1 otherwise */
int readMIPStart( CbcModel * model, const char *fileName,
                  std::vector< std::pair< std::string, double > > &colValues,
                  double &solObj );

/* from a partial list of variables tries to fill the
   remaining variable values */
int computeCompleteSolution( CbcModel * model, 
                             const std::vector< std::string > colNames,
                             const std::vector< std::pair< std::string, double > > &colValues,
                             double *sol, double &obj );

#endif // MIPSTARTIO_HPP_INCLUDED