R version of GENetic Optimization Using Derivatives