summaryrefslogtreecommitdiff
path: root/newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:34:27 +0530
committerHarpreet2016-09-03 00:34:27 +0530
commit4b64cf486f5c999fd8167758cae27839f3b50848 (patch)
treed9d06639fb7fa61aef59be0363655e4747105ec7 /newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp
parentd19794fb80a271a4c885ed90f97cfc12baa012f2 (diff)
downloadFOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.gz
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.tar.bz2
FOSSEE-Optim-toolbox-development-4b64cf486f5c999fd8167758cae27839f3b50848.zip
Structure updated and intqpipopt files added
Diffstat (limited to 'newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp')
-rw-r--r--newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp b/newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp
new file mode 100644
index 0000000..a7e28c8
--- /dev/null
+++ b/newstructure/thirdparty/linux/include/coin/CoinWarmStart.hpp
@@ -0,0 +1,58 @@
+/* $Id: CoinWarmStart.hpp 1372 2011-01-03 23:31:00Z lou $ */
+// Copyright (C) 2000, International Business Machines
+// Corporation and others. All Rights Reserved.
+// This code is licensed under the terms of the Eclipse Public License (EPL).
+
+#ifndef CoinWarmStart_H
+#define CoinWarmStart_H
+
+//#############################################################################
+
+class CoinWarmStartDiff;
+
+/** Abstract base class for warm start information.
+
+ Really nothing can be generalized for warm start information --- all we
+ know is that it exists. Hence the abstract base class contains only a
+ virtual destructor and a virtual clone function (a virtual constructor),
+ so that derived classes can provide these functions.
+*/
+
+class CoinWarmStart {
+public:
+
+ /// Abstract destructor
+ virtual ~CoinWarmStart() {}
+
+ /// `Virtual constructor'
+ virtual CoinWarmStart *clone() const = 0 ;
+
+ virtual CoinWarmStartDiff*
+ generateDiff (const CoinWarmStart *const ) const { return 0; }
+
+
+ virtual void
+ applyDiff (const CoinWarmStartDiff *const ) {}
+
+};
+
+
+/*! \class CoinWarmStartDiff
+ \brief Abstract base class for warm start `diff' objects
+
+ For those types of warm start objects where the notion of a `diff' makes
+ sense, this virtual base class is provided. As with CoinWarmStart, its sole
+ reason for existence is to make it possible to write solver-independent code.
+*/
+
+class CoinWarmStartDiff {
+public:
+
+ /// Abstract destructor
+ virtual ~CoinWarmStartDiff() {}
+
+ /// `Virtual constructor'
+ virtual CoinWarmStartDiff *clone() const = 0 ;
+};
+
+#endif