Data Fields

VOL_problem Class Reference

This class holds every data for the Volume Algorithm and its solve method must be invoked to solve the problem. More...

#include <VolVolume.h>

Public Member Functions

Constructors and destructor

 VOL_problem ()
 Default constructor.
 VOL_problem (const char *filename)
 Create a a VOL_problem object and read in the parameters from filename.
 ~VOL_problem ()
 Destruct the object.
Method to solve the problem.

int solve (VOL_user_hooks &hooks, const bool use_preset_dual=false)
 Solve the problem using the hooks.
Methods returning final data

int iter () const
 returns the iteration number
double alpha () const
 returns the value of alpha
double lambda () const
 returns the value of lambda

Data Fields

VOL_dvectorcur_u
int iter_
 iteration number
double __pad0
External data (containing the result after solve)

double value
 final lagrangian value (OUTPUT)
VOL_dvector dsol
 final dual solution (INPUT/OUTPUT)
VOL_dvector psol
 final primal solution (OUTPUT)
VOL_dvector viol
 violations (b-Ax) for the relaxed constraints
External data (may be changed by the user before calling solve)

VOL_parms parm
 The parameters controlling the Volume Algorithm (INPUT).
int psize
 length of primal solution (INPUT)
int dsize
 length of dual solution (INPUT)
VOL_dvector dual_lb
 lower bounds for the duals (if 0 length, then filled with -inf) (INPUT)
VOL_dvector dual_ub
 upper bounds for the duals (if 0 length, then filled with +inf) (INPUT)

Detailed Description

This class holds every data for the Volume Algorithm and its solve method must be invoked to solve the problem.

The INPUT fields must be filled out completely before solve is invoked. dsol have to be filled out if and only if the last argument to solve is true.


Constructor & Destructor Documentation

VOL_problem::VOL_problem (  ) 

Default constructor.

VOL_problem::VOL_problem ( const char *  filename  ) 

Create a a VOL_problem object and read in the parameters from filename.

VOL_problem::~VOL_problem (  ) 

Destruct the object.

References parm, and VOL_parms::temp_dualfile.


Member Function Documentation

int VOL_problem::solve ( VOL_user_hooks hooks,
const bool  use_preset_dual = false 
)

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