Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

abelsiqueira
Copy link
Member

No description provided.

@@ -47,7 +47,7 @@ function ratio(nlp :: AbstractNLPModel, f :: Float64, f_trial :: Float64, Δm ::
pred < 0 || throw(TrustRegionException(@sprintf("Nonnegative predicted reduction: pred = %8.1e", pred)))

ared = f_trial - f + max(1.0, absf) * 10.0 * ϵ
if (Δm < 1.0e+4 * ϵ) || (abs(ared) < 1.0e+4 * ϵ * absf)
if (abs(Δm) < 1.0e+4 * ϵ) || (abs(ared) < 1.0e+4 * ϵ * absf)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought this was trying to check for small delta m, because delta m is negative.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think you're right.

@dpo
Copy link
Member

dpo commented Oct 18, 2016

Why are we getting a build error now?
https://travis-ci.org/JuliaSmoothOptimizers/Optimize.jl/jobs/168504808#L261

@abelsiqueira
Copy link
Member Author

I think Pkg.installed is not throwing errors anymore, but returning nothing. Cheking now.

@abelsiqueira
Copy link
Member Author

Confirmed.

@dpo
Copy link
Member

dpo commented Oct 18, 2016

In what version? I'm running 0.5.0 and it throws an error.

@abelsiqueira
Copy link
Member Author

That's the strangest thing. On my versions, it also throws, but the Travis version doesn't.

@dpo
Copy link
Member

dpo commented Oct 18, 2016

Travis uses 0.4.7 and 0.6. At least 0.4.7 should throw and error I think. It used to.

@abelsiqueira
Copy link
Member Author

Tested it. For "NLPModels" and "BenchmarkProfiles" it returned nothing. For the other packages it threw an error.

@abelsiqueira
Copy link
Member Author

Okay, so I think I understand it now. Packages that are on METADATA return nothing, and packages not on METADATA throw an error. Packages that are installed without METADATA return v"0.0.0-".

@coveralls
Copy link

coveralls commented Oct 18, 2016

Coverage Status

Coverage increased (+1.3%) to 70.667% when pulling 39987ec on abelsiqueira:fix/absdm into b616469 on JuliaSmoothOptimizers:master.

@dpo
Copy link
Member

dpo commented Oct 18, 2016

Makes sense.

@abelsiqueira
Copy link
Member Author

Linux-0.6 is failing with a unresolved issue: JuliaLang/julia#18871, but everything else works.

@dpo
Copy link
Member

dpo commented Oct 18, 2016

Why is it ok on osx?

@abelsiqueira
Copy link
Member Author

Really no idea. Nobody picked it up yet.

@abelsiqueira
Copy link
Member Author

Maybe after JuliaLang/julia#18997, it'll work.

@dpo dpo merged commit e182fe5 into JuliaSmoothOptimizers:master Oct 18, 2016
@dpo
Copy link
Member

dpo commented Oct 18, 2016

Thanks!

@abelsiqueira abelsiqueira deleted the fix/absdm branch October 19, 2016 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants