diff --git a/README b/README index 0ef0565..4becf12 100644 --- a/README +++ b/README @@ -1,2 +1,12 @@ -Sajjad Azimi -Alessia Ferraro +HW1: minimization of a function; coding in Python + +Authors: + Sajjad Azimi + Alessia Ferraro + +Explanation: +1- + +2- To run conjugate_gradient you have to run the following command in the terminal: + python conjugate_gradient.py +Once you run the command, the processor will use the function which implements the conjugate gradient method to find the minimum of the function S, given in the HW description. The matrix A and the vector b for this function are calculated and given directly as np.array to the code. The initial condition is a fixed point at [3.0, 1.0]. After running the program the number of steps and the final solution are printed on the screen and the 3D plot of the surface and the path of the point during the convergence are shown in a new window. The convergence of the point is exactly like the convergence of the point in execise 1 with the optimizer (with the same initial condition).