Cbc
2.10.13
Toggle main menu visibility
Loading...
Searching...
No Matches
Cbc
src
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>
7
class
CbcModel
;
8
9
class
OsiSolverInterface;
10
11
/* tries to read mipstart (solution file) from
12
fileName, filling colValues and obj
13
returns 0 with success,
14
1 otherwise */
15
int
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 */
21
int
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
27
28
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
29
*/
readMIPStart
int readMIPStart(CbcModel *model, const char *fileName, std::vector< std::pair< std::string, double > > &colValues, double &solObj)
computeCompleteSolution
int computeCompleteSolution(CbcModel *model, const std::vector< std::string > colNames, const std::vector< std::pair< std::string, double > > &colValues, double *sol, double &obj)
model
CbcModel * model() const
Return model.
Definition
CbcObject.hpp:252
CbcModel
Simple Branch and bound class.
Definition
CbcModel.hpp:100
Generated by
1.17.0