-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathopt_common.mli
33 lines (27 loc) · 1.16 KB
/
opt_common.mli
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
(* ========================================================================== *)
(* FPTaylor: A Tool for Rigorous Estimation of Round-off Errors *)
(* *)
(* Author: Alexey Solovyev, University of Utah *)
(* *)
(* This file is distributed under the terms of the MIT license *)
(* ========================================================================== *)
(* -------------------------------------------------------------------------- *)
(* Common optimization functions and types *)
(* -------------------------------------------------------------------------- *)
type opt_pars = {
f_rel_tol : float;
f_abs_tol : float;
x_rel_tol : float;
x_abs_tol : float;
max_iters : int;
timeout : int;
}
type opt_result = {
result : float;
lower_bound : float;
iters : int;
time : float;
}
val empty_result : opt_result
val default_opt_pars : unit -> opt_pars
val get_float : ?default:float -> string list -> string -> float