optimbase.log: Optimbase Log functions

Description Usage Arguments Value Author(s)

View source: R/optimbase.log.R

Description

optimbase.logstartup initializes logging if verbose logging is enabled (via the verbose element of the optimization object). If the logging has already been initialized, it generates an error and stops the optimization.

If verbose logging is enabled, optimbase.log prints the given message in the console. If verbose logging is disabled, it does nothing. If the logfile element of the optimization object has been set, it writes the message into the file instead of writing to the console.

optimbase.stoplog prints the given stopping rule message if verbose termination is enabled (via the verbosetermination element of the optimization object). If verbose termination is disabled, it does nothing.

optimbase.logshutdown turns verbose logging off.

Usage

1
2
3
4

Arguments

this

The optimization object.

msg

The message to print.

Value

All functions return the unchanged optimization object.

Author(s)

Author of Scilab optimbase module: Michael Baudin (INRIA - Digiteo)

Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)


optimbase documentation built on Jan. 27, 2022, 1:14 a.m.