classdef OD_options
    % options for the computation of optimal design using OD_computing.m
    properties
        alpha=1.15                   % time step updating dilation factor
        beta=1.5                     % time step updating contraction factor
        gradient_res_toll=1e-12      % exit when grad f<= gradient_toll
        gradflow_max_iteration=200   % maximum n of gradient flow time steps
        Newton_max_iteration=5       % Newton solver max iteration per time step
        Newton_res_toll=1e-4         % Tollerance for a posteriori stopping criterion
        solver='backslash'           % 'backslash' or 'pcg' for solving Newton lin. sys.
        lin_toll=10^-6               % tollerance for pcg
        lin_maxit=20                 % max it for pcg
        n_restart=5                  % Maximum number of restarts (new time stepsize) per time step
        total_max_iterations=400     % Total max solutions of Newton eq (including restarts)
        tau_min=1e-4                 % minimum time stepsize
        kkt_toll = 1e-12             % residual for distinguish positive weights for kkt cond
        premult=0                    % num of Titterington alg. steps for initial guess
        cutoff=0                     % 1 cancel out small points and weights, 0 does not
        cutoff_toll=1e-6             % relative treshold for cutoff
        final_cutoff=1               % same as above but only at last time step
        final_cutoff_toll=1e-10      % as above
        checkspectrum=0              % 1 for computing some eigenvalues of Hessian of f
        n_eigs=4                     % compute n_eigs smallest eigs
    end
end