Suppress the following console output

2 Ansichten (letzte 30 Tage)
Tyler Hazleton
Tyler Hazleton am 26 Feb. 2018
Beantwortet: Walter Roberson am 26 Feb. 2018
My friend and I are making an SVM on our own (not using ML toolbox), and getting the following console output from a function we're using
"Minimum found that satisfies the constraints.
Optimization completed because the objective function is non-decreasing in
feasible directions, to within the default value of the optimality tolerance,
and constraints are satisfied to within the default value of the constraint tolerance.
<stopping criteria details>."
How can we suppress this message? I looked at other answers and they don't seem to help us. Thanks!

Antworten (1)

Walter Roberson
Walter Roberson am 26 Feb. 2018
>> fminunc(@(x) x.^2-1, 55)
Local minimum found.
Optimization completed because the size of the gradient is less than
the default value of the optimality tolerance.
<stopping criteria details>
ans =
-6.16516743434659e-07
>> fminunc(@(x) x.^2-1, 55, optimoptions('fminunc','Display','none'))
ans =
-6.16516743434659e-07

Kategorien

Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by