THMMY's "Optimization Techniques" course assignments.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Script_0_Plots.m 466 B

1234567891011121314
  1. % Define environment (functions, gradients etc...)
  2. GivenEnv
  3. %
  4. % We plot the function in the domain of x,y in [-3, 3].
  5. % We also plot the contour in order to get a sense of the min and maximum
  6. % points in the x-y plane
  7. %
  8. % 3d plot the function
  9. plot3dFun(fun, XSetLimmits(1, :), XSetLimmits(2, :), 100, title_fun, "figures/Plot_Function.png");
  10. % Plot isobaric lines
  11. plotContour(fun, XSetLimmits(1, :), XSetLimmits(2, :), 100, title_fun, "figures/Plot_Contour.png");