#include <gams.h>
Inheritance diagram for gamsLocOpt:
Public Member Functions | |
gamsLocOpt (Pointer< MinlpProblem > prob_, Pointer< Param > param_, Pointer< ostream > out_solver_p_=out_out_p, Pointer< ostream > out_solver_log_p_=out_log_p) | |
~gamsLocOpt () | |
int | solve () |
Solves the problem. | |
int | solve (dvector &start) |
Solves the problem for a starting point. | |
dvector | get_lag_multipliers () |
Private Member Functions | |
int | do_preprocessing (const dvector &start) |
Calls a preprocessing program. | |
Private Attributes | |
Pointer< Param > | param |
Pointer< MinlpProblem > | prob |
bool | second_run |
dvector | lower_discr |
dvector | upper_discr |
dvector | lower |
dvector | upper |
dvector | con_val |
dvector | duals_con |
dvector | duals_var |
ivector | basind_con |
ivector | basind_var |
int | model_status |
int | solver_status |
int | recent_calls |
Pointer< char > | tmpsolfn |
char ** | args |
int | optfile |
int | subsolver |
Pointer< char > | solvername |
void * | iolibsave |
char ** | preprocessargs |
Skript name for a preprocessing step. | |
bool | preprocess_keepgdx |
bool | write_solcand |
bool | write_startpoint |
double | rd |
A random value to identify points, we process. | |
LocOptPreprocessing * | preprocessing |
Static Private Attributes | |
static void * | preprocess_handle |
Friends | |
class | gams |
GAMS | write solution candidates options $ 0$ default 0 level 2 If 0, no solution candidates are written to gdx files. If greater 0, every solution candidate is written to a file solcand$<$Value$>$$<$Randomnumber$>$.gdx, where Value is the objective value. If more files were written than the number, which is specified by this parameter, the file with the worst solution candidate is removed again. | |
GAMS | write startpoint options $ 0$ default 0 level 2 If greater 0, every starting point of a local search is written to a file startpoint$<$Randomnumber$>$.gdx. | |
GAMS | LocOpt solver options name of GAMS solver default conopt level 2 Name of the GAMS solver to use to solve the original MINLP with fixed binaries. | |
GAMS | LocOpt optionfile options $ 0$ default 0 level 2 The number of the optionalfile for the local optimizer. 0 for no optionfile. | |
GAMS | LocOpt preprocessing options name of a script default none level 2 The library to link which defines some algorithm to do some preprocessing for a given startpoint before giving it to the local optimizer. |
Definition at line 277 of file gams.h.
gamsLocOpt::gamsLocOpt | ( | Pointer< MinlpProblem > | prob_, | |
Pointer< Param > | param_, | |||
Pointer< ostream > | out_solver_p_ = out_out_p , |
|||
Pointer< ostream > | out_solver_log_p_ = out_log_p | |||
) |
gamsLocOpt::~gamsLocOpt | ( | ) |
int gamsLocOpt::do_preprocessing | ( | const dvector & | start | ) | [private] |
Calls a preprocessing program.
The improved point will be written to sol_point.
int gamsLocOpt::solve | ( | ) | [inline, virtual] |
Solves the problem.
Abstract.
Implements Solver.
Definition at line 332 of file gams.h.
References prob.
int gamsLocOpt::solve | ( | dvector & | start | ) | [virtual] |
Pointer<Param> gamsLocOpt::param [private] |
Pointer<MinlpProblem> gamsLocOpt::prob [private] |
bool gamsLocOpt::second_run [private] |
dvector gamsLocOpt::lower_discr [private] |
dvector gamsLocOpt::upper_discr [private] |
dvector gamsLocOpt::lower [private] |
dvector gamsLocOpt::upper [private] |
dvector gamsLocOpt::con_val [private] |
dvector gamsLocOpt::duals_con [private] |
dvector gamsLocOpt::duals_var [private] |
ivector gamsLocOpt::basind_con [private] |
ivector gamsLocOpt::basind_var [private] |
int gamsLocOpt::model_status [private] |
int gamsLocOpt::solver_status [private] |
int gamsLocOpt::recent_calls [private] |
Pointer<char> gamsLocOpt::tmpsolfn [private] |
char** gamsLocOpt::args [private] |
int gamsLocOpt::optfile [private] |
int gamsLocOpt::subsolver [private] |
Pointer<char> gamsLocOpt::solvername [private] |
void* gamsLocOpt::iolibsave [private] |
char** gamsLocOpt::preprocessargs [private] |
bool gamsLocOpt::preprocess_keepgdx [private] |
bool gamsLocOpt::write_solcand [private] |
bool gamsLocOpt::write_startpoint [private] |
double gamsLocOpt::rd [private] |
void* gamsLocOpt::preprocess_handle [static, private] |
LocOptPreprocessing* gamsLocOpt::preprocessing [private] |