Cbc  trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
CbcMipStartIO.hpp
Go to the documentation of this file.
00001 #ifndef MIPSTARTIO_HPP_INCLUDED
00002 #define MIPSTARTIO_HPP_INCLUDED
00003 
00004 #include <vector>
00005 #include <string>
00006 #include <utility>
00007 class CbcModel;
00008 
00009 class OsiSolverInterface;
00010 
00011 /* tries to read mipstart (solution file) from
00012    fileName, filling colValues and obj
00013    returns 0 with success,
00014    1 otherwise */
00015 int readMIPStart( CbcModel * model, const char *fileName,
00016                   std::vector< std::pair< std::string, double > > &colValues,
00017                   double &solObj );
00018 
00019 /* from a partial list of variables tries to fill the
00020    remaining variable values */
00021 int computeCompleteSolution( CbcModel * model, 
00022                              const std::vector< std::string > colNames,
00023                              const std::vector< std::pair< std::string, double > > &colValues,
00024                              double *sol, double &obj );
00025 
00026 #endif // MIPSTARTIO_HPP_INCLUDED
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines