Abstract class for a local optimizer. More...
#include <opt.h>


Public Member Functions | |
| LocOpt (int n, Pointer< ostream > out_solver_p_=out_out_p, Pointer< ostream > out_solver_log_p_=out_log_p) | |
| virtual | ~LocOpt () |
| virtual double | time () |
| Gives the time, needed to solve the problem. | |
| virtual void | reinit () |
| virtual dvector | get_lag_multipliers ()=0 |
Static Public Member Functions | |
| static bool | nlp_solver_available () |
| static Pointer< LocOpt > | get_solver (const Pointer< MinlpProblem > prob, Pointer< Param > param, char *param_prefix=NULL, Pointer< ostream > out_solver_p_=out_out_p, Pointer< ostream > out_solver_log_p_=out_log_p) |
| Gives a local optimizer, if available. | |
| static Pointer< LocOpt > | get_lp_solver (const Pointer< MinlpProblem > prob, Pointer< Param > param, char *param_prefix=NULL, Pointer< ostream > out_solver_p_=out_out_p, Pointer< ostream > out_solver_log_p_=out_log_p) |
| Gives a LP solver, if available. | |
| static Pointer< LocOpt > | get_solver_origprob (const Pointer< MinlpProblem > prob, Pointer< Param > param, char *param_prefix=NULL, Pointer< ostream > out_solver_p_=out_out_p, Pointer< ostream > out_solver_log_p_=out_log_p) |
| Gives a local optimizer for the original problem, if available. | |
Protected Attributes | |
| Timer | timer |
Abstract class for a local optimizer.
A normal Solver with an additional method to get the Lagrangian multipliers.
Definition at line 281 of file opt.h.
| static bool LocOpt::nlp_solver_available | ( | ) | [static] |
| static Pointer<LocOpt> LocOpt::get_solver | ( | const Pointer< MinlpProblem > | prob, | |
| Pointer< Param > | param, | |||
| char * | param_prefix = NULL, |
|||
| Pointer< ostream > | out_solver_p_ = out_out_p, |
|||
| Pointer< ostream > | out_solver_log_p_ = out_log_p | |||
| ) | [static] |
Gives a local optimizer, if available.
| static Pointer<LocOpt> LocOpt::get_lp_solver | ( | const Pointer< MinlpProblem > | prob, | |
| Pointer< Param > | param, | |||
| char * | param_prefix = NULL, |
|||
| Pointer< ostream > | out_solver_p_ = out_out_p, |
|||
| Pointer< ostream > | out_solver_log_p_ = out_log_p | |||
| ) | [static] |
Gives a LP solver, if available.
| static Pointer<LocOpt> LocOpt::get_solver_origprob | ( | const Pointer< MinlpProblem > | prob, | |
| Pointer< Param > | param, | |||
| char * | param_prefix = NULL, |
|||
| Pointer< ostream > | out_solver_p_ = out_out_p, |
|||
| Pointer< ostream > | out_solver_log_p_ = out_log_p | |||
| ) | [static] |
Gives a local optimizer for the original problem, if available.
The given problem should be the original one, only the variable bounds can be different.
| virtual double LocOpt::time | ( | ) | [inline, virtual] |
| virtual void LocOpt::reinit | ( | ) | [inline, virtual] |
| virtual dvector LocOpt::get_lag_multipliers | ( | ) | [pure virtual] |
Implemented in gamsLocOpt, IpOpt, and LPSolver.
Timer LocOpt::timer [protected] |
1.6.1