Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verbose option #1042

Closed
jparedes-m opened this issue Jun 12, 2023 · 1 comment
Closed

Verbose option #1042

jparedes-m opened this issue Jun 12, 2023 · 1 comment

Comments

@jparedes-m
Copy link

Hello, I started with the optimization today and it gets the work done.
However, my function already produces some text and I don't want to get the 'status' text

(The text output from my function goes here)
 * Status: success

 * Candidate solution
    Final objective value:     1.840863e-04

 * Found with
    Algorithm:     Nelder-Mead

 * Convergence measures
    √(Σ(yᵢ-ȳ)²)/n ≤ 1.0e-12

 * Work counters
    Seconds run:   28  (vs limit Inf)
    Iterations:    339
    f(x) calls:    639

I think this is on the form results displayed, but I'd love to know if there's an option to turn this display off (like verbose = false) or something like that.

@pkofod
Copy link
Member

pkofod commented Jun 12, 2023

You can append a line with ; to suppress the show methods in Julia, it's not really an Optim.jl issue, all Julia objects have show methods (and if not their own then fallbacks). Hope you can get your desired result.

@pkofod pkofod closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants