-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_2D_hktr.py
More file actions
20 lines (13 loc) · 813 Bytes
/
run_2D_hktr.py
File metadata and controls
20 lines (13 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), 'pyMORAuxData'))
sys.path.append(os.path.join(os.path.dirname(__file__), 'functions'))
import functions.model as models
import functions.results_analysis as result_analysis
gamma_list = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6]
amount_of_iters = 5
model = models.twoDStuff()
TR_parameters={'radius': 1, 'sub_tolerance': 1e-4, 'max_iterations': 100, 'max_iterations_subproblem': 30, 'FOC_tolerance': 1e-4, 'J_tolerance': 1e-12,
'beta_1': 0.5, 'beta_2': 0.95, 'rho': 0.9, 'max_amount_interpolation_points': 10, 'cond_threshold': 1e20, 'gamma_adaptive': False}
optim_data = result_analysis.optimize_all(model, gamma_list, TR_parameters, amount_of_iters)
result_analysis.report_kernel_TR(optim_data, gamma_list, amount_of_iters)