Learn R Programming

raptr (version 1.0.1)

logging.file: Log file

Description

This function returns the Gurobi log file (*.log) associated with solving an optimization problem.

Usage

logging.file(x, y)

# S3 method for RapResults logging.file(x, y = 0)

# S3 method for RapSolved logging.file(x, y = 0)

Arguments

x

RapResults() or RapSolved() object.

y

Available inputs include: NULL to return all values, integer number specifying the solution for which the log file should be returned, and 0 to return log file for the best solution.

See Also

RapResults(), RapSolved().

Examples

Run this code
if (FALSE) {
# load data
data(sim_rs)

# log file for the best solution
cat(logging.file(sim_rs, 0))

# log file for the second solution
cat(logging.file(sim_rs, 2))

# log files for all solutions
cat(logging.file(sim_rs, NULL))
}

Run the code above in your browser using DataLab