- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
28 class MyMessageHandler : public CoinMessageHandler {
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;
43 void clearFeasibleExtremePoints();
45
49 MyMessageHandler();
51 MyMessageHandler(ClpSimplex * model,
52 FILE * userPointer = NULL);
54 virtual ~MyMessageHandler();
56
60 MyMessageHandler(const MyMessageHandler&);
62 MyMessageHandler(const CoinMessageHandler&);
63
64 MyMessageHandler& operator=(const MyMessageHandler&);
66 virtual CoinMessageHandler * clone() const ;
68
69
70 protected:
74 ClpSimplex * model_;
77 std::deque<StdVectorDouble> feasibleExtremePoints_;
79 int iterationNumber_;
81 };
82
83 #endif
MyMessageHandler::~MyMessageHandler
virtual ~MyMessageHandler()
Destructor.
MyMessageHandler::print
virtual int print()
Print message, return 0 normally.
MyMessageHandler::clearFeasibleExtremePoints
void clearFeasibleExtremePoints()
Empty queue of feasible extreme points.
CoinMessageHandler
Base class for message handling.
Definition: CoinMessageHandler.hpp:327
MyMessageHandler::model
const ClpSimplex * model() const
Model.
MyMessageHandler::setModel
void setModel(ClpSimplex *model)
Model.
MyMessageHandler::getFeasibleExtremePoints
const std::deque< StdVectorDouble > & getFeasibleExtremePoints() const
Get queue of feasible extreme points.
MyMessageHandler::operator=
MyMessageHandler & operator=(const MyMessageHandler &)
The copy constructor.
MyMessageHandler::model_
ClpSimplex * model_
Pointer back to model.
Definition: MyMessageHandler.hpp:75
StdVectorDouble
std::vector< double > StdVectorDouble
Definition: MyMessageHandler.hpp:23
MyMessageHandler::iterationNumber_
int iterationNumber_
Iteration number so won&#39;t do same one twice.
Definition: MyMessageHandler.hpp:79
MyMessageHandler::clone
virtual CoinMessageHandler * clone() const
Clone.
MyMessageHandler
Definition: MyMessageHandler.hpp:28
MyMessageHandler::MyMessageHandler
MyMessageHandler()
Default constructor.
CoinMessageHandler.hpp
This is a first attempt at a message handler.
ClpSimplex
This solves LPs using the simplex method.
Definition: ClpSimplex.hpp:70
CoinPragma.hpp
MyMessageHandler::feasibleExtremePoints_
std::deque< StdVectorDouble > feasibleExtremePoints_
Saved extreme points.
Definition: MyMessageHandler.hpp:77