/home/coin/SVN-release/OS-2.4.0/Couenne/src/expression/operators/exprMinMax.cpp

Go to the documentation of this file.
00001 /* $Id: exprMinMax.cpp 490 2011-01-14 16:07:12Z pbelotti $ */
00002 /*
00003  * Name:    exprMinMax.cpp
00004  * Author:  Pietro Belotti
00005  * Purpose: definition of min and max operators
00006  *
00007  * (C) Carnegie-Mellon University, 2006. 
00008  * This file is licensed under the Eclipse Public License (EPL)
00009  */
00010 
00011 #include "OsiSolverInterface.hpp"
00012 
00013 #include "CouenneCutGenerator.hpp"
00014 #include "CouenneTypes.hpp"
00015 #include "CouenneExprMax.hpp"
00016 #include "CouenneExprMin.hpp"
00017 #include "CouenneExprConst.hpp"
00018 
00019 using namespace Couenne;
00020 
00021 // Get lower and upper bound of an expression (if any)
00022 void exprMin::getBounds (expression *&lower, expression *&upper) {
00023   lower = new exprConst (-COIN_DBL_MAX);
00024   upper = new exprConst ( COIN_DBL_MAX);
00025 }
00026 
00027 
00028 // Get lower and upper bound of an expression (if any)
00029 void exprMax::getBounds (expression *&lower, expression *&upper) {
00030   lower = new exprConst (-COIN_DBL_MAX);
00031   upper = new exprConst ( COIN_DBL_MAX);
00032 }
00033 
00034 
00035 void exprMin::generateCuts (expression *w, //const OsiSolverInterface &si, 
00036                             OsiCuts &cs, const CouenneCutGenerator *cg,
00037                             t_chg_bounds *chg, int,
00038                             CouNumber, CouNumber) 
00039 {}
00040 
00041 
00042 void exprMax::generateCuts (expression *w, //const OsiSolverInterface &si, 
00043                             OsiCuts &cs, const CouenneCutGenerator *cg,
00044                             t_chg_bounds *chg, int,
00045                             CouNumber, CouNumber) 
00046 {}

Generated on Thu Sep 22 03:05:58 2011 by  doxygen 1.4.7