rtolF, atolF, rtolX, atolX, fmt)
success = uncprb_printsummary(name, nprob, fopt, xopt, gopt, iter, funeval, geval, .. rtolF, atolF, rtolX, atolX, fmt)
a 1-by-1 matrix of strings, the name of the problem or the name of the solver
a 1-by-1 matrix of doubles, integer value, the problem number
a 1-by-1 matrix of doubles, the computed optimum F(X)
a n-by-1 matrix of doubles, the computed optimum X
a n-by-1 matrix of doubles, the computed optimum gradient G(X). If gopt==[], then gopt is not printed.
a 1-by-1 matrix of doubles, integer value, the number of iterations. If iter==[], then iter is not printed.
a 1-by-1 matrix of doubles, integer value, the number of function evaluations
a 1-by-1 matrix of doubles, integer value, the number of gradient evaluations. If geval==[], then geval is not printed.
a 1-by-1 matrix of doubles, positive, a relative tolerance on F
a 1-by-1 matrix of doubles, positive, an absolute tolerance on F
a 1-by-1 matrix of doubles, positive, a relative tolerance on X
a 1-by-1 matrix of doubles, positive, an absolute tolerance on X
a 1-by-1 matrix of strings, the format of the output. Available values are fmt="detailed", "line" or "wiki". If fmt=="detailed", then a detailed message is produced. If fmt=="line", then a one-line message is produced. If fmt=="wiki", then a one-line message is produced, with Wiki formatting.
a 1-by-1 matrix of booleans. success is %t if the optimization is correct both on X and on F
Prints a summary of an optimization.
The success of the optimization is based on the uncprb_computestatus function.
// Make optim optimize the problem #1 nprob = 1; [n,m,x0]=uncprb_getinitf(nprob) uncprb_optiminit(); objfun = list(uncprb_optimfun,nprob,n,m); [fopt,xopt,gopt]=optim(objfun,x0,"gc") funeval = uncprb_optimget(); geval = []; iter = []; rtolX = 1.e-4; atolX = 1.e-10; rtolF = 1.e-4; atolF = 1.e-10; // // Format "detailed" success = uncprb_printsummary("optim/UNC/gc", nprob, fopt, xopt, gopt, iter, funeval, geval, .. rtolF, atolF, rtolX, atolX, "detailed") // // Format "line" success = uncprb_printsummary("optim/UNC/gc", nprob, fopt, xopt, gopt, iter, funeval, geval, .. rtolF, atolF, rtolX, atolX, "line") // // Format "wiki" success = uncprb_printsummary("optim/UNC/gc", nprob, fopt, xopt, gopt, iter, funeval, geval, .. rtolF, atolF, rtolX, atolX, "wiki") | ![]() | ![]() |