This functions visualizes the difference between the true optimum and the optimum in the current iteration (loss) during the optimization procedure. The default upper and lower bounds for the plot are set by the box constraints of the respective optimization function.
1 2 3 4 5 6 7 8 9 10 11 |
f |
a (multi-) dimensional function to be eptimized. |
x1.lower |
the lower boundary for the range of the x1 coordinate displayed. |
x1.upper |
the upper boundary for the range of the x1 coordinate displayed. |
x2.lower |
the lower boundary for the range of the x2 coordinate displayed. |
x2.upper |
the upper boundary for the range of the x2 coordinate displayed. |
xmat |
an object of class list containing the results of the algorithm. |
trueOptZ |
is a numeric of the z coordinate of the true optimum. |
algoName |
list of strings with names of algorithms. Length must equal length of 'xmat'. |
optimError |
passed argument from optimization. Specifies if error in gradient occured. |
n.x |
the number (equidistant) points at which f is evaluated w.r.t x1 and x2 coordinate. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.