fix missing solvers

Fix #349 
But the if(checkDependency('snopt')) should have nargout = 1 , too.

- Russ


> On Aug 28, 2014, at 7:38 PM, Hongkai Dai <notifications@github.com> wrote:
> 
> In solvers/NonlinearProgram.m:
> 
> > @@ -878,10 +878,12 @@
> >      function [x,objval,exitflag,execution_time] = compareSolvers(obj,x0,solvers)
> >        if nargin<3
> >          solvers = {'fmincon'};
> > -        if(checkDependency('snopt'))
> > +        snopt_enabled = checkDependency('snopt');
> > +        if(snopt_enabled)
> The error of 'snopt not found' is only thrown if there is no lhs for checkDependency function. So snopt_enabled = checkDependency('snopt') will silent the error in compareSolvers.
> …
> —
> Reply to this email directly or view it on GitHub.