Description Usage Arguments Value Examples
View source: R/displayOptPath.R
Convenience function for displaying the optimization path of MOGSA as a prettified (HTML or LaTeX) table.
1 | displayOptPath(opt.path, format = "html", ...)
|
opt.path |
[ |
format |
[ |
... |
[any] |
Returns MOGSA's optimization path either as HTML (default) or LaTeX table.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.