HW 10

due 5pm Friday April 25, 2008.

1. The 2D optimization problem posed in class, Day 26,
 but applied to this function:
f := proc(x)   # function to be minimized. 
	return
      tanh(0.4*((x[1]-17)^2+(x[2]+10)^2 + 2*sin(x[1]+x[2])) + .1e-5*exp(x[1]+x[2]))
     +tanh(0.6*((x[1]-2)^2 +(x[2]-5 )^2) + .2e-3*exp(x[1]+x[2]));
end proc:

It would be nice if you can do this successfully with Digits:=15.
To accomplish this you will need to try several starting points:
I chose a number of different starting points scattered randomly
in a square box that I decided on after inspecting the formula.

The minimum value of this function is between 0 and 0.9.

9 points total.
	4 for a basic code that does take random steps and improves the value of the obj. func.
	2 for features of the code that have a reasonable stopping criterion
	1 for code that tries more than 1 starting point in a sensible way
	2 for presentation

2. The optimization problem posed in class, Day 27.
Please be sure to include a marked-up copy of the image
pipeline2.jpg showing your notation
(labeling of nodes and/or pipes). You can use the free image
editor GIMP to do this.