DualSolver Class Reference
Abstract base class for an optimizer for solving a dual problem of the form: max { obj(x) | x_i>=lower_bound_i }.
More...
#include <opt.h>
List of all members.
Detailed Description
Abstract base class for an optimizer for solving a dual problem of the form: max { obj(x) | x_i>=lower_bound_i }.
Definition at line 148 of file opt.h.
Constructor & Destructor Documentation
Constructor for a function and lower bounds.
Sets threshold to INFINITY.
- Parameters:
-
| f | The function to maximize. |
| lower_bound_ | The lower bounds of the dual points. |
| threshold_ | Threshold. |
| out_solver_p_ | A Pointer to an ostream to print solver-relevant information to. |
| out_solver_log_p_ | A Pointer to an ostream to print solver-relevant logging-information to. |
Definition at line 247 of file opt.h.
virtual DualSolver::~DualSolver |
( |
|
) |
[inline, virtual] |
Member Function Documentation
void DualSolver::do_log |
( |
|
) |
[protected] |
int DualSolver::check |
( |
double |
val |
) |
[protected] |
Checks the actual iteration.
Calls do_log().
- Parameters:
-
| val | The last value of the dual function. |
- Returns:
- 0, if the solver should continue
-
100, if threshold is reached
-
10, if convergence rate is too low
- See also:
- do_log()
double DualSolver::rel_improvement1 |
( |
|
) |
[inline] |
double DualSolver::rel_improvement2 |
( |
|
) |
[inline] |
double DualSolver::rel_improvement_max |
( |
|
) |
[inline] |
int DualSolver::serious_steps |
( |
|
) |
[inline] |
Member Data Documentation
Is the threshold control enabled ?
Definition at line 152 of file opt.h.
Is the convergence rate control enabled ?
Definition at line 156 of file opt.h.
If conv_rate_cntrl is set and improvement in last minor_iter iterations is less than stopping_rho * rel_imp1, check() breakes the solving process.
Definition at line 159 of file opt.h.
The number of minor iterations for the convergence rate control.
Definition at line 162 of file opt.h.
The value in the last major iteration.
Definition at line 165 of file opt.h.
The value in the last iteration.
Definition at line 168 of file opt.h.
The value in the first iteration.
Definition at line 171 of file opt.h.
First relative improvement.
Definition at line 174 of file opt.h.
Counter for the number of iterations with improvements (serious steps).
Definition at line 177 of file opt.h.
Parameters.
Definition at line 182 of file opt.h.
Dual function.
Definition at line 186 of file opt.h.
Last relative improvement, if conv_rate_cntrl is enabled.
Definition at line 210 of file opt.h.
Threshold for the dual value.
Definition at line 214 of file opt.h.
Lower bounds of the dual points.
Definition at line 218 of file opt.h.
To log the values of the dual function.
Definition at line 222 of file opt.h.
To log the points of the dual problem.
Definition at line 225 of file opt.h.
To log the points of the original problem.
Definition at line 228 of file opt.h.
The log frequency.
Indicates, that every log_frequency'th point should be stored. 0 (default) for no logging.
Definition at line 233 of file opt.h.
Should we add the primal points to the sample set.
Default is true.
Definition at line 237 of file opt.h.
The documentation for this class was generated from the following file: