THMMY's "Optimization Techniques" course assignments.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

14 rindas
443 B

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