bfgsEnetMgSEM function

smoothly approximated elastic net