24 friend struct BqpdSolver::cachedInfo;
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 const std::string & errorName() const
Get the string corresponding to error.
UnsolvedFilterError(int errorNum, Ipopt::SmartPtr< TMINLP2TNLP > model, const std::string &name)
virtual const std::string & solverName() const
Return the name of the solver.
virtual ~UnsolvedFilterError()
FilterSolver(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist)
Constructor with passed journalist, roptions, options.
virtual Ipopt::SmartPtr< TNLPSolver > clone()
Virtual copy constructor.
virtual void setOutputToDefault()
turn off all output from the solver
virtual CoinWarmStart * getWarmStart(Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const
Get the warm start form the solver.
FilterSolver(const FilterSolver &other)
Copy constructor.
virtual CoinWarmStart * getEmptyWarmStart() const
virtual void enableWarmStart()
Enable the warm start options in the solver.
virtual int errorCode() const
Error code (solver specific).
virtual bool warmStartIsValid(const CoinWarmStart *ws) const
Check that warm start object is valid.
virtual ReturnStatus ReOptimizeTNLP(const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp)
Resolves a problem expresses as a TNLP.
virtual void disableWarmStart()
Disable the warm start options in the solver.
virtual double CPUTime()
Get the CpuTime of the last optimization.
virtual bool Initialize(std::istream &is)
Initialize the TNLPSolver (read options from istream is)
FilterTypes::real real
Fortran type for double.used in filter.
virtual UnsolvedError * newUnsolvedError(int num, Ipopt::SmartPtr< TMINLP2TNLP > problem, std::string name)
virtual std::string & solverName()
Get the solver name.
FilterSolver(bool createEmpty=false)
Default constructor.
static void registerOptions(Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions)
Register this solver options into passed roptions.
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::fint fint
Fortran type for integer used in filter.
virtual ReturnStatus OptimizeTNLP(const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp)
Solves a problem expresses as a TNLP.
void registerOptions()
Register this solver options into passed roptions.
virtual bool setWarmStart(const CoinWarmStart *warm, Ipopt::SmartPtr< TMINLP2TNLP > tnlp)
Set the warm start in the solver.
virtual void forceSolverOutput(int log_level)
turn on all output from the solver
virtual CoinWarmStart * getUsedWarmStart(Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const
Get warm start used in last optimization.
virtual bool Initialize(std::string params_file)
Initialize the TNLPSolver (read options from params_file)
virtual int IterationCount()
Get the iteration count of the last optimization.
virtual ~FilterSolver()
destructor
Warm start for filter interface.
We will throw this error when a problem is not solved.
int errorNum() const
Return error number.
This is a generic class for calling an NLP solver to solve a TNLP.
ReturnStatus
Standard return statuses for a solver.
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions_
Registered Options.
Ipopt::SmartPtr< Ipopt::Journalist > journalist()
Get a pointer to a journalist.
Ipopt::SmartPtr< const Ipopt::OptionsList > options() const
Get the options (for getting their values).
Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions()
Get a pointer to RegisteredOptions (generally used to add new ones)
const char * prefix()
Get the prefix.
(C) Copyright International Business Machines Corporation 2007
double real
Fortran type for double.used in filter.
FORTRAN_INTEGER_TYPE fint
Fortran type for integer used in filter.