print_iteration_information {spdesign}R Documentation

Prints iteration information

Description

Prints iteration information every time a better design is found. The function wraps around print_initial_header and print_efficiency_criteria. This reduces the number of if-statements and function calls within generate_design in an attempt simplify code maintenance.

Usage

print_iteration_information(
  iter,
  values,
  criteria,
  digits = 4,
  padding = 10,
  width = 80,
  efficiency_criteria
)

Arguments

iter

An integer giving the iteration of the loop

values

The value of the efficiency criteria obtained by calculate_efficiency_criteria

criteria

A character string with the name of the efficiency criteria. See manual for valid values

digits

The nubmer of digits to round the printed value to. The default is 4.

padding

An integer specifying the padding of each column element. Default value is 10.

width

An integer giving the width of the horizontal rules. Default value is 80

efficiency_criteria

The criteria that we optimize over

Value

Nothing


[Package spdesign version 0.0.4 Index]