Updated code for new version of scalaopt
Updated code for new version of scalaopt