diff options
author | Georgey | 2017-07-05 11:40:43 +0530 |
---|---|---|
committer | Georgey | 2017-07-05 11:40:43 +0530 |
commit | 938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427 (patch) | |
tree | b343c0ee5609433c80e0de1db8b6886c9126dc2d /thirdparty/linux/include/coin/CbcMipStartIO.hpp | |
parent | 5b72577efe080c5294b32d804e4d26351fef30bc (diff) | |
download | FOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.gz FOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.tar.bz2 FOSSEE-Optimization-toolbox-938fef4a37a7b7c61b4b6ff74cb4cfd2f100c427.zip |
Added linux shared libraries and header files for int and ecos functions
Diffstat (limited to 'thirdparty/linux/include/coin/CbcMipStartIO.hpp')
-rw-r--r-- | thirdparty/linux/include/coin/CbcMipStartIO.hpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/thirdparty/linux/include/coin/CbcMipStartIO.hpp b/thirdparty/linux/include/coin/CbcMipStartIO.hpp new file mode 100644 index 0000000..58e6c0a --- /dev/null +++ b/thirdparty/linux/include/coin/CbcMipStartIO.hpp @@ -0,0 +1,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 |