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.
print_iteration_information(
iter,
values,
criteria,
digits = 4,
padding = 10,
width = 80,
efficiency_criteria
)
An integer giving the iteration of the loop
The value of the efficiency criteria obtained by
calculate_efficiency_criteria
A character string with the name of the efficiency criteria. See manual for valid values
The nubmer of digits to round the printed value to. The default is 4.
An integer specifying the padding of each column element. Default value is 10.
An integer giving the width of the horizontal rules. Default value is 80
The criteria that we optimize over
Nothing