From 690e9e78e27f600de646be8379c6a12ff61cfcf5 Mon Sep 17 00:00:00 2001 From: Gleb Belov Date: Fri, 29 Dec 2023 22:25:21 +1100 Subject: [PATCH] Sol check: link to 'modeling-tools.html' --- doc/source/modeling-expressions.rst | 12 +++++++++--- doc/source/modeling-tools.rst | 4 +++- include/mp/flat/sol_check.h | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/doc/source/modeling-expressions.rst b/doc/source/modeling-expressions.rst index 7a2a4f48c..e09906da1 100644 --- a/doc/source/modeling-expressions.rst +++ b/doc/source/modeling-expressions.rst @@ -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 ` ``alg:global`` (``pre:funcnonlinear``) sets the default to the new MINLP capability --- -`global nonlinear solving `_ via spatial branching:: +`global nonlinear solving `_ 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 @@ -648,7 +652,9 @@ See our `Christmas tree decorations Streamlit example