Add Solver::Options::IsValid.

This provides a user visible way to validate the Solver::Options
before calling Solve.

Change-Id: Ife84fd33532ab2ccb7ac95abe22735843db51fde
This commit is contained in:
Sameer Agarwal
2014-05-29 15:39:01 -07:00
parent 3b73313e2a
commit 1693645a67
8 changed files with 583 additions and 337 deletions
+7 -2
View File
@@ -791,9 +791,14 @@ elimination group [LiSaad]_.
.. class:: Solver::Options
:class:`Solver::Options` controls the overall behavior of the
solver. We list the various settings and their default values below.
:class:`Solver::Options` controls the overall behavior of the
solver. We list the various settings and their default values below.
.. function:: bool Solver::Options::IsValid(string* error) const
Validate the values in the options struct and returns true on
success. If there is a problem, the method returns false with
``error`` containing a textual description of the cause.
.. member:: MinimizerType Solver::Options::minimizer_type
+3
View File
@@ -7,6 +7,9 @@ Releases
HEAD
====
#. Added ``Solver::Options::IsValid`` which allows users to validate
their solver configuration before calling ``Solve``.
Backward Incompatible API Changes
---------------------------------