plot
Plot the optimization problem contours & constraints
Syntax
plot(optiObj)
plot(optiObj,scale)
plot(optiObj,scale,log)
plot(optiObj,scale,log,npts)
Description
plot(optiObj) plots the objective function contours and linear constraints centered around the solution. If the OPTI object has been solved previously it will use this solution as the center of the plot, otherwise it will use x0. If the problem is unsolved, x0 is not specified and all bounds are specified, plot will use the bounds as the limits of the plot.
This function only works for one to five dimensional problems.
plot(optiObj,scale) [scale is a scalar] plots using a user defined zoom level. The default is 5 (±5 in each direction from the solution, or x0 if unsolved).
plot(optiObj,scale) [scale is a vector] plots using axis bounds specified in the scale vector. The expected format is [x1min x1max x2min x2max ... xNmin xNmax].
plot(obtiObj,scale,log) plots the objective function contours as log(obj) when log = 1.
plot(obtiObj,scale,log,npts) controls the number of points used to evaluate the objective and constraint functions. Typically 50 is sufficient, larger numbers result in more detailed plots.
Example Plots


Copyright © 2011-2013 Jonathan Currie (I2C2)