Cbc  2.9.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MyMessageHandler.hpp
Go to the documentation of this file.
1 /* $Id: MyMessageHandler.hpp 1665 2011-01-04 17:55:54Z lou $ */
2 // Copyright (C) 2003, International Business Machines
3 // Corporation and others. All Rights Reserved.
4 // This code is licensed under the terms of the Eclipse Public License (EPL).
5 
6 #ifndef MyMessageHandler_H
7 #define MyMessageHandler_H
8 
9 #include <deque>
10 
11 #include "CoinPragma.hpp"
12 #include <stdio.h>
13 #include "CoinMessageHandler.hpp"
14 
23 class ClpSimplex;
24 
25 
26 typedef std::vector<double> StdVectorDouble;
27 
29 
30 public:
33  virtual int print();
35 
37  const ClpSimplex * model() const;
39  void setModel(ClpSimplex * model);
41  const std::deque<StdVectorDouble> & getFeasibleExtremePoints() const;
45 
52  FILE * userPointer = NULL);
54  virtual ~MyMessageHandler();
56 
63 
66  virtual CoinMessageHandler * clone() const ;
68 
69 
70 protected:
77  std::deque<StdVectorDouble> feasibleExtremePoints_;
81 };
82 
83 #endif
void setModel(ClpSimplex *model)
const std::deque< StdVectorDouble > & getFeasibleExtremePoints() const
Get queue of feasible extreme points.
ClpSimplex * model_
Pointer back to model.
Base class for message handling.
MyMessageHandler & operator=(const MyMessageHandler &)
int iterationNumber_
Iteration number so won&#39;t do same one twice.
MyMessageHandler()
Default constructor.
This is a first attempt at a message handler.
This solves LPs using the simplex method.
Definition: ClpSimplex.hpp:70
const ClpSimplex * model() const
Model.
virtual CoinMessageHandler * clone() const
Clone.
std::deque< StdVectorDouble > feasibleExtremePoints_
Saved extreme points.
virtual ~MyMessageHandler()
Destructor.
virtual int print()
Print message, return 0 normally.
std::vector< double > StdVectorDouble
void clearFeasibleExtremePoints()
Empty queue of feasible extreme points.