Bonmin 1.8.9
|
#include <BonBqpdSolver.hpp>
Classes | |
class | UnsolvedBqpdError |
Public Types | |
typedef ipfint | fint |
Fortran type for integer used in filter. | |
typedef double | real |
Fortran type for double.used in filter. | |
![]() | |
enum | ReturnStatus { iterationLimit = -3 , timeLimit = 5 , doesNotConverge = -8 , computationError = -2 , notEnoughFreedom = -1 , illDefinedProblem = -4 , illegalOption =-5 , externalException =-6 , exception =-7 , solvedOptimal = 1 , solvedOptimalTol =2 , provenInfeasible =3 , unbounded = 4 , numReturnCodes } |
Standard return statuses for a solver. More... | |
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) | |
![]() | |
TNLPSolver () | |
default Constructor | |
TNLPSolver (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions, Ipopt::SmartPtr< Ipopt::OptionsList > options, Ipopt::SmartPtr< Ipopt::Journalist > journalist, const std::string &prefix) | |
Constructor with options initialization. | |
virtual | ~TNLPSolver () |
Virtual destructor. | |
Ipopt::SmartPtr< Ipopt::Journalist > | journalist () |
Get a pointer to a journalist. | |
Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions () |
Get a pointer to RegisteredOptions (generally used to add new ones) | |
Ipopt::SmartPtr< const Ipopt::OptionsList > | options () const |
Get the options (for getting their values). | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options () |
Get the options (for getting and setting their values). | |
const char * | prefix () |
Get the prefix. | |
bool | isRecoverable (ReturnStatus &r) |
Say if an optimization status for a problem which failed is recoverable (problem may be solvable). | |
void | setup_global_time_limit (double time_limit) |
Setup for a global time limit for solver. | |
bool | isError (ReturnStatus &r) |
Say if return status is an error. | |
![]() | |
ReferencedObject () | |
virtual | ~ReferencedObject () |
Index | ReferenceCount () const |
void | AddRef (const Referencer *referencer) const |
void | ReleaseRef (const Referencer *referencer) const |
Friends | |
class | FilterSolver |
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 |
virtual bool | warmStartIsValid (const CoinWarmStart *ws) const |
Check that warm start object is valid. | |
virtual void | enableWarmStart () |
Enable the warm start options in the solver. | |
virtual void | disableWarmStart () |
Disable the warm start options in the solver. | |
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). | |
static void | registerOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register this solver options into passed roptions. | |
Additional Inherited Members | |
![]() | |
static void | RegisterOptions (Ipopt::SmartPtr< Bonmin::RegisteredOptions > roptions) |
Register this solver options into passed roptions. | |
![]() | |
bool | zeroDimension (const Ipopt::SmartPtr< Ipopt::TNLP > &tnlp, ReturnStatus &optimization_status) |
Determine if problem is of dimension zero and if it is check if solution is feasible. | |
void | initializeOptionsAndJournalist () |
Initializes options and journalist. | |
TNLPSolver (const TNLPSolver &other) | |
Copy Constructor. | |
![]() | |
Ipopt::SmartPtr< Ipopt::Journalist > | journalist_ |
Storage of Journalist for output. | |
Ipopt::SmartPtr< Ipopt::OptionsList > | options_ |
List of Options. | |
Ipopt::SmartPtr< Bonmin::RegisteredOptions > | roptions_ |
Registered Options. | |
std::string | prefix_ |
Prefix to use for reading bonmin's options. | |
double | start_time_ |
Global start time. | |
double | time_limit_ |
Global time limit. | |
int | default_log_level_ |
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 |
destructor
|
inlinevirtual |
Implements Bonmin::TNLPSolver.
Definition at line 51 of file BonBqpdSolver.hpp.
|
virtual |
Initialize the TNLPSolver (read options from params_file)
Implements Bonmin::TNLPSolver.
|
virtual |
Initialize the TNLPSolver (read options from istream is)
Implements Bonmin::TNLPSolver.
|
virtual |
Solves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
|
virtual |
Resolves a problem expresses as a TNLP.
Implements Bonmin::TNLPSolver.
|
virtual |
Set the warm start in the solver.
Implements Bonmin::TNLPSolver.
|
inlinevirtual |
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.
|
inlinevirtual |
Get warm start used in last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 97 of file BonBqpdSolver.hpp.
|
virtual |
Get the warm start form the solver.
Implements Bonmin::TNLPSolver.
|
virtual |
Implements Bonmin::TNLPSolver.
|
virtual |
Check that warm start object is valid.
Implements Bonmin::TNLPSolver.
|
inlinevirtual |
Enable the warm start options in the solver.
Implements Bonmin::TNLPSolver.
Definition at line 109 of file BonBqpdSolver.hpp.
|
inlinevirtual |
Disable the warm start options in the solver.
Implements Bonmin::TNLPSolver.
Definition at line 112 of file BonBqpdSolver.hpp.
|
virtual |
Virtual copy constructor.
Implements Bonmin::TNLPSolver.
|
inlinevirtual |
Get the CpuTime of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 121 of file BonBqpdSolver.hpp.
|
inlinevirtual |
Get the iteration count of the last optimization.
Implements Bonmin::TNLPSolver.
Definition at line 127 of file BonBqpdSolver.hpp.
|
inlinevirtual |
turn off all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 134 of file BonBqpdSolver.hpp.
|
inlinevirtual |
turn on all output from the solver
Implements Bonmin::TNLPSolver.
Definition at line 139 of file BonBqpdSolver.hpp.
|
inlinevirtual |
Get the solver name.
Implements Bonmin::TNLPSolver.
Definition at line 145 of file BonBqpdSolver.hpp.
|
inline |
Register this solver options into passed roptions.
Definition at line 151 of file BonBqpdSolver.hpp.
|
inlinevirtual |
Error code (solver specific).
Implements Bonmin::TNLPSolver.
Definition at line 157 of file BonBqpdSolver.hpp.
|
static |
Register this solver options into passed roptions.
|
friend |
Definition at line 23 of file BonBqpdSolver.hpp.