Commit 74de7fe 1 parent 898c9f5 commit 74de7fe Copy full SHA for 74de7fe
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,13 @@ let problem_of_cudf cudf =
75
75
pb
76
76
77
77
let resolve_cudf
78
- ?(verbose = false ) ?timeout ?(solver =default_solver)
78
+ ?(verbosity = 0 ) ?timeout ?(solver =default_solver)
79
79
criteria (preamble , _ , _ as cudf ) =
80
80
let timeout = match timeout with
81
81
| None -> 0
82
82
| Some f -> int_of_float (1000. *. f)
83
83
in
84
- set_verbosity (if verbose then 1 else 0 );
84
+ set_verbosity (max 0 verbosity );
85
85
let pb = problem_of_cudf cudf in
86
86
match call_solver solver criteria timeout pb with
87
87
| None -> None
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ type solver_backend = [ `GLPK | `LP of string | `COIN_CLP | `COIN_CBC | `COIN_SY
19
19
(* * Resolve the given problem. The timeout is in seconds, default is to never
20
20
time out. *)
21
21
val resolve_cudf :
22
- ?verbose : bool -> ?timeout : float -> ?solver : solver_backend ->
22
+ ?verbosity : int -> ?timeout : float -> ?solver : solver_backend ->
23
23
string -> Cudf .cudf -> Cudf .solution option
24
24
25
25
(* * Deprecated, corresponds to the default solver backend selection only *)
You can’t perform that action at this time.
0 commit comments