The largest change of each of the optimization's variables in one sqpopt iteration
(problem%set_max_step), from the limits in physical units (eclipse_opt_max_step_*):
a variable's unscaled value is y*r*xscale (plus its offset), so its limit is
limit/(r*xscale). A variable without a limit gets sqpopt_infinity.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
function step_limits(d)result(lim)type(eclipse_opt_data),intent(in)::dreal(wp),dimension(:),allocatable::lim!! (allocatable: sized by the problem, so not on the stack)integer::i,k,n_full,ccinteger,dimension(:),allocatable::removedreal(wp)::physcall d%mission%define_problem_size(n=n_full,full_problem=.true.)removed=d%mission%removed_columns()allocate(lim(size(d%r)))lim=sqpopt_infinityk=0do i=1,n_fullif(any(removed==i))cyclek=k+1cc=mod(i-1,7)+1select case(cc)case(1);phys=d%mission%eclipse_opt_max_step_epochcase(2:4);phys=d%mission%eclipse_opt_max_step_positioncase default;phys=d%mission%eclipse_opt_max_step_velocityend select if(phys>zero)lim(k)=phys/(d%r(k)*d%mission%xscale(k))end do end function step_limits