#include <BonBqpdSolver.hpp>
Inheritance diagram for Bonmin::BqpdSolver:
Public Types | |
typedef ipfint | fint |
Fortran type for integer used in filter. | |
typedef double | real |
Fortran type for double.used in filter. | |
Public Member Functions | |
virtual UnsolvedError * | newUnsolvedError (int num, Ipopt::SmartPtr< TMINLP2TNLP > problem, std::string name) |
BqpdSolver (bool createEmpty=false) | |
Default constructor. | |
BqpdSolver (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist) | |
Constructor with passed journalist, roptions, options. | |
virtual | ~BqpdSolver () |
destructor | |
virtual bool | Initialize (std::string params_file) |
Initialize the TNLPSolver (read options from params_file). | |
virtual bool | Initialize (std::istream &is) |
Initialize the TNLPSolver (read options from istream is). | |
virtual SmartPtr< TNLPSolver > | clone () |
Virtual copy constructor. | |
virtual double | CPUTime () |
Get the CpuTime of the last optimization. | |
virtual int | IterationCount () |
Get the iteration count of the last optimization. | |
virtual void | turnOffOutput () |
turn off all output from the solver | |
virtual void | turnOnOutput () |
turn on all output from the solver | |
virtual std::string & | solverName () |
Get the solver name. | |
void | registerOptions () |
Register this solver options into passed roptions. | |
virtual int | errorCode () const |
Error code (solver specific). | |
Solve methods | |
virtual ReturnStatus | OptimizeTNLP (const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp) |
Solves a problem expresses as a TNLP. | |
virtual ReturnStatus | ReOptimizeTNLP (const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp) |
Resolves a problem expresses as a TNLP. | |
virtual bool | setWarmStart (const CoinWarmStart *warm, Ipopt::SmartPtr< TMINLP2TNLP > tnlp) |
Set the warm start in the solver. | |
virtual bool | markHotStart () |
Safe the current state (after most recent solve that must have been successful) as hot start information and use that for all further solves, until unmarkHotStart is called. | |
virtual CoinWarmStart * | getUsedWarmStart (Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const |
Get warm start used in last optimization. | |
virtual CoinWarmStart * | getWarmStart (Ipopt::SmartPtr< TMINLP2TNLP > tnlp) const |
Get the warm start form the solver. | |
virtual CoinWarmStart * | getEmptyWarmStart () const |
Solves a problem expresses as a TNLP. | |
virtual bool | warmStartIsValid (const CoinWarmStart *ws) const |
Check that warm start object is valid. | |
virtual void | enableWarmStart () |
Solves a problem expresses as a TNLP. | |
virtual void | disableWarmStart () |
Solves a problem expresses as a TNLP. | |
Static Public Member Functions | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register this solver options into passed roptions. | |
Private Member Functions | |
Private function members. | |
TNLPSolver::ReturnStatus | callOptimizer () |
Perform optimization using data structure in cache. | |
Private Attributes | |
Ipopt::SmartPtr< cachedInfo > | cached_ |
Cached information on last problem optimized for reoptimization. | |
User options | |
double | fillin_factor_ |
Fill-in factor for QP factorization. | |
int | kmax_ipt_ |
Fill-in factor for QP factorization. | |
int | mlp_ipt_ |
Fill-in factor for QP factorization. | |
Static Private Attributes | |
static std::string | solverName_ |
Friends | |
class | FilterSolver |
Classes | |
struct | cachedInfo |
Cached information for reoptimizing. More... | |
class | UnsolvedBqpdError |
Definition at line 19 of file BonBqpdSolver.hpp.
typedef ipfint Bonmin::BqpdSolver::fint |
typedef double Bonmin::BqpdSolver::real |
Bonmin::BqpdSolver::BqpdSolver | ( | bool | createEmpty = false |
) |
Default constructor.
Bonmin::BqpdSolver::BqpdSolver | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions, | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options, | |||
Ipopt::SmartPtr< Ipopt::Journalist > | journalist | |||
) |
Constructor with passed journalist, roptions, options.
virtual Bonmin::BqpdSolver::~BqpdSolver | ( | ) | [virtual] |
destructor
virtual UnsolvedError* Bonmin::BqpdSolver::newUnsolvedError | ( | int | num, | |
Ipopt::SmartPtr< TMINLP2TNLP > | problem, | |||
std::string | name | |||
) | [inline, virtual] |
virtual bool Bonmin::BqpdSolver::Initialize | ( | std::string | params_file | ) | [virtual] |
virtual bool Bonmin::BqpdSolver::Initialize | ( | std::istream & | is | ) | [virtual] |
virtual ReturnStatus Bonmin::BqpdSolver::OptimizeTNLP | ( | const Ipopt::SmartPtr< Ipopt::TNLP > & | tnlp | ) | [virtual] |
virtual ReturnStatus Bonmin::BqpdSolver::ReOptimizeTNLP | ( | const Ipopt::SmartPtr< Ipopt::TNLP > & | tnlp | ) | [virtual] |
virtual bool Bonmin::BqpdSolver::setWarmStart | ( | const CoinWarmStart * | warm, | |
Ipopt::SmartPtr< TMINLP2TNLP > | tnlp | |||
) | [virtual] |
virtual bool Bonmin::BqpdSolver::markHotStart | ( | ) | [inline, virtual] |
Safe the current state (after most recent solve that must have been successful) as hot start information and use that for all further solves, until unmarkHotStart is called.
Definition at line 91 of file BonBqpdSolver.hpp.
References cached_.
virtual CoinWarmStart* Bonmin::BqpdSolver::getUsedWarmStart | ( | Ipopt::SmartPtr< TMINLP2TNLP > | tnlp | ) | const [inline, virtual] |
Get warm start used in last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 94 of file BonBqpdSolver.hpp.
virtual CoinWarmStart* Bonmin::BqpdSolver::getWarmStart | ( | Ipopt::SmartPtr< TMINLP2TNLP > | tnlp | ) | const [virtual] |
virtual CoinWarmStart* Bonmin::BqpdSolver::getEmptyWarmStart | ( | ) | const [virtual] |
virtual bool Bonmin::BqpdSolver::warmStartIsValid | ( | const CoinWarmStart * | ws | ) | const [virtual] |
virtual void Bonmin::BqpdSolver::enableWarmStart | ( | ) | [inline, virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
Definition at line 106 of file BonBqpdSolver.hpp.
virtual void Bonmin::BqpdSolver::disableWarmStart | ( | ) | [inline, virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
Definition at line 109 of file BonBqpdSolver.hpp.
virtual SmartPtr<TNLPSolver> Bonmin::BqpdSolver::clone | ( | ) | [virtual] |
virtual double Bonmin::BqpdSolver::CPUTime | ( | ) | [inline, virtual] |
Get the CpuTime of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 118 of file BonBqpdSolver.hpp.
References cached_, and Ipopt::IsValid().
virtual int Bonmin::BqpdSolver::IterationCount | ( | ) | [inline, virtual] |
Get the iteration count of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 124 of file BonBqpdSolver.hpp.
virtual void Bonmin::BqpdSolver::turnOffOutput | ( | ) | [inline, virtual] |
turn off all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 130 of file BonBqpdSolver.hpp.
References cached_, and Ipopt::IsValid().
virtual void Bonmin::BqpdSolver::turnOnOutput | ( | ) | [inline, virtual] |
turn on all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 135 of file BonBqpdSolver.hpp.
References cached_, and Ipopt::IsValid().
virtual std::string& Bonmin::BqpdSolver::solverName | ( | ) | [inline, virtual] |
Get the solver name.
Implements Bonmin::TNLPSolver.
Definition at line 141 of file BonBqpdSolver.hpp.
References solverName_.
void Bonmin::BqpdSolver::registerOptions | ( | ) | [inline] |
Register this solver options into passed roptions.
Definition at line 147 of file BonBqpdSolver.hpp.
References Bonmin::TNLPSolver::roptions_.
virtual int Bonmin::BqpdSolver::errorCode | ( | ) | const [inline, virtual] |
Error code (solver specific).
Implements Bonmin::TNLPSolver.
Definition at line 153 of file BonBqpdSolver.hpp.
static void Bonmin::BqpdSolver::registerOptions | ( | Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions | ) | [static] |
Register this solver options into passed roptions.
TNLPSolver::ReturnStatus Bonmin::BqpdSolver::callOptimizer | ( | ) | [private] |
Perform optimization using data structure in cache.
friend class FilterSolver [friend] |
Definition at line 22 of file BonBqpdSolver.hpp.
double Bonmin::BqpdSolver::fillin_factor_ [private] |
int Bonmin::BqpdSolver::kmax_ipt_ [private] |
int Bonmin::BqpdSolver::mlp_ipt_ [private] |
Ipopt::SmartPtr<cachedInfo> Bonmin::BqpdSolver::cached_ [private] |
Cached information on last problem optimized for reoptimization.
Definition at line 360 of file BonBqpdSolver.hpp.
Referenced by CPUTime(), markHotStart(), turnOffOutput(), and turnOnOutput().
std::string Bonmin::BqpdSolver::solverName_ [static, private] |