summaryrefslogtreecommitdiff
path: root/thirdparty/linux/include/coin/CbcMipStartIO.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:36:51 +0530
committerHarpreet2016-09-03 00:36:51 +0530
commita0d9443af147e949c1e6a01ac24749d12593ec5b (patch)
tree1a1955c5482ae608fd7f618b06f4ecc6a0d39a23 /thirdparty/linux/include/coin/CbcMipStartIO.hpp
parent4b64cf486f5c999fd8167758cae27839f3b50848 (diff)
downloadFOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.gz
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.bz2
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.zip
cbcintlinprog added
Diffstat (limited to 'thirdparty/linux/include/coin/CbcMipStartIO.hpp')
-rw-r--r--thirdparty/linux/include/coin/CbcMipStartIO.hpp26
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