Description Usage Arguments Value Author(s) See Also Examples
The function complements the contour plot produced by using
cntr
function. Given a contour plot and a simplex
(an object of class smplx
) the function adds the simplex
movements to the contour plot to illustrate the optimization process
and the path that was followed.
1 | addSimplex2Surface(p, simplex)
|
p |
contour plot produced by using |
simplex |
simplex object of class |
a ggplot
object with the optimization
path over the contour plot provided.
Cristhian Paredes, craparedesca@unal.edu.co
Jesús Ágreda, jagreda@unal.edu.co
1 2 3 4 5 6 | simplex <- exampleOptimization(surface = exampleSurfaceR2,
centroid = c(7, 340),
stepsize = c(1.2, 15))
p <- cntr(surface = exampleSurfaceR2)
p <- addSimplex2Surface(p = p, simplex = simplex)
print(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.