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

Go to the documentation of this file.
00001 /* $Id: exprMinMax.cpp 154 2009-06-16 18:52:53Z 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 Common Public License (CPL)
00009  */
00010 
00011 #include "OsiSolverInterface.hpp"
00012 
00013 #include "CouenneCutGenerator.hpp"
00014 #include "CouenneTypes.hpp"
00015 #include "exprMax.hpp"
00016 #include "exprMin.hpp"
00017 #include "exprConst.hpp"
00018 
00019 
00020 // Get lower and upper bound of an expression (if any)
00021 void exprMin::getBounds (expression *&lower, expression *&upper) {
00022   lower = new exprConst (-COIN_DBL_MAX);
00023   upper = new exprConst ( COIN_DBL_MAX);
00024 }
00025 
00026 
00027 // Get lower and upper bound of an expression (if any)
00028 void exprMax::getBounds (expression *&lower, expression *&upper) {
00029   lower = new exprConst (-COIN_DBL_MAX);
00030   upper = new exprConst ( COIN_DBL_MAX);
00031 }
00032 
00033 
00034 void exprMin::generateCuts (expression *w, const OsiSolverInterface &si, 
00035                             OsiCuts &cs, const CouenneCutGenerator *cg,
00036                             t_chg_bounds *chg, int,
00037                             CouNumber, CouNumber) 
00038 {}
00039 
00040 
00041 void exprMax::generateCuts (expression *w, const OsiSolverInterface &si, 
00042                             OsiCuts &cs, const CouenneCutGenerator *cg,
00043                             t_chg_bounds *chg, int,
00044                             CouNumber, CouNumber) 
00045 {}

Generated on Mon Aug 3 03:02:20 2009 by  doxygen 1.4.7