Commits

Chris_T  committed d31b497

Make Roundoff_limited an exception instead of a return value.

  • Participants
  • Parent commits 17e54e8

Comments (0)

Files changed (1)

File src/nlopt_FC.mli

 (** See {!set_min_objective}. *)
 
 type result =
-  | Roundoff_limited
   | Success
   | Stopval_reached
   | Ftol_reached
   | Maxeval_reached
   | Maxtime_reached
 
+exception Roundoff_limited
+(** This exception is raised when the algorithm is halted because
+    roundoff errors limited progress.  (In this case, the optimization
+    still typically returns a useful result.)  *)
 
 val optimize : 'a t -> vec -> result * float
 (** [optimize opt x] performs the optimization using [x] as an initial