matthieugomez / LeastSquaresOptim.jl

Dense and Sparse Least Squares Optimization
Other
53 stars 16 forks source link

QR not defined #3

Closed finmod closed 8 years ago

finmod commented 8 years ago

Just discovering LeastSquaresOptim as an alternative to pysparselm. Running the tests, I encounter the following error:

Running tests: FAILED: nonlinearsolvers.jl LoadError: UndefVarError: QR not defined [inlined code] from C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\runtests.jl:13 in anonymous at no file:0 in include at boot.jl:261 in include_from_node1 at loading.jl:320 in include_string at loading.jl:282 in execute_request_0x535c5df2 at C:\Users\Denis.julia\v0.4\IJulia\src\execute_request.jl:183 in eventloop at C:\Users\Denis.julia\v0.4\IJulia\src\IJulia.jl:143 in anonymous at task.jl:447 while loading C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\nonlinearsolvers.jl, in expression starting on line 505 LoadError: LoadError: LoadError: UndefVarError: QR not defined while loading C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\nonlinearsolvers.jl, in expression starting on line 505 while loading C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\runtests.jl, in expression starting on line 7 while loading In[1], in expression starting on line 1

And nonlinearleastsquares.jl:

LoadError: LoadError: MethodError: convert has no method matching convert(::Type{LeastSquaresOptim.Dogleg{Tx1,Tx2,Tx3,Tx4,Ty1,Ty2}}) This may have arisen from a call to the constructor LeastSquaresOptim.Dogleg{Tx1,Tx2,Tx3,Tx4,Ty1,Ty2}(...), since type constructors fall back to convert methods. Closest candidates are: convert{T}(::Type{T}, !Matched::T) LeastSquaresOptim.Dogleg{Tx1,Tx2,Tx3,Tx4,Ty1,Ty2}(, !Matched::Tx1, !Matched::Tx2, !Matched::Tx3, !Matched::Tx4, !Matched::Ty1, !Matched::Ty2) call{T}(::Type{T}, !Matched::Any) while loading C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\nonlinearleastsquares.jl, in expression starting on line 92 while loading In[1], in expression starting on line 1

[inlined code] from C:\Users\Denis\Documents\Finmod\Schumann Bischoff\LeastSquaresOptim.jl-master\test\nonlinearleastsquares.jl:93 in anonymous at no file:0 in include at boot.jl:261 in include_from_node1 at loading.jl:320

More generally, it would be nice to demo the simple example (Rodenbrock) with all the possible combinations of cases: dense, sparse, LM and Dogleg. To compare with pysparseLM then it would be Chol, LM.

Thanks

matthieugomez commented 8 years ago

Hi. Yeah I'll develop the readme. About the tests, they work on travis https://travis-ci.org/matthieugomez/LeastSquaresOptim.jl Can you try Pkg.checkout to make sure you have the latest version?

finmod commented 8 years ago

Thank you for your prompt attention.

Pkg.checkout(“LeastSquaresOptim”) did it even though the output said that it did not do anything.

Runtests.jl answers all my questions about efficiency.

From: Matthieu Gomez [mailto:notifications@github.com] Sent: Tuesday, August 2, 2016 3:42 AM To: matthieugomez/LeastSquaresOptim.jl LeastSquaresOptim.jl@noreply.github.com Cc: finmod denis.richard@dr.com; Author author@noreply.github.com Subject: Re: [matthieugomez/LeastSquaresOptim.jl] QR not defined (#3)

Hi. Yeah I'll develop the readme. About the tests, they work on travis https://travis-ci.org/matthieugomez/LeastSquaresOptim.jl Can you try Pkg.checkout to make sure you have the latest version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/matthieugomez/LeastSquaresOptim.jl/issues/3#issuecomment-236767499 , or mute the thread https://github.com/notifications/unsubscribe-auth/AMHyIi9e8zKguQDmtAYfOE8Q4sFPt8ehks5qbqBsgaJpZM4JZ_N4 . https://github.com/notifications/beacon/AMHyIpDFS6rnXknTYUIYrT9kV_Cij9Wcks5qbqBsgaJpZM4JZ_N4.gif