Couenne 0.5.8
Loading...
Searching...
No Matches
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
17namespace Couenne {
18
20
21 private:
22
24
25 double cutoff_;
26 double *sol_;
27 int size_;
28 bool valid_;
29
30 public:
31
33 GlobalCutOff (double c, const double *s=NULL, int n=0);
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
Class for MINLP problems with symbolic information.
void setCutOff(const CouenneProblem *p, double cutoff, const double *s=NULL)
GlobalCutOff(double c, const double *s=NULL, int n=0)
general include file for different compilers