Couenne  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CouenneGlobalCutOff.hpp
Go to the documentation of this file.
1 /* $Id: CouenneGlobalCutOff.hpp 490 2011-01-14 16:07:12Z pbelotti $
2  *
3  * Name: CouenneGlobalCutOff.hpp
4  * Author: Pietro Belotti, Lehigh University
5  * Andreas Waechter, IBM
6  * Purpose: a cutoff that replicates itself
7  *
8  * (C) Carnegie-Mellon University, 2010.
9  * This file is licensed under the Eclipse Public License (EPL)
10  */
11 
12 #ifndef COUENNE_GLOBAL_CUTOFF_HPP
13 #define COUENNE_GLOBAL_CUTOFF_HPP
14 
15 #include "CouenneProblem.hpp"
16 
17 namespace Couenne {
18 
19  class GlobalCutOff {
20 
21  private:
22 
23  GlobalCutOff (const GlobalCutOff&);
24 
25  double cutoff_;
26  double *sol_;
27  int size_;
28  bool valid_;
29 
30  public:
31 
32  GlobalCutOff ();
33  GlobalCutOff (double c, const double *s=NULL, int n=0);
34  ~GlobalCutOff ();
35 
36  void setCutOff (const CouenneProblem *p, double cutoff, const double *s=NULL);
37 
38  inline double getCutOff () const {return cutoff_;}
39  inline double *getCutOffSol () const {return sol_;}
40  };
41 }
42 
43 #endif
bool valid_
Stored solution corresponds to cutoff.
void setCutOff(const CouenneProblem *p, double cutoff, const double *s=NULL)
double * sol_
Best solution.
Class for MINLP problems with symbolic information.
double * getCutOffSol() const
int size_
Size of the vector stored in sol (should be #var of reformulation)
double cutoff_
Value of the best solution.