-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog.txt
More file actions
42 lines (33 loc) · 1.22 KB
/
log.txt
File metadata and controls
42 lines (33 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/Users/opalissan/opt/anaconda3/envs/PDE-FIND/bin/python /Users/opalissan/PycharmProjects/optimization_notebooks/homework_2_debug.py
***The first 6 iterations:***
Iteration #0, x0 = [1.2, 1.2]
||gradient|| = 125.16932531574973
f = 5.8
Iteration #1, x1 = [1.19591837 1.43020408]
||gradient|| = 0.39982008700559746
f = 0.03838403441853445
call line search
alpha = 0.44356109085529827
xk = [1.19591837 1.43020408]
f = 0.03838403441853445
k = 1
found line search
Iteration #2, x2 = [1.10930519 1.2230469 ]
||gradient|| = 3.856101207933418
f = 0.017589305701565618
Iteration #3, x3 = [1.06562195 1.13364191]
||gradient|| = 1.0188058268702358
f = 0.004670372739015635
Iteration #4, x4 = [1.01812643 1.03432561]
||gradient|| = 1.0561520457853693
f = 0.0008374417690697597
Iteration #5, x5 = [1.00563548 1.01114669]
||gradient|| = 0.08033997938304732
f = 3.419297045642131e-05
Iteration #6, x6 = [1.00017053 1.00031123]
||gradient|| = 0.013664061684795774
f = 1.182769797441151e-07
(array([1.00000101, 1.000002 ]), 7, array([1.2 , 1.2 , 1.19591837, 1.43020408, 1.10930519,
1.2230469 , 1.06562195, 1.13364191, 1.01812643, 1.03432561,
1.00563548, 1.01114669, 1.00017053, 1.00031123, 1.00000101,
1.000002 ]))