Learn R Programming

optimx (version 2012.04.01)

optansout: Output tool for answers from optimx

Description

The optimx general-purpose optimization wrapper function that calls other R tools for optimization, including the existing optim() function creates a data frame of results. optansout displays this data frame and optionally saves it in text form to a file. The parameter vectors, which may be very long, are summarized by the first 5 parameters if there are more than 5.

This routine has also been added to other optimization packages for convenience in output of optimization results.

Usage

optansout(ansdf, filename)

Arguments

ansdf
A dataframe of results from an optimx run
filename
A properly qualified filename where text data is to be saved. If NULL output is only to the terminal.

Value

  • optansout always returns TRUE.

encoding

UTF-8

concept

  • minimization
  • maximization

Details

None