Go to the documentation of this file.
10 #ifndef FilterSolver_H
11 #define FilterSolver_H
31 const std::string &name):
41 static std::string errorNames_[1];
42 static std::string solverName_;
134 return (cached_.
IsValid()) ? cached_->cpuTime_: 0.;
140 return (cached_.
IsValid()) ? cached_->istat[1]:0;
146 if (cached_.
IsValid()) cached_->iprint = default_log_level_;
151 if (cached_.
IsValid()) cached_->iprint = log_level;
214 int * permutationJac_;
215 int * permutationHess_;
220 bool use_warm_start_in_cache_;
255 permutationJac_(NULL),
256 permutationHess_(NULL),
258 use_warm_start_in_cache_(false)
293 permutationJac_(NULL),
294 permutationHess_(NULL),
296 use_warm_start_in_cache_(false)
323 delete [] permutationJac_;
324 delete [] permutationHess_;
336 static std::string solverName_;
339 int default_log_level_;
343 fint * lws,
int nnz_offset,
int n_offset,
virtual void setOutputToDefault()
turn off all output from the solver
virtual ~FilterSolver()
destructor
virtual CoinWarmStart * getWarmStart(Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const
Get the warm start form the solver.
virtual ReturnStatus ReOptimizeTNLP(const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp)
Resolves a problem expresses as a TNLP.
FilterSolver(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist)
Constructor with passed journalist, roptions, options.
ReturnStatus
Standard return statuses for a solver.
UnsolvedFilterError(int errorNum, Ipopt::SmartPtr< TMINLP2TNLP > model, const std::string &name)
virtual bool setWarmStart(const CoinWarmStart *warm, Ipopt::SmartPtr< TMINLP2TNLP > tnlp)
Set the warm start in the solver.
virtual int IterationCount()
Get the iteration count of the last optimization.
FORTRAN_INTEGER_TYPE fint
Fortran type for integer used in filter.
(C) Copyright International Business Machines Corporation 2007
virtual const std::string & errorName() const
Get the string corresponding to error.
Ipopt::SmartPtr< const Ipopt::OptionsList > options() const
Get the options (for getting their values).
FilterSolver(const FilterSolver &other)
Copy constructor.
virtual ~UnsolvedFilterError()
virtual bool Initialize(std::string params_file)
Initialize the TNLPSolver (read options from params_file)
double real
Fortran type for double.used in filter.
We will throw this error when a problem is not solved.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register this solver options into passed roptions.
int errorNum() const
Return error number.
void registerOptions()
Register this solver options into passed roptions.
virtual int errorCode() const
Error code (solver specific).
virtual bool Initialize(std::istream &is)
Initialize the TNLPSolver (read options from istream is)
This is a generic class for calling an NLP solver to solve a TNLP.
virtual void disableWarmStart()
Disable the warm start options in the solver.
Ipopt::SmartPtr< Ipopt::Journalist > journalist()
Get a pointer to a journalist.
virtual CoinWarmStart * getUsedWarmStart(Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const
Get warm start used in last optimization.
FilterTypes::fint fint
Fortran type for integer used in filter.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions_
Registered Options.
virtual Ipopt::SmartPtr< TNLPSolver > clone()
Virtual copy constructor.
virtual void forceSolverOutput(int log_level)
turn on all output from the solver
virtual std::string & solverName()
Get the solver name.
Warm start for filter interface.
friend struct BqpdSolver::cachedInfo
FilterSolver(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist, const std::string &prefix)
Constructor with passed journalist, roptions, options.
FilterTypes::real real
Fortran type for double.used in filter.
FilterSolver(bool createEmpty=false)
Default constructor.
virtual void enableWarmStart()
Enable the warm start options in the solver.
const char * prefix()
Get the prefix.
virtual double CPUTime()
Get the CpuTime of the last optimization.
virtual const std::string & solverName() const
Return the name of the solver.
virtual CoinWarmStart * getEmptyWarmStart() const
virtual UnsolvedError * newUnsolvedError(int num, Ipopt::SmartPtr< TMINLP2TNLP > problem, std::string name)
virtual ReturnStatus OptimizeTNLP(const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp)
Solves a problem expresses as a TNLP.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions()
Get a pointer to RegisteredOptions (generally used to add new ones)
virtual bool warmStartIsValid(const CoinWarmStart *ws) const
Check that warm start object is valid.