Skip to content

Commit

Permalink
Sol check: link to 'modeling-tools.html'
Browse files Browse the repository at this point in the history
  • Loading branch information
glebbelov committed Dec 29, 2023
1 parent 427de45 commit 690e9e7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
12 changes: 9 additions & 3 deletions doc/source/modeling-expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -625,12 +625,16 @@ these functions.
Gurobi 11 defaults to piecewise-linear approximation of these functions
as part of its preprocessing. However, Gurobi :ref:`option <solver-options>` ``alg:global``
(``pre:funcnonlinear``) sets the default to the new MINLP capability ---
`global nonlinear solving <https://www.gurobi.com/>`_ via spatial branching::
`global nonlinear solving <https://www.gurobi.com/>`_ via spatial branching:

.. code-block:: ampl
ampl: option gurobi_options 'global=1'; solve;
For individual constraints and objectives, the choice of global solving vs
piecewise-linear approximation can be performed via the `.global` suffix::
piecewise-linear approximation can be performed via the ``.global`` suffix:

.. code-block:: text
pre:funcnonlinear (funcnonlinear, global)
Controls how general functions with their constraint's or objective's
Expand All @@ -648,7 +652,9 @@ See our `Christmas tree decorations Streamlit example <https://ampl.com/streamli
using global optimization.

Piecewise-linear aproximation can be influenced by setting
the following options in the AMPL ``gurobi_options`` string::
the following options in the AMPL ``gurobi_options`` string:

.. code-block:: text
pre:funcpieces
Sets the strategy for constructing a piecewise-linear approximation of a
Expand Down
4 changes: 3 additions & 1 deletion doc/source/modeling-tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ Method 1: acceptance options

List the solver's natively supported constraints,
by running the solver executable with the ``-=acc`` command-line switch
which lists all solver options starting with the ``acc:`` prefix::
which lists all solver options starting with the ``acc:`` prefix:

.. code-block:: bash
gurobi -=acc
Expand Down
2 changes: 1 addition & 1 deletion include/mp/flat/sol_check.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class SolutionChecker {
if (f_idealistic && chk.HasAnyViols())
wrt.write(
"AMPL may evaluate constraints/objectives differently\n"
"than the solver, see mp.ampl.com/solution-check.html.");
"than the solver, see mp.ampl.com/modeling-tools.html.");
chk.SetReport( wrt.str() );
}

Expand Down

0 comments on commit 690e9e7

Please sign in to comment.