Loading...
Searching...
No Matches
MyMessageHandler.hpp
Go to the documentation of this file.
/* $Id$ */
// Copyright (C) 2003, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#ifndef MyMessageHandler_H
#define MyMessageHandler_H
#include <deque>
#include "CoinPragma.hpp"
#include <stdio.h>
#include "CoinMessageHandler.hpp"
class ClpSimplex;
typedef std::vector< double > StdVectorDouble;
class MyMessageHandler : public CoinMessageHandler {
public:
virtual int print();
const ClpSimplex *model() const;
void setModel(ClpSimplex *model);
const std::deque< StdVectorDouble > &getFeasibleExtremePoints() const;
void clearFeasibleExtremePoints();
MyMessageHandler();
MyMessageHandler(ClpSimplex *model,
FILE *userPointer = NULL);
virtual ~MyMessageHandler();
MyMessageHandler(const MyMessageHandler &);
MyMessageHandler(const CoinMessageHandler &);
MyMessageHandler &operator=(const MyMessageHandler &);
virtual CoinMessageHandler *clone() const;
protected:
ClpSimplex *model_;
std::deque< StdVectorDouble > feasibleExtremePoints_;
int iterationNumber_;
};
#endif
/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
*/
StdVectorDouble
std::vector< double > StdVectorDouble
Definition MyMessageHandler.hpp:25
ClpSimplex
This solves LPs using the simplex method.
Definition ClpSimplex.hpp:106
MyMessageHandler::print
virtual int print()
MyMessageHandler::MyMessageHandler
MyMessageHandler(const CoinMessageHandler &)
The copy constructor from an CoinSimplexMessageHandler.
MyMessageHandler::MyMessageHandler
MyMessageHandler(const MyMessageHandler &)
The copy constructor.
MyMessageHandler::setModel
void setModel(ClpSimplex *model)
MyMessageHandler::~MyMessageHandler
virtual ~MyMessageHandler()
Destructor.
MyMessageHandler::iterationNumber_
int iterationNumber_
Iteration number so won't do same one twice.
Definition MyMessageHandler.hpp:77
MyMessageHandler::MyMessageHandler
MyMessageHandler()
Default constructor.
MyMessageHandler::getFeasibleExtremePoints
const std::deque< StdVectorDouble > & getFeasibleExtremePoints() const
Get queue of feasible extreme points.
MyMessageHandler::operator=
MyMessageHandler & operator=(const MyMessageHandler &)
MyMessageHandler::clone
virtual CoinMessageHandler * clone() const
Clone.
MyMessageHandler::model_
ClpSimplex * model_
Pointer back to model.
Definition MyMessageHandler.hpp:73
MyMessageHandler::clearFeasibleExtremePoints
void clearFeasibleExtremePoints()
Empty queue of feasible extreme points.
MyMessageHandler::MyMessageHandler
MyMessageHandler(ClpSimplex *model, FILE *userPointer=NULL)
Constructor with pointer to model.
MyMessageHandler::model
const ClpSimplex * model() const
Model.
MyMessageHandler::feasibleExtremePoints_
std::deque< StdVectorDouble > feasibleExtremePoints_
Saved extreme points.
Definition MyMessageHandler.hpp:75