System constraints

Replaces stateConstraint method logic with a list of constraint objects for each DrakeSystem.  These can handled more elegantly (preserving the structure of the constraints, and avoiding function handles) by the optimization classes.  

Taking another crack at finishing and merging this (just had a rough time bringing it back in line w/ master).  

i guess 2 is correct, actually.  (second derivatives are provided, too)

On Oct 5, 2014, at 2:04 PM, Hongkai Dai <notifications@github.com> wrote:

> In solvers/QuadraticConstraint.m:
> 
> > @@ -12,7 +12,7 @@
> >        sizecheck(lb,[1,1]);
> >        sizecheck(ub,[1,1]);
> >        nx = size(Q,1);
> > -      obj = obj@Constraint(lb,ub,nx,2);
> > +      obj = obj@Constraint(lb,ub,nx,inf);
> The last argument should be the grad_level, I think it should be 1 here, meaning first derivatives provided
> 
> —
> Reply to this email directly or view it on GitHub.
>