(git:c5411e0)
Loading...
Searching...
No Matches
cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type Type Reference

info for the optimizer (see the description of this module) More...

Data Fields

character(len=60) task = ""
 
character(len=60) csave = ""
 
logical, dimension(4) lsave = .FALSE.
 
integer m = 0
 
integer print_every = 0
 
integer master = 0
 
integer max_f_per_iter = 0
 
integer status = 0
 
integer n_iter = 0
 
integer, dimension(:), pointer kind_of_bound => NULL()
 
integer, dimension(:), pointer i_work_array => NULL()
 
integer, dimension(:), pointer isave => NULL()
 
real(kind=dp) f = 0.0_dp
 
real(kind=dp) wanted_relative_f_delta = 0.0_dp
 
real(kind=dp) wanted_projected_gradient = 0.0_dp
 
real(kind=dp) last_f = 0.0_dp
 
real(kind=dp) projected_gradient = 0.0_dp
 
real(kind=dp) eold = 0.0_dp
 
real(kind=dp) emin = 0.0_dp
 
real(kind=dp) trust_radius = 0.0_dp
 
real(kind=dp), dimension(:), pointer x => NULL()
 
real(kind=dp), dimension(:), pointer lower_bound => NULL()
 
real(kind=dp), dimension(:), pointer upper_bound => NULL()
 
real(kind=dp), dimension(:), pointer gradient => NULL()
 
real(kind=dp), dimension(:), pointer dsave => NULL()
 
real(kind=dp), dimension(:), pointer work_array => NULL()
 
type(mp_para_env_type), pointer para_env => NULL()
 
type(gopt_f_type), pointer obj_funct => NULL()
 

Detailed Description

info for the optimizer (see the description of this module)

Parameters
taskthe actual task of the optimizer (in the master it is up to date, in case of error also the minions one get updated.
csaveinternal character string used by the lbfgs optimizer, meaningful only in the master
lsavelogical array used by the lbfgs optimizer, updated only in the master On exit with task = 'NEW_X', the following information is available: lsave(1) = .true. the initial x did not satisfy the bounds; lsave(2) = .true. the problem contains bounds; lsave(3) = .true. each variable has upper and lower bounds.
ref_countreference count (see doc/ReferenceCounting.html)
mthe dimension of the subspace used to approximate the second derivative
print_everyevery how many iterations output should be written. if 0 only at end, if print_every<0 never
masterthe pid of the master processor
max_f_per_iterthe maximum number of function evaluations per iteration
status0: just initialized, 1: f g calculation, 2: begin new iteration, 3: ended iteration, 4: normal (converged) exit, 5: abnormal (error) exit, 6: daellocated
n_iterthe actual iteration number
kind_of_boundan array with 0 (no bound), 1 (lower bound), 2 (both bounds), 3 (upper bound), to describe the bounds of every variable
i_work_arrayan integer workarray of dimension 3*n, present only in the master
isaveis an INTEGER working array of dimension 44. On exit with task = 'NEW_X', it contains information that the user may want to access:
isave(30) = the current iteration number;
isave(34) = the total number of function and gradient evaluations;
isave(36) = the number of function value or gradient evaluations in the current iteration;
isave(38) = the number of free variables in the current iteration;
isave(39) = the number of active constraints at the current iteration;
fthe actual best value of the object function
wanted_relative_f_deltathe wanted relative error on f (to be multiplied by epsilon), 0.0 -> no check
wanted_projected_gradientthe wanted error on the projected gradient (hessian times the gradient), 0.0 -> no check
last_fthe value of f in the last iteration
projected_gradientthe value of the sup norm of the projected gradient
xthe actual evaluation point (best one if converged or stopped)
lower_boundthe lower bounds
upper_boundthe upper bounds
gradientthe actual gradient
dsaveinfo date for lbfgs (master only)
work_arraya work array for lbfgs (master only)
para_envthe parallel environment for this optimizer
obj_functthe objective function to be optimized
History
none
Author
Fawzi Mohamed
Version
2.2002

Definition at line 163 of file cp_lbfgs_optimizer_gopt.F.

Field Documentation

◆ task

character(len=60) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::task = ""

Definition at line 164 of file cp_lbfgs_optimizer_gopt.F.

◆ csave

character(len=60) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::csave = ""

Definition at line 165 of file cp_lbfgs_optimizer_gopt.F.

◆ lsave

logical, dimension(4) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::lsave = .FALSE.

Definition at line 166 of file cp_lbfgs_optimizer_gopt.F.

◆ m

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::m = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ print_every

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::print_every = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ master

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::master = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ max_f_per_iter

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::max_f_per_iter = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ status

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::status = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ n_iter

integer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::n_iter = 0

Definition at line 167 of file cp_lbfgs_optimizer_gopt.F.

◆ kind_of_bound

integer, dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::kind_of_bound => NULL()

Definition at line 168 of file cp_lbfgs_optimizer_gopt.F.

◆ i_work_array

integer, dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::i_work_array => NULL()

Definition at line 168 of file cp_lbfgs_optimizer_gopt.F.

◆ isave

integer, dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::isave => NULL()

Definition at line 168 of file cp_lbfgs_optimizer_gopt.F.

◆ f

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::f = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ wanted_relative_f_delta

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::wanted_relative_f_delta = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ wanted_projected_gradient

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::wanted_projected_gradient = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ last_f

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::last_f = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ projected_gradient

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::projected_gradient = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ eold

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::eold = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ emin

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::emin = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ trust_radius

real(kind=dp) cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::trust_radius = 0.0_dp

Definition at line 169 of file cp_lbfgs_optimizer_gopt.F.

◆ x

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::x => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ lower_bound

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::lower_bound => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ upper_bound

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::upper_bound => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ gradient

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::gradient => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ dsave

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::dsave => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ work_array

real(kind=dp), dimension(:), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::work_array => NULL()

Definition at line 171 of file cp_lbfgs_optimizer_gopt.F.

◆ para_env

type(mp_para_env_type), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::para_env => NULL()

Definition at line 173 of file cp_lbfgs_optimizer_gopt.F.

◆ obj_funct

type(gopt_f_type), pointer cp_lbfgs_optimizer_gopt::cp_lbfgs_opt_gopt_type::obj_funct => NULL()

Definition at line 174 of file cp_lbfgs_optimizer_gopt.F.


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