Clp 1.17.6

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

- File List
- File Members

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 2385 2019-01-06 19:43:06Z unxusr $ */
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 typedef std::vector< double > StdVectorDouble;
26
27 class MyMessageHandler : public CoinMessageHandler {
28
29 public:
32 virtual int print();
34
36 const ClpSimplex *model() const;
38 void setModel(ClpSimplex *model);
40 const std::deque< StdVectorDouble > &getFeasibleExtremePoints() const;
42 void clearFeasibleExtremePoints();
44
48 MyMessageHandler();
50 MyMessageHandler(ClpSimplex *model,
51 FILE *userPointer = NULL);
53 virtual ~MyMessageHandler();
55
59 MyMessageHandler(const MyMessageHandler &);
61 MyMessageHandler(const CoinMessageHandler &);
62
63 MyMessageHandler &operator=(const MyMessageHandler &);
65 virtual CoinMessageHandler *clone() const;
67
68 protected:
72 ClpSimplex *model_;
75 std::deque< StdVectorDouble > feasibleExtremePoints_;
77 int iterationNumber_;
79 };
80
81 #endif
82
83 /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
84 */
MyMessageHandler::setModel
void setModel(ClpSimplex *model)
MyMessageHandler::getFeasibleExtremePoints
const std::deque< StdVectorDouble > & getFeasibleExtremePoints() const
Get queue of feasible extreme points.
MyMessageHandler::model_
ClpSimplex * model_
Pointer back to model.
Definition: MyMessageHandler.hpp:73
MyMessageHandler
Definition: MyMessageHandler.hpp:27
CoinMessageHandler
Base class for message handling.
Definition: CoinMessageHandler.hpp:345
MyMessageHandler::operator=
MyMessageHandler & operator=(const MyMessageHandler &)
MyMessageHandler::feasibleExtremePoints_
std::deque< StdVectorDouble > feasibleExtremePoints_
Saved extreme points.
Definition: MyMessageHandler.hpp:75
MyMessageHandler::iterationNumber_
int iterationNumber_
Iteration number so won&#39;t do same one twice.
Definition: MyMessageHandler.hpp:77
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:106
CoinPragma.hpp
MyMessageHandler::model
const ClpSimplex * model() const
Model.
MyMessageHandler::clone
virtual CoinMessageHandler * clone() const
Clone.
MyMessageHandler::~MyMessageHandler
virtual ~MyMessageHandler()
Destructor.
StdVectorDouble
std::vector< double > StdVectorDouble
Definition: MyMessageHandler.hpp:23
MyMessageHandler::print
virtual int print()
Print message, return 0 normally.
MyMessageHandler::clearFeasibleExtremePoints
void clearFeasibleExtremePoints()
Empty queue of feasible extreme points.