displayOptPath: Display MOGSA's Optimization Path as a HTML or LaTeX table.

Description Usage Arguments Value Examples

View source: R/displayOptPath.R

Description

Convenience function for displaying the optimization path of MOGSA as a prettified (HTML or LaTeX) table.

Usage

1
displayOptPath(opt.path, format = "html", ...)

Arguments

opt.path

[data.frame]
Optimization path returned by runMOGSA.

format

[character(1L)]
Type of table being generated; either "html" (default) or "latex".

...

[any]
Further arguments to be passed to kable.

Value

Returns MOGSA's optimization path either as HTML (default) or LaTeX table.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Example 1:
# (i) Define two single-objective test problems (fn1, fn2) and a starting point (ind):
fn1 = function(x) sum((x - c(2, 0))^2)
fn2 = function(x) sum((x - c(0, 1))^2)
ind = c(1, 1)

# (ii) Run MOGSA:
mogsa.result = runMOGSA(ind = ind, fn1 = fn1, fn2 = fn2)

# (iii) Display the optimization path of MOGSA as HTML (or LaTeX) table:
displayOptPath(mogsa.result)

kerschke/mogsa documentation built on Oct. 27, 2018, 12:13 a.m.