logging.file: Log file

View source: R/generics.R

logging.fileR Documentation

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 class 'RapResults'
logging.file(x, y = 0)

## S3 method for class '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.

Note

The term logging file was used due to collisions with the log function.

See Also

RapResults(), RapSolved().

Examples

## Not run: 
# 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))

## End(Not run)

paleo13/rapr documentation built on Feb. 12, 2024, 3:27 a.m.