[SciPy-dev] connecting tnc 1.3

Stefan van der Walt stefan at sun.ac.za
Wed Jul 25 10:28:01 EDT 2007


Hi Dmitrey

On Tue, Jul 24, 2007 at 11:38:31AM +0300, dmitrey wrote:
> hi all,
> So now I'm trying to make all the tests for tnc 1.3 running ok.
> But there is a problem encountered:
> 
> here's a code from tnc.py, lines 210-213:
> 
>     for i in range(n):
>         l,u = bounds[i]
>         if l is None:
>             low[i] = -HUGE_VAL
> 
> 
> So if bounds are for example ([-inf, -1.5], None), as it is written in 
> test1fg(x), it yields error "None object is not iterable".
> (because it tries to get
> lb, ub = None
> )

You may want to replace all instances of HUGE_VAL with inf, as was
done in

http://projects.scipy.org/scipy/scipy/changeset/3037

That changeset also updated the documentation and refactored the tests.

Regards
Stéfan



More information about the SciPy-Dev mailing list