Bonmin
1.7
|
#include <BonBqpdSolver.hpp>
Classes | |
struct | cachedInfo |
Cached information for reoptimizing. More... | |
class | UnsolvedBqpdError |
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, const std::string &prefix) | |
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 Ipopt::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 | setOutputToDefault () |
turn off all output from the solver | |
virtual void | forceSolverOutput (int log_level) |
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. | |
Friends | |
class | FilterSolver |
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 int | m0de_ |
Hot start m0de. | |
static int | reinit_freq_ |
Hot start reinitialization fequency. | |
of solver (Bqpd) | |
int | default_log_level_ |
To record default log level. | |
static std::string | solverName_ |
To record default log level. |
Definition at line 20 of file BonBqpdSolver.hpp.
typedef ipfint Bonmin::BqpdSolver::fint |
Fortran type for integer used in filter.
Definition at line 46 of file BonBqpdSolver.hpp.
typedef double Bonmin::BqpdSolver::real |
Fortran type for double.used in filter.
Definition at line 48 of file BonBqpdSolver.hpp.
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, | ||
const std::string & | prefix | ||
) |
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] |
Implements Bonmin::TNLPSolver.
Definition at line 51 of file BonBqpdSolver.hpp.
virtual bool Bonmin::BqpdSolver::Initialize | ( | std::string | params_file | ) | [virtual] |
Initialize the TNLPSolver (read options from params_file)
Implements Bonmin::TNLPSolver.
virtual bool Bonmin::BqpdSolver::Initialize | ( | std::istream & | is | ) | [virtual] |
Initialize the TNLPSolver (read options from istream is)
Implements Bonmin::TNLPSolver.
virtual ReturnStatus Bonmin::BqpdSolver::OptimizeTNLP | ( | const Ipopt::SmartPtr< Ipopt::TNLP > & | tnlp | ) | [virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
virtual ReturnStatus Bonmin::BqpdSolver::ReOptimizeTNLP | ( | const Ipopt::SmartPtr< Ipopt::TNLP > & | tnlp | ) | [virtual] |
Resolves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
virtual bool Bonmin::BqpdSolver::setWarmStart | ( | const CoinWarmStart * | warm, |
Ipopt::SmartPtr< TMINLP2TNLP > | tnlp | ||
) | [virtual] |
Set the warm start in the solver.
Implements Bonmin::TNLPSolver.
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 94 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 97 of file BonBqpdSolver.hpp.
virtual CoinWarmStart* Bonmin::BqpdSolver::getWarmStart | ( | Ipopt::SmartPtr< TMINLP2TNLP > | tnlp | ) | const [virtual] |
Get the warm start form the solver.
Implements Bonmin::TNLPSolver.
virtual CoinWarmStart* Bonmin::BqpdSolver::getEmptyWarmStart | ( | ) | const [virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
virtual bool Bonmin::BqpdSolver::warmStartIsValid | ( | const CoinWarmStart * | ws | ) | const [virtual] |
Check that warm start object is valid.
Implements Bonmin::TNLPSolver.
virtual void Bonmin::BqpdSolver::enableWarmStart | ( | ) | [inline, virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
Definition at line 109 of file BonBqpdSolver.hpp.
virtual void Bonmin::BqpdSolver::disableWarmStart | ( | ) | [inline, virtual] |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
Definition at line 112 of file BonBqpdSolver.hpp.
virtual Ipopt::SmartPtr<TNLPSolver> Bonmin::BqpdSolver::clone | ( | ) | [virtual] |
Virtual copy constructor.
Implements Bonmin::TNLPSolver.
virtual double Bonmin::BqpdSolver::CPUTime | ( | ) | [inline, virtual] |
Get the CpuTime of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 121 of file BonBqpdSolver.hpp.
References cached_.
virtual int Bonmin::BqpdSolver::IterationCount | ( | ) | [inline, virtual] |
Get the iteration count of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 127 of file BonBqpdSolver.hpp.
virtual void Bonmin::BqpdSolver::setOutputToDefault | ( | ) | [inline, virtual] |
turn off all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 134 of file BonBqpdSolver.hpp.
References cached_, and default_log_level_.
virtual void Bonmin::BqpdSolver::forceSolverOutput | ( | int | log_level | ) | [inline, virtual] |
turn on all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 139 of file BonBqpdSolver.hpp.
References cached_.
virtual std::string& Bonmin::BqpdSolver::solverName | ( | ) | [inline, virtual] |
Get the solver name.
Implements Bonmin::TNLPSolver.
Definition at line 145 of file BonBqpdSolver.hpp.
References solverName_.
void Bonmin::BqpdSolver::registerOptions | ( | ) | [inline] |
Register this solver options into passed roptions.
Definition at line 151 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 157 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 23 of file BonBqpdSolver.hpp.
double Bonmin::BqpdSolver::fillin_factor_ [private] |
Fill-in factor for QP factorization.
Definition at line 196 of file BonBqpdSolver.hpp.
int Bonmin::BqpdSolver::kmax_ipt_ [private] |
Fill-in factor for QP factorization.
Definition at line 197 of file BonBqpdSolver.hpp.
int Bonmin::BqpdSolver::mlp_ipt_ [private] |
Fill-in factor for QP factorization.
Definition at line 198 of file BonBqpdSolver.hpp.
int Bonmin::BqpdSolver::m0de_ [static, private] |
Hot start m0de.
Definition at line 200 of file BonBqpdSolver.hpp.
int Bonmin::BqpdSolver::reinit_freq_ [static, private] |
Hot start reinitialization fequency.
Definition at line 202 of file BonBqpdSolver.hpp.
Ipopt::SmartPtr<cachedInfo> Bonmin::BqpdSolver::cached_ [private] |
Cached information on last problem optimized for reoptimization.
Definition at line 406 of file BonBqpdSolver.hpp.
Referenced by CPUTime(), forceSolverOutput(), markHotStart(), and setOutputToDefault().
std::string Bonmin::BqpdSolver::solverName_ [static, private] |
To record default log level.
Definition at line 409 of file BonBqpdSolver.hpp.
Referenced by solverName().
int Bonmin::BqpdSolver::default_log_level_ [private] |
To record default log level.
Reimplemented from Bonmin::TNLPSolver.
Definition at line 412 of file BonBqpdSolver.hpp.
Referenced by setOutputToDefault().