Checking if the solver is being used as a subsolver like so i odd.
|
is_subsolver = reg_nlp.h isa ShiftedProximableFunction # case TRDH is used as a subsolver |
It would be easier just to add a kwarg to the solver constructor that is set to false and set it to true when constructing it with other solvers. The user would never need to change the value of this kwarg.
Checking if the solver is being used as a subsolver like so i odd.
RegularizedOptimization.jl/src/TRDH_alg.jl
Line 49 in 8b7a6b7
It would be easier just to add a kwarg to the solver constructor that is set to false and set it to true when constructing it with other solvers. The user would never need to change the value of this kwarg.