docs: public static Optimizer<DifferentiableFunction> getRegularizedOptimizer(final Optimizer<DifferentiableFunction> opt,
              final double l1Lambda, final double l2Lambda) {
          if (l1Lambda == 0 && l2Lambda == 0) {
              return opt;
          }
          return new Optimizer<DifferentiableFunction>() {
              
              @Override
              public boolean minimize(DifferentiableFunction objective, IntDoubleVector point) {
                  DifferentiableFunction fn = getRegularizedFn(objective, false, l1Lambda, l2Lambda);
                  return opt.minimize(fn, point);
              }
              
          };
      }