gamsLocOpt Class Reference

Calls a GAMS-solver to solve the original problem with different bounds, fixed variables or another starting point. More...

#include <gams.h>

Inheritance diagram for gamsLocOpt:
Inheritance graph
[legend]
Collaboration diagram for gamsLocOpt:
Collaboration graph
[legend]

List of all members.

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< Paramparam
Pointer< MinlpProblemprob
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.
LocOptPreprocessingpreprocessing

Static Private Attributes

static void * preprocess_handle

Friends

class gams

Detailed Description

Calls a GAMS-solver to solve the original problem with different bounds, fixed variables or another starting point.

Parameters:
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 274 of file gams.h.


Constructor & Destructor Documentation

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 (  ) 

Member Function Documentation

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.

Returns:
A status code: 0, if all went right.
See also:
solve(dvector&)

Implements Solver.

Definition at line 329 of file gams.h.

int gamsLocOpt::solve ( dvector x  )  [virtual]

Solves the problem for a starting point.

Sets sol_point to x. Calls solve().

Parameters:
x The dvector to start the solver with.
See also:
solve()

Reimplemented from Solver.

dvector gamsLocOpt::get_lag_multipliers (  )  [virtual]

Implements LocOpt.


Friends And Related Function Documentation

friend class gams [friend]

Definition at line 275 of file gams.h.


Member Data Documentation

Definition at line 277 of file gams.h.

Definition at line 278 of file gams.h.

bool gamsLocOpt::second_run [private]

Definition at line 279 of file gams.h.

Definition at line 281 of file gams.h.

Definition at line 282 of file gams.h.

Definition at line 283 of file gams.h.

Definition at line 284 of file gams.h.

Definition at line 286 of file gams.h.

Definition at line 287 of file gams.h.

Definition at line 288 of file gams.h.

Definition at line 289 of file gams.h.

Definition at line 290 of file gams.h.

int gamsLocOpt::model_status [private]

Definition at line 292 of file gams.h.

Definition at line 292 of file gams.h.

int gamsLocOpt::recent_calls [private]

Definition at line 294 of file gams.h.

Pointer<char> gamsLocOpt::tmpsolfn [private]

Definition at line 295 of file gams.h.

char** gamsLocOpt::args [private]

Definition at line 296 of file gams.h.

int gamsLocOpt::optfile [private]

Definition at line 298 of file gams.h.

int gamsLocOpt::subsolver [private]

Definition at line 299 of file gams.h.

Definition at line 300 of file gams.h.

void* gamsLocOpt::iolibsave [private]

Definition at line 301 of file gams.h.

char** gamsLocOpt::preprocessargs [private]

Skript name for a preprocessing step.

Definition at line 305 of file gams.h.

Definition at line 306 of file gams.h.

bool gamsLocOpt::write_solcand [private]

Definition at line 308 of file gams.h.

Definition at line 309 of file gams.h.

double gamsLocOpt::rd [private]

A random value to identify points, we process.

Definition at line 313 of file gams.h.

void* gamsLocOpt::preprocess_handle [static, private]

Definition at line 320 of file gams.h.

Definition at line 322 of file gams.h.


The documentation for this class was generated from the following file:

Generated on 10 Mar 2013 for LaGO by  doxygen 1.6.1