scipy/scipy — pull request #108 by dlaxalde (2011-11-11 20:56:32+00:00)
Title: TST: fix and improve optimize/slsqp tests

While working on constrained minimization algorithms, I felt that `slsqp` test suite would benefit from a better coverage and some improvements...

Improve coverage:
- test the second form of constraints (`f_eqcon`, etc.);
- test the use of analytical jacobian for constraints;
- test the use of bounds;
- test some combinations of constraints/bounds;
- test exit status (`imode`).

Fix some tests to make the code and method's name consistent.
- Test 2 `test_unbounded_given` should have been using the analytical
Jacobian but did not and was hence identical to the first one. It uses
the analytical jacobian now.
- `test_bound_*` did not actually use bounds, but equality or inequality
constraints only and `test_bound_equality_inequality_given` does not have
equality constraints nor bounds. Update methods name accordingly.

Style & co.: define constraints functions and derivatives as methods, add
docstrings, PEP8 and other minor changes.