File failed to load: https://scipopt.org/MathJax/extensions/TeX/AMSsymbol.js
Scippy

SCIP

Solving Constraint Integer Programs

xternal.c
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2 /* */
3 /* This file is part of the program and library */
4 /* SCIP --- Solving Constraint Integer Programs */
5 /* */
6 /* Copyright (C) 2002-2017 Konrad-Zuse-Zentrum */
7 /* fuer Informationstechnik Berlin */
8 /* */
9 /* SCIP is distributed under the terms of the ZIB Academic License. */
10 /* */
11 /* You should have received a copy of the ZIB Academic License */
12 /* along with SCIP; see the file COPYING. If not email to scip@zib.de. */
13 /* */
14 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15 
16 /**@file xternal.c
17  * @brief main document page
18  * @author Tobias Achterberg
19  * @author Timo Berthold
20  * @author Gerald Gamrath
21  * @author Stefan Heinz
22  * @author Gregor Hendel
23  * @author Mathias Kinder
24  * @author Marc Pfetsch
25  * @author Stefan Vigerske
26  * @author Robert Waniek
27  * @author Kati Wolter
28  * @author Michael Winkler
29  */
30 
31 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32 
33 /**@mainpage Overview
34  *
35  *
36  * @section WHATISSCIP What is SCIP?
37  *
38  * \SCIP is a framework to solve constraint integer programs (CIPs) and mixed-integer nonlinear programs. In particular,
39  *
40  * - \SCIP incorporates a mixed-integer programming (MIP) solver as well as
41  * - an LP based mixed-integer nonlinear programming (MINLP) solver, and
42  * - is a framework for branch-and-cut-and-price.
43  *
44  * \SCIP is developed together with
45  * <a href="http://www3.mathematik.tu-darmstadt.de/ags/optimierung/research/discrete-optimization.html">TU Darmstadt</a> and
46  * <a href="http://www.am.uni-erlangen.de/wima/">University of Erlangen-N&uuml;rnberg (Chair of EDOM)</a>
47  * and has more than 500,000 lines of C code.
48  *
49  * See the web site of <a href="http://scip.zib.de">\SCIP</a> for more information about licensing and to download \SCIP.
50  *
51  * @section GETTINGSTARTED Getting started
52  *
53  * - \ref WHATPROBLEMS "What types of optimization problems does SCIP solve?"
54  * - \ref MAKE "Installation information / Makefiles"
55  * - \ref LICENSE "License"
56  *
57  * - \ref SHELL "Tutorial: the interactive shell"
58  * - \ref FILEREADERS "Readable file formats"
59  * - \ref START "How to start a new project"
60  * - \ref EXAMPLES "Examples"
61  * - \ref APPLICATIONS "Extensions of SCIP for specific applications"
62  *
63  * @section FURTHERINFORMATION References
64  *
65  * - \ref PUBLICAPI "List of callable functions"
66  * - \ref PARAMETERS "List of all SCIP parameters"
67  *
68  * - \ref DOC "How to search the documentation for interface methods"
69  * - \ref FAQ "Frequently asked questions (FAQ)"
70  * - \ref APPLICATIONS "Extensions of SCIP for specific applications"
71  *
72  *
73  * @section PROGRAMMING Programming with SCIP
74  *
75  * @subsection CODINGBASICS Coding basics for SCIP
76  *
77  * - \ref CODE "Coding style guidelines"
78  * - \ref OBJ "Creating, capturing, releasing, and adding data objects"
79  * - \ref MEMORY "Using the memory functions of SCIP"
80  * - \ref DEBUG "Debugging"
81  *
82  * @subsection HOWTOADD How to add ...
83  *
84  * Below you find for most plugin types a detailed description of how to implement and add them to \SCIP.
85  *
86  * - \ref CONS "Constraint handlers"
87  * - \ref PRICER "Variable pricers"
88  * - \ref PRESOL "Presolvers"
89  * - \ref SEPA "Separators"
90  * - \ref PROP "Propagators"
91  * - \ref BRANCH "Branching rules"
92  * - \ref NODESEL "Node selectors"
93  * - \ref HEUR "Primal heuristics"
94  * + \ref DIVINGHEUR "Diving heuristics"
95  * - \ref RELAX "Relaxation handlers"
96  * - \ref READER "File readers"
97  * - \ref DIALOG "Dialogs"
98  * - \ref DISP "Display columns"
99  * - \ref EVENT "Event handler"
100  * - \ref NLPI "Interfaces to NLP solvers"
101  * - \ref EXPRINT "Interfaces to expression interpreters"
102  * - \ref PARAM "additional user parameters"
103  *
104  * @subsection HOWTOUSESECTION How to use ...
105  *
106  * - \ref CONF "Conflict analysis"
107  * - \ref TEST "How to run automated tests with SCIP"
108  * - \ref COUNTER "How to use SCIP to count feasible solutions"
109  * - \ref REOPT "How to use reoptimization in SCIP"
110  * - \ref CONCSCIP "How to use the concurrent solving mode in SCIP"
111  *
112  *
113  * @section FURTHERINFO Further information
114  *
115  * @subsection CHG Changes between different versions of SCIP
116  * - \ref CHANGELOG "Change log"
117  * - \ref RELEASENOTES "Release notes"
118  * - \ref CHG9 "Interface changes between version 3.2 and 4.0"
119  * - \ref CHG8 "Interface changes between version 3.1 and 3.2"
120  * - \ref CHG7 "Interface changes between version 3.0 and 3.1"
121  * - \ref CHG6 "Interface changes between version 2.1 and 3.0"
122  * - \ref CHG5 "Interface changes between version 2.0 and 2.1"
123  * - \ref CHG4 "Interface changes between version 1.2 and 2.0"
124  * - \ref CHG3 "Interface changes between version 1.1 and 1.2"
125  * - \ref CHG2 "Interface changes between version 1.0 and 1.1"
126  * - \ref CHG1 "Interface changes between version 0.9 and 1.0"
127  *
128  * @subsection AUTHORS SCIP Authors
129  * - <a class="el" href="http://scip.zib.de/#developers">Developers</a>
130  *
131  * @version 4.0.0
132  *
133  * \image html scippy.png
134  *
135  */
136 
137 /** @page EXAMPLES Example projects
138  *
139  * \SCIP contains several examples that demonstrate its usage. They are contained in the &quot;examples&quot; directory
140  * in the source code distribution.
141  *
142  * @section BRANCHANDPRICE Branch-and-price
143  *
144  * <table>
145  * <tr>
146  * <td>
147  * \ref BINPACKING_MAIN "Binpacking"
148  * </td>
149  * <td>
150  * An implementation of the column generation approach for the binpacking problem. It includes a customized reader,
151  * Ryan/Foster branching rule, (global) problem data, variable data, and constraint handler.
152  * </td>
153  * </tr>
154  * <tr>
155  * <td>
156  * <a href="http://scip.zib.de/doc/examples/VRP"><b>VRP</b></a>
157  * </td>
158  * <td>
159  * A solver for a simple capacity-constrained vehicle routing problem, which is based on pricing tours via a dynamic
160  * programming algorithm.
161  * </td>
162  * </tr>
163  * </table>
164  *
165  * @section BRANCHANDCUT Branch-and-cut
166  *
167  * <table>
168  * <tr>
169  * <td>
170  * \ref LOP_MAIN "Linear Ordering"
171  * </td>
172  * <td>
173  * An example for implementing a constraint handler.
174  * </td>
175  * </tr>
176  * <tr>
177  * <td>
178  * \ref TSP_MAIN "The TSP example"
179  * </td>
180  * <td>
181  * A short implementations of a constraint handler, two easy combinatorial heuristics, a file reader, etc. which
182  * demonstrate the usage of \SCIP as a branch-and-cut-framework for solving traveling salesman problem instances.
183  * </td>
184  * </tr>
185  * </table>
186  *
187  * @section CALLABLELIBRARY Callable library
188  *
189  * <table>
190  * <tr>
191  * <td>
192  * \ref CALLABLELIBRARY_MAIN "Callable Library Example"
193  * </td>
194  * <td>
195  * An example showing how to setup constraints (esp. nonlinear ones) when using \SCIP as callable library.
196  * </td>
197  * </tr>
198  * <tr>
199  * <td>
200  * \ref MIPSOLVER_MAIN "MIP solver"
201  * </td>
202  * <td>
203  * A minimal implementation for using \SCIP included into another source code
204  * </td>
205  * </tr>
206  * <tr>
207  * <td>
208  * <a href="http://scip.zib.de/download/files/scip_intro_01.pdf"><b>Queens</b></a>
209  * </td>
210  * <td>
211  * An example showing the use of \SCIP as callable library.
212  * </td>
213  * </tr>
214  * </table>
215  *
216  *
217  * @section OTHERPLUGINS Other plugins
218  *
219  * <table>
220  * <tr>
221  * <td>
222  * \ref EVENTHDLR_MAIN "Event handler"
223  * </td>
224  * <td>
225  * A small example illustrating the use of an event handler.
226  * </td>
227  * </tr>
228  * <tr>
229  * <td>
230  * \ref GMI_MAIN "Gomory mixed integer cut example"
231  * </td>
232  * <td>
233  * An example about Gomory mixed-integer cuts.
234  * </td>
235  * </tr>
236  * <tr>
237  * <td>
238  * \ref RELAXATOR_MAIN "Relaxator example"
239  * </td>
240  * <td>
241  * An example about using custom relaxators.
242  * </td>
243  * </tr>
244  * </table>
245  *
246  */
247 
248 /** @page APPLICATIONS Application projects
249  *
250  * There are several extensions of \SCIP for particular applications included in the release. They are contained in the &quot;applications&quot; directory
251  * in the source code distribution.
252  *
253  * <table>
254  * <tr>
255  * <td>
256  * <a href="http://scip.zib.de/doc/applications/Coloring"><b>Coloring</b></a>
257  * </td>
258  * <td>
259  * An implementation of the column generation approach for graph coloring of Mehrotra and Trick.
260  * </td>
261  * </tr>
262  * <tr>
263  * <td>
264  * <a href="http://scip.zib.de/doc/applications/MinIISC"><b>MinIISC</b></a>
265  * </td>
266  * <td>
267  * A solver that computes irreducible infeasible subsystems using Benders decomposition
268  * </td>
269  * </tr>
270  * <tr>
271  * <td>
272  * <a href="http://scip.zib.de/doc/applications/Scheduler"><b>Scheduler</b></a>
273  * </td>
274  * <td>
275  * A solver for scheduling problems.
276  * </td>
277  * </tr>
278  * <tr>
279  * <td>
280  * <a href="http://scip.zib.de/doc/applications/STP"><b>Steiner Tree Problem</b></a>
281  * </td>
282  * <td>
283  * A solver for Steiner Tree Problems in graphs, based on a branch-and-cut approach.
284  * </td>
285  * </tr>
286  * <tr>
287  * <td>
288  * <a href="http://scip.zib.de/doc/applications/PolySCIP"><b>PolySCIP</b></a>
289  * </td>
290  * <td>
291  * A solver for multi-objective optimization problems.
292  * </td>
293  * </tr>
294  * </table>
295  *
296  */
297 
298 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
299 
300 /**@page WHATPROBLEMS What types of optimization problems does SCIP solve?
301  *
302  * As a stand-alone solver, \SCIP can solve mixed-integer nonlinear programs \b (MINLPs), to which it applies
303  * an LP based spatial branch-and-cut algorithm. This method is guaranteed to solve bounded MINLPs
304  * within a given numerical tolerance in a finite amount of time. In particular, \SCIP is a stand-alone
305  * solver for mixed-integer linear programs \b (MIPs).
306  *
307  * As a framework, \SCIP also provides the tools to solve constraint optimization problems defined over
308  * integer and continuous variables. Therefore, the design of \SCIP
309  * supports the easy integration of constraints of arbitrary type into the solver.
310  * More precisely, \SCIP can handle the class of constraint integer programs \b (CIPs), which are constraint optimization problems
311  * that become linear programs (LPs) after the integer variables are fixed.
312  *
313  * @section PROBLEMCLASSES Some important subclasses of CIP and MINLP
314  *
315  * The following table gives a non-exhaustive list of common types of mathematical optimization problems that can be solved
316  * through \SCIP itself or one of its extensions. Some recommendations are given on how to compile \SCIP for a
317  * certain problem class and how make best use of \SCIP. The file format column gives some common file
318  * formats for every class. Note that since some of the mentioned problem classes are more general than others (like
319  * every LP is a MIP is an MINLP), the formats for the superclass should always work just as fine, although they
320  * may be less common for the class at hand.
321  *
322  * Please see also the pages on \ref EXAMPLES "SCIP Examples" and \ref APPLICATIONS "SCIP Applications" to learn more on how
323  * to extend \SCIP for a particular MIP, MINLP, or CIP application.
324  * All examples and applications use the C or C++ APIs of \SCIP. Please have a look at \ref INTERFACES "SCIP interfaces"
325  * to see how to use \SCIP from within other programming languages.
326  *
327  * <table class="types">
328  * <caption align="top">Some problem classes that can be solved by \SCIP</caption>
329  * <tr style="border-bottom: medium solid black;">
330  * <th>Problem class</th>
331  * <th>Mathematical problem description</th>
332  * <th>Supported file formats</th>
333  * <th>Recommendations</th>
334  * </tr>
335  * <tr>
336  * <td>Mixed-integer linear program (MIP)</td>
337  * <td>\f{align*}{
338  * \text{min} \quad& c^T x \\
339  * \text{s.t.} \quad& Ax \geq b \\
340  * &l_{j} \leq x_{j} \leq u_{j} && \forall j \in \mathcal{N} \\
341  * &x_{j} \in \mathbb{Z} && \forall j \in \mathcal{I}
342  * \f}
343  * </td>
344  * <td>
345  * <ul>
346  * <li>\ref reader_cip.h "CIP"</li>
347  * <li>\ref reader_mps.h "MPS"</li>
348  * <li>\ref reader_lp.h "LP"</li>
349  * <li>\ref reader_zpl.h "ZPL"</li>
350  * </ul>
351  * </td>
352  * <td>
353  * <ul>
354  * <li>\SCIP requires an external LP solver to solve LP relaxations, which needs to be specified
355  * at compilation time. By default, it uses SoPlex (<code>LPS=spx</code>). See \ref MAKE for a
356  * list of available LP solver interfaces and how to use them inside \SCIP.</li>
357  * <li>Compile with Zimpl support (<code>ZIMPL=true</code>) to read in Zimpl models directly.</li>
358  * <li>\SCIP comes with many different parameters. Use the provided emphasis settings (see \ref SHELL "this tutorial")
359  * to change many parameters at once and boost the performance.</li>
360  * <li>Test instances are available at <code>check/instances/MIP/</code>.</li>
361  * </ul>
362  * </td>
363  * </tr>
364  * <tr>
365  * <td>Mixed-integer nonlinear program (MINLP)</td>
366  * <td>\f{align*}{
367  * \text{min} \quad& f(x) \\
368  * \text{s.t.} \quad& g_{i}(x) \leq 0 && \forall i \in \mathcal{M} \\
369  * &l_{j} \leq x_{j} \leq u_{j} && \forall j \in \mathcal{N} \\
370  * &x_{j} \in \mathbb{Z} && \forall j \in \mathcal{I}
371  * \f}
372  * </td>
373  * <td>
374  * <ul>
375  * <li>\ref reader_cip.h "CIP"</li>
376  * <li>\ref reader_gms.h "GMS"</li>
377  * <li>\ref reader_osil.h "OSiL"</li>
378  * <li>\ref reader_pip.h "PIP"</li>
379  * <li>\ref reader_zpl.h "ZPL"</li>
380  * <li>For MIQCPS:
381  * <ul>
382  * <li>\ref reader_lp.h "LP"</li>
383  * <li>\ref reader_mps.h "MPS"</li>
384  * </ul>
385  * </li>
386  * </ul>
387  * </td>
388  * <td>
389  * <ul>
390  * <li>Compile with <code>IPOPT=true</code> for better performance.</li>
391  * <li>Compile with <code>GAMS=true</code> to read gms-files.</li>
392  * <li>See <a href="FAQ\FILEEXT#minlptypes"> Which kind of MINLPs are supported by \SCIP? </a> in the FAQ.</li>
393  * <li>There is an interface for the modelling language AMPL, see \ref INTERFACES.</li>
394  * <li>Mixed-integer quadratically constrained programs (MIQCP) can also be formulated in the file formats
395  * <ul>
396  * <li>\ref reader_lp.h "LP", and</li>
397  * <li>\ref reader_mps.h "MPS".</li>
398  * </ul>
399  * </li>
400  * <li>Test instances are available at <code>check/instances/MINLP/</code>.</li>
401  * </ul>
402  * </td>
403  * </td>
404  * <tr>
405  * <td>Constraint Integer Program (CIP)</td>
406  * <td>\f{align*}{
407  * \text{min} \quad& c^T x + d^T y \\
408  * \text{s.t.} \quad& C_i(x,y) = \text{true} && \forall i \in \mathcal{M} \\
409  * & x \in \mathbb{Z}^{p}, y \in \mathbb{R}^{n - p}
410  * \f}
411  * where \f$\forall i \in\mathcal{M}, \forall x^* \in \mathbb{Z}^{p},\f$ \f$ \{ y : C_i(x^*, y) = \text{true} \} \f$ is a polyhedron.
412  * </td>
413  * <td>
414  * <ul>
415  * <li>\ref reader_cip.h "CIP"</li>
416  * <li>\ref reader_fzn.h "FlatZinc"</li>
417  * </ul>
418  * </td>
419  * <td>
420  * <ul>
421  * <li>\SCIP supports a limited number of general constraints; see \ref CONS "How to add constraint handlers"
422  * to learn how to extend the \SCIP framework to a given CIP.</li>
423  * <li>Use the emphasis setting <code>set emphasis cpsolver</code> to completely disable LP solves and
424  * use depth-first search with periodic restarts, see also
425  * <a href="FAQ\FILEEXT#scipascpsolver"> Can I use \SCIP as a pure CP solver? </a> in the FAQ.</li>
426  * <li>Test instances are available at <code>check/instances/CP</code>.</li>
427  * </ul>
428  * </td>
429  * <tr>
430  * <td>Convex MINLP</td>
431  * <td>Like MINLP, \f$f\f$ and all \f$g_i\f$ are \b convex.</td>
432  * <td>see MINLP formats</td>
433  * <td>
434  * <ul>
435  * <li>See the comments for MINLP.</li>
436  * <li>In addition, use <code>constraints/nonlinear/assumeconvex = TRUE</code> to inform \SCIP about a convex
437  * problem in cases where the automated detection is not strong enough.</li>
438  * <li>Test instances are available at <code>check/instances/MINLP/circle.cip</code>.</li>
439  * </ul>
440  * </td>
441  * </td>
442  * <tr>
443  * <td>Linear program (LP)</td>
444  * <td>\f{align*}{
445  * \text{min} \quad& c^T x \\
446  * \text{s.t.} \quad& Ax \geq b \\
447  * & x_{j} \geq 0 && \forall j \in \mathcal{N}
448  * \f}
449  * </td>
450  * <td>see MIP formats</td>
451  * <td>See <a href="FAQ\FILEEXT#scipaslpsolver">Can I use \SCIP as a pure LP solver</a> in the FAQ.</td>
452  * </td>
453  * <tr>
454  * <td>Pseudoboolean optimization</td>
455  * <td>\f{align*}{
456  * \text{min} \quad& c^T x \\
457  * \text{s.t.} \quad& \sum_{k=0}^p a_{ik} \cdot \prod_{j \in \mathcal{N}_{ik}} x_j \leq b_i && \forall i \in \mathcal{M} \\
458  * &x_{j} \in \{0,1\} && \forall j \in \mathcal{N}
459  * \f}
460  * </td>
461  * <td>
462  * <ul>
463  * <li>\ref reader_wbo.h "WBO"</li>
464  * <li>\ref reader_opb.h "OPB"</li>
465  * </ul>
466  * </td>
467  * <td>
468  * <ul>
469  * <li>Test instances are available at <code>check/instances/PseudoBoolean/</code>.</li>
470  * </ul>
471  * </td>
472  * </tr>
473  * <tr>
474  * <td>Satisfiability (SAT) and variants</td>
475  * <td>\f{align*}{
476  * \text{min} \quad& 0 \\
477  * \text{s.t.} \quad&\bigvee\limits_{j \in B_i} x_j \vee \bigvee\limits_{j \in \bar{B}_i} \neg x_j = \text{true} && \forall i \in \mathcal{M}\\
478  * &x_{j} \in \{\text{false},\text{true}\} && \forall j \in \mathcal{N}
479  * \f}
480  * </td>
481  * <td>
482  * <ul>
483  * <li>\ref reader_cnf.h "CNF"</li>
484  * </ul>
485  * </td>
486  * <td>
487  * <ul>
488  * <li>Use the emphasis setting <code>set emphasis cpsolver</code> to completely disable LP solves and
489  * use depth-first search with periodic restarts, see also
490  * <a href="FAQ\FILEEXT#scipascpsolver"> Can I use \SCIP as a pure CP/SAT solver? </a> in the FAQ.</li>
491  * <li>Test instances are available at <code>check/instances/SAT/</code>.</li>
492  * </ul>
493  * </td>
494  * </tr>
495  * <tr>
496  * <td>Multicriteria optimization</td>
497  * <td>\f{align*}{
498  * \text{min} \quad &(c_1^T x,\ldots,c_k^T x) \\
499  * \text{s.t. } \quad& Ax \geq b \\
500  * &x \in \mathbb{K}^n
501  * \f}
502  * where \f$\mathbb{K}\f$ is either \f$\mathbb{Z}\f$ or \f$\mathbb{R}\f$.
503  * </td>
504  * <td colspan="3"> see the <a href="http://polyscip.zib.de/">PolySCIP web page</a></td>
505  * </tr>
506  * </table>
507  *
508  *
509  */
510 
511 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
512 
513 /**@page CODE Coding style guidelines
514  *
515  * We follow the following coding style guidelines and recommend them for all developers.
516  *
517  * - Indentation is 3 spaces. No tabs anywhere in the code.
518  * - Always only one declaration in a line.
519  * - Braces are on a new line and not indented.
520  * - Spaces around all operators.
521  * - No spaces between control structure keywords like "if", "for", "while", "switch" and the corresponding brackets.
522  * - No spaces between a function name and the parenthesis in both the definition and function calls.
523  * - Use assert() to show preconditions for the parameters, invariants and postconditions.
524  * - All global functions start with "SCIP". In the usual naming scheme this is followed by the object and a method name
525  * like in SCIPlpAddRow(). Functions return TRUE or FALSE should be named like SCIPisFeasEQ().
526  * - Make all functions that are not used outside the module 'static'. Naming should start with a lower case letter.
527  * - Variable names should be all lower case.
528  * - For each structure there is a typedef with the name in all upper case.
529  * - Defines should be named all upper case.
530  * - Document functions, parameters, and variables in a doxygen conformed way.
531  *
532  * As an example, have a look at tree.c and see the examples below. We also provide settings for
533  * \ref XEMACS "(x)emacs" and \ref ECLIPSE "eclipse".
534  *
535  *
536  * @section CODEEXAMPLES Examples
537  *
538  * In this section we state a few examples illustrating the \SCIP code style.
539  *
540  * @refsnippet{src/scip/type_set.h,SnippetCodeStyleExample}
541  *
542  *
543  * @section XEMACS Customize (x)emacs
544  *
545  * If you are using (x)emacs, you can use the following customization for the c++-mode. These settings satisfy the
546  * coding guidelines of \SCIP.
547  *
548  * \include codestyle/emacs_scip_codestyle.el
549  *
550  *
551  * @section ECLIPSE Customize eclipse
552  *
553  * Eclipse user can use the profile below. This profile does not match the \SCIP coding guideline completely.
554  *
555  * \include codestyle/eclipse_scip_codestyle.xml
556  */
557 
558 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
559 
560 /**@page MAKE Makefiles / Installation information
561  *
562  *
563  * In most cases (LINUX and MAC) it is quite easy to compile and install \SCIP. Therefore, reading the section
564  * \ref BRIEFINSTALL "Brief installation description" should usually be enough. If this is not the case you find
565  * \ref DETAILEDINSTALL "Detailed installation description" below as well as \ref EXAMPLE1 "Examples".
566 *
567  * @section BRIEFINSTALL Brief installation description
568  *
569  * The easiest way to install \SCIP is to use the \SCIP Optimization Suite which contains \SCIP, SoPlex, and ZIMPL. For
570  * that we refer to the INSTALL file of the \SCIP Optimization Suite (main advantage: there is no need
571  * to specify any directories, the compiling process is fully automated).
572  *
573  * Compiling \SCIP directly can be done as follows:
574  *
575  * -# unpack the tarball <code>tar xvf scip-x.y.z.tgz</code>
576  * -# change to the directory <code>cd scip-x.y.z</code>
577  * -# start compiling \SCIP by typing <code>make</code>
578  * -# (optional) install the header, libraries, and binary <code>make install INSTALLDIR="/usr/local/</code>
579  *
580  * During your first compilation you will be asked for some soft-link targets,
581  * depending on the LP solver you want to use. Usually, \SCIP needs the
582  * following information
583  * -# the directory where the include files of the LP solver lie
584  * -# the library file(s) "lib*.a" or/and "lib*.so"
585  *
586  * Besides that, \SCIP needs some soft-link targets, for ZIMPL
587  * -# the directory where the include files of ZIMPL lie
588  * -# the library file(s) "lib*.a" or/and "lib*.so"
589  *
590  * You will need either the .a or the .so files and can skip the others by
591  * just pressing return.
592  *
593  * The most common compiling issue is that some libraries are missing
594  * on your system or that they are outdated. \SCIP per default requires
595  * zlib, gmp and readline. Try compiling with: <code> make ZLIB=false
596  * READLINE=false ZIMPL=false</code> or, better, install them. Note
597  * that under Linux-based systems, you need to install the
598  * developer-versions of gmp/zlib/readline, in order to also have the
599  * header-files available.
600  *
601  @section DETAILEDINSTALL Detailed installation description
602  *
603  * In this section we describe the use, and a few features, of the \SCIP Makefile. We also give two examples for how to install
604  * \SCIP. The \ref EXAMPLE1 "first example" illustrates the default installation. This means, with SoPleX and ZIMPL. The
605  * \ref EXAMPLE2 "second example" shows how to get CPLEX linked to \SCIP without ZIMPL. This is followed by a section which
606  * gives some hints on what to do if the \ref COMPILERPROBLEMS "compilation throws an error". We give some comments on
607  * how to install \SCIP under \ref WINDOWS "WINDOWS" and show \ref RUN "how to start \SCIP".
608  *
609  * If you experience any problems during the installation, you will find help in the \ref INSTALL "INSTALL" file.
610  *
611  * \SCIP contains a makefile system, which allows the individual setting of several parameters. A detailed list of parameter settings
612  * obtained by <code>make help</code>. For instance, the following settings are supported:
613  *
614  * - <code>OPT=<dbg|opt|opt-gccold></code> Here <code>dbg</code> turns on the debug mode of \SCIP. This enables asserts
615  * and avoids macros for several function in order to ease debugging. The default is <code>opt</code>, which enables
616  * the optimized mode. The third option <code>opt-gccold</code> will work with older GCC compilers before version
617  * 4.2. We recommend using newer GCC versions.
618  *
619  * - <code>LPS=<clp|cpx|grb|msk|qso|spx|xprs|none></code> This determines the LP-solver, which should be
620  * installed separately from \SCIP. The options are the following:
621  * - <code>clp</code>: COIN-OR Clp LP-solver
622  * - <code>cpx</code>: CPLEX LP-solver
623  * - <code>grb</code>: Gurobi LP-solver (interface is in beta stage)
624  * - <code>msk</code>: Mosek LP-solver
625  * - <code>qso</code>: QSopt LP-solver
626  * - <code>spx</code>: old SoPlex LP-solver (for versions < 2)
627  * - <code>spx2</code>: new SoPlex LP-solver (default) (from version 2)
628  * - <code>xprs</code>: XPress LP-solver
629  * - <code>none</code>: no LP-solver (you should set the parameter <lp/solvefreq> to <-1> to avoid solving LPs)
630  *
631  * - <code>LPSOPT=<dbg|opt|opt-gccold></code> Chooses the debug or optimized version (or old GCC optimized) version of
632  * the LP-solver (currently only available for SoPlex and CLP).
633  *
634  * - <code>ZIMPL=<true|false></code> Turns direct support of ZIMPL in \SCIP on (default) or off, respectively.\n
635  * If the ZIMPL-support is disabled, the GMP-library is no longer needed for \SCIP and therefore not linked to \SCIP.
636  *
637  * - <code>ZIMPLOPT=<dbg|opt|opt-gccold></code> Chooses the debug or optimized (default) (or old GCC optimized)
638  * version of ZIMPL, if ZIMPL support is enabled.
639  *
640  * - <code>READLINE=<true|false></code> Turns support via the readline library on (default) or off, respectively.
641  *
642  * - <code>IPOPT=<true|false></code> Enable or disable (default) IPOPT interface (needs IPOPT >= 3.11).
643  *
644  * - <code>EXPRINT=<cppad|none></code> Use CppAD as expressions interpreter (default) or no expressions interpreter.
645  *
646  * - <code>GAMS=<true|false></code> Enable or disable (default) reading functionality in GAMS reader (needs GAMS).
647  *
648  * - <code>NOBLKBUFMEM=<true|false></code> Turns the internal \SCIP block and buffer memory off or on (default).
649  * This way the code can be checked by valgrind or similar tools. (The individual options <code>NOBLKMEM=<true|false></code>
650  * and <code>NOBUFMEM=<true|false></code> to turn off the \SCIP block and buffer memory, respectively, exist as well).
651  *
652  * - <code>TPI=<tny|omp|none></code> This determines the threading library that is used for the concurrent solver.
653  * The options are the following:
654  * - <code>none</code>: use no threading library and therefore disable the concurrent solver feature
655  * - <code>tny</code>: use the tinycthread's library which is bundled with SCIP. This
656  * is a wrapper around the plattform specific threading library ad should work
657  * for Linux, Mac OS X and Windows.
658  * - <code>omp</code>: use the OpenMP. This will not work with microsoft compilers, since they do not support
659  * the required OpenMP version.
660  *
661  * You can use other compilers - depending on the system:
662  *
663  * - <code>COMP=<clang|gnu|intel></code> Use Clang, Gnu (default) or Intel compiler.
664  *
665  * There are additional parameters for Linux/Gnu compilers:
666  *
667  * - <code>SHARED=<true></code> generates a shared object of the \SCIP libraries. (The binary uses these shared
668  * libraries as well.)
669  * - <code>OPT=prf</code> generates a profiling version of \SCIP providing a detailed statistic of the time usage of
670  * every method of \SCIP.
671  *
672  * There is the possibility to watch the compilation more precisely:
673  *
674  * - <code>VERBOSE=<true|false></code> Turns the extensive output on or off (default).
675  *
676  * The \SCIP makefile supports several targets (used via <code>make ... "target"</code>):
677  *
678  * - <code>all (or no target)</code> Build \SCIP library and binary.
679  * - <code>links</code> Reconfigures the links in the "lib" directory.
680  * - <code>doc</code> Creates documentation in the "doc" directory.
681  * - <code>clean</code> Removes all object files.
682  * - <code>depend</code> Creates dependencies files. This is only needed if you add files to \SCIP.
683  * - <code>check or test</code> Runs the check script, see \ref TEST.
684  *
685  * The \SCIP makefiles are structured as follows.
686  *
687  * - <code>Makefile</code> This is the basic makefile in the \SCIP root directory. It loads
688  * additional makefile information depending on the parameters set.
689  * - <code>make/make.project</code> This file contains definitions that are useful for all codes
690  * that use \SCIP, for instance, the examples.
691  * - <code>make.<sys>.<machine>.<compiler>.<dbg|opt|prf|opt-gccold></code> These file contain system/compiler specific
692  * definitions. If you have an unsupported compiler, you can copy one of these and modify it
693  * accordingly.
694  *
695  * If your platform or compiler is not supported by \SCIP you might try and copy one of the existing
696  * makefiles in the <code>make</code> directory and modify it. If you succeed, we are always
697  * interested in including more Makefiles into the system.
698  *
699  *
700  * @section EXAMPLE1 Example 1 (defaults: SoPlex, with ZIMPL support):
701  *
702  * Typing <code>make</code> uses SoPlex as LP solver and includes support for the modeling language ZIMPL. You will be asked the
703  * following questions on the first call to "make" (example answers are already given):
704  *
705  * \verbinclude makeexamples/example1.txt
706  *
707  * @section EXAMPLE2 Example 2 (CPLEX, with no ZIMPL support):
708  *
709  * Typing <code>make LPS=cpx ZIMPL=false</code> uses CPLEX as LP solver. You will be asked the following questions on
710  * the first call to "make" (example answers are already given):
711  *
712  * \verbinclude makeexamples/example2.txt
713  *
714  *
715  * @section COMPILERPROBLEMS Compilation problems:
716  *
717  * - If the soft-link query script does not work on your machine, read step 2 in the \ref INSTALL "INSTALL" file for
718  * instructions on manually creating the soft-links.
719  *
720  * - If you get an error message of the type\n
721  * <code>make: *** No rule to make target `lib/???', needed by `obj/O.linux.x86.gnu.opt/lib/scip/???.o'. Stop.</code>\n
722  * the corresponding soft-link was not created or points to a wrong location. Check the soft-link targets in the "lib/"
723  * subdirectory. Try to delete all soft-links from the "lib/" directory\n and call "make links" to generate them
724  * again. If this still fails, read step 2 for instructions on manually\n creating the soft-links.
725  *
726  * - If you get an error message of the type\n
727  * <code>make: *** No rule to make target `make/make.?.?.?.?.?'. Stop.</code>,\n
728  * the corresponding machine dependent makefile for your architecture and compiler is missing.\n Create one of the given
729  * name in the "make/" subdirectory. You may take\n "make/make.linux.x86.gnu.opt" or any other file in the make
730  * subdirectory as example.\n
731  *
732  * - The readline library seems to differ slightly on different OS distributions. Some versions do
733  * not support the <code>remove_history()</code> call. In this case, you have to either add
734  * <code>-DNO_REMOVE_HISTORY</code> to the FLAGS in the appropriate "make/make.*" file, or to
735  * compile with <code>make USRFLAGS=-DNO_REMOVE_HISTORY</code>. Make sure, the file
736  * "src/scip/dialog.c" is recompiled. If this doesn't work either, disable the readline library
737  * with <code>make READLINE=false</code>.
738  *
739  * - On some systems, the <code>sigaction()</code> method is not available. In this case, you have
740  * to either add <code>-DNO_SIGACTION</code> to the FLAGS in the appropriate "make/make.*" file, or
741  * to compile with <code>make USRFLAGS=-DNO_SIGACTION</code>. Make sure, the file
742  * "src/scip/interrupt.c" is recompiled.
743  *
744  * - On some systems, the <code>rand_r()</code> method is not available. In this case, you have to either add
745  * <code>-DNO_RAND_R</code> to the FLAGS in the appropriate "make/make.*" file, or to compile with
746  * <code>make USRFLAGS=-DNO_RAND_R</code>. Make sure, the file "src/scip/misc.c" is recompiled.
747  *
748  * - On some systems, the <code>strtok_r()</code> method is not available. In this case, you have
749  * to either add <code>-DNO_STRTOK_R</code> to the FLAGS in the appropriate make/make.* file, or to
750  * compile with <code>make USRFLAGS=-DNO_STRTOK_R</code>. Make sure, the file "src/scip/misc.c" is
751  * recompiled.
752  *
753  * - On some systems, the <code>strerror_r()</code> method is not available. In this case, you have
754  * to either add <code>-DNO_STRERROR_R</code> to the FLAGS in the appropriate "make/make.*" file, or
755  * to compile with <code>make USRFLAGS=-DNO_STRERROR_R</code>. Make sure, the file
756  * "src/scip/misc.c" is recompiled.
757  *
758  * - On some systems, the option [-e] is not available for the read command. You have to compile with READ=read.
759  *
760  * - If you encounter other compiler or linker errors, you should recompile with <code>make
761  * VERBOSE=true ...</code> in order to get the full compiler invocation. This might help to fix the
762  * corresponding machine dependent makefile in the make subdirectory.
763  *
764  * @section WINDOWS Remarks on Installing under Windows using MinGW
765  *
766  * To build your own windows binaries under windows we recommend using the MinGW-Compiler with MSYS
767  * from <a href="http://www.mingw.org">www.mingw.org</a> .
768  *
769  * First install MSYS, then MinGW to the mingw folder inside the msys folder.
770  * Now you need to install the following packages to the mingw folder:
771  * - zlib (or use ZLIB=false)
772  * - pcre (here suffices the pcre7.0-lib.zip (or equivalent) to be extracted into the mingw-folder)
773  *
774  * After calling <code>make clean</code> in the ZIMPL folder you will also need flex and bison to
775  * remake ZIMPL. We recommend NOT to use <code>"make clean"</code> inside the ZIMPL-folder if you do
776  * not have these packages installed.
777  *
778  * You can download these additional packages from <a href="http://gnuwin32.sourceforge.net/packages.html">here</a>
779  * or compile the source on your own from their homepages.
780  *
781  * Second you need to copy the file <code>sh.exe</code> to <code>bash.exe</code> otherwise various
782  * scripts (including makefiles) will not work. Normally <code>unistd.h</code> covers also the
783  * getopt-options, but for mingw you need to add the entry <code>\#include <getopt.h></code> into
784  * "/mingw/include/unistd.h" after the other include-entries (if not present).
785  *
786  * Finally, there is one package you need to compile if you want to use ZIMPL and ZIMPL-support in
787  * \SCIP (otherwise use <code>ZIMPL=false</code> as parameter with the make-call): the
788  * <code>gmplib</code> from <a href="http://www.gmplib.org">gmplib.org</a>. The command
789  * <code>./configure --prefix=/mingw ; make ; make install</code> should succeed without problems
790  * and installs the gmplib to the mingw folder.
791  *
792  * Now <code>make READLINE=false</code> should be compiling without errors. Please note that we
793  * do NOT support creating the doxygen documentation and readline-usage under windows.
794  *
795  *
796  * @section RUN How to run SCIP after a successful compilation
797  *
798  * To run the program, enter <code>bin/scip</code> for the last compiled version. If you have more than one compiled
799  * binary (i. e., one in debug and one in optimized mode) and wish to specify the binary, type
800  * <code>bin/scip.\$(OSTYPE).\$(ARCH).\$(COMP).\$(OPT).\$(LPS)</code>
801  * (e.g. <code>bin/scip.linux.x86_64.gnu.opt.spx</code>).
802  *
803  */
804 
805 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
806 
807 /**@page START How to start a new project
808  *
809  * Once you succeeded installing \SCIP together with an LP-solver on your system,
810  * you have a powerful tool for solving MIPs, MIQCPs,
811  * MINLPs, etc... at hand. \SCIP can also be customized to the type of problems you
812  * are working on by additional plugins.
813  * Instructions on how to write a new plugin and include it in \SCIP can be found in the corresponding
814  * \ref HOWTOADD "How to add ... pages".
815  *
816  * \SCIP can also be used for writing your own branch-and-cut or branch-and-cut-and-price code. \SCIP already
817  * provides a number of existing code examples which we suggest as both reference and starting point
818  * for these kinds of projects.
819  * Below, you find some hints of how to start such a project.
820  *
821  * - The example should be chosen
822  * depending on the programming language (<b>C</b> or <b>C++</b>) and the purpose
823  * (<b>branch-and-cut</b> or <b>branch-and-cut-and-price</b>) of your project.
824  * <br>
825  * We suggest the use one of the following examples:
826  * - The <a href="http://scip.zib.de/doc/examples/VRP"><b>VRP</b></a>-example is a <b>branch-and-cut-and-price</b> (column generation)-code
827  * in <b>C++</b>.
828  * - The <a href="http://scip.zib.de/doc/examples/Binpacking"><b>Binpacking</b></a>-example
829  * and the <a href="http://scip.zib.de/doc/applications/Coloring"><b>Coloring</b></a> application are
830  * <b>branch-and-cut-and-price</b> (column generation)-codes in <b>C</b>.
831  * - The \ref TSP_MAIN "TSP example"
832  * is a <b>branch-and-cut</b>-code in <b>C++</b>.
833  * - The \ref LOP_MAIN LOP-example
834  * is a <b>branch-and-cut</b>-code in <b>C</b>.
835  * .
836  * - Copy one of the examples in the <code>examples</code> directory (in the \SCIP root
837  * directory). For instance, type
838  * \verbatim
839  > cp -r examples/Binpacking/ ../SCIPProject/ ; cd ../SCIPProject
840  \endverbatim
841  * from the \SCIP root directory for copying the content of the <code>Binpacking</code>-example into a fresh
842  * directory named SCIPProject in the parent directory of the \SCIP root directory and jumping to
843  * the new SCIPProject directory rightafter.
844  * - Open the <code>Makefile</code> via
845  * \verbatim
846  > kate Makefile
847  \endverbatim
848  * and edit the following variables at the top to have a compilable code:
849  *
850  * - specify a correct path to the \SCIP root (<code>SCIPDIR</code>)
851  * - rename the targets name (<code>MAINNAME</code>)
852  * - adjust the source file names (<code>MAINOBJ</code>).
853  * .
854  * - Once you have edited the makefile, you can use all the flags that can be used in \SCIP to
855  * compile your code, see \ref MAKE.
856  * Note that you need to update the dependency files before compiling your project via <code>make depend</code>.
857  *
858  *
859  *
860  *
861  */
862 
863 /**@page SHELL Tutorial: the interactive shell
864  *
865  * If you are using \SCIP as a black box solver, here you will find some tips and tricks what you can do.
866  *
867  * @section TUTORIAL_OPTIMIZE Read and optimize a problem instance
868  *
869  * First of all, we need a \SCIP binary and an example problem file to work with. Therefore, you can either download the
870  * \SCIP standard distribution (which includes problem files) and compile it on your own or you can download a
871  * precompiled binary and an example problem separately. \SCIP can read files in LP, MPS, ZPL, WBO, FZN, PIP, OSiL, and
872  * other formats (see \ref FILEREADERS).
873  *
874  * If you want to download the source code of the \SCIP standard distribution, we recommend to go to the <a
875  * href="http://scip.zib.de/#download">SCIP download section</a>, download the latest release (version 4.0.0 as
876  * of this writing), inflate the tarball (e.g., with "tar xzf scipoptsuite-[version].tgz"), and follow the instructions
877  * in the INSTALL file. The instance stein27, which will serve as an example in this tutorial, can be found under
878  * scipoptsuite-[version]/scip-[version]/check/instances/MIP/stein27.fzn.
879  *
880  * If you want to download a precompiled binary, go to the <a href="http://scip.zib.de/#download">SCIP download
881  * section</a> and download an appropriate binary for your operating system. The \SCIP source code distribution already comes with
882  * the example instance used throughout this tutorial. To follow this tutorial with a precompiled binary, we recommend downloading the instance
883  * <a href="http://miplib.zib.de/miplib3/miplib3/stein27.mps.gz">stein27</a> from
884  * the <a href="http://miplib.zib.de/miplib3/miplib.html">MIPLIB 3.0</a> homepage.
885  *
886  * Now start your binary, without any arguments. This opens the interactive shell, which should look somehow like this:
887  *
888  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetVersion
889  *
890  * First of all "help" shows you a list of all available shell commands. Brackets indicate a submenu with further options.
891  *
892  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetHelp
893  *
894  * Okay, let's solve the example instance... use "read check/instances/MIP/stein27.fzn" to parse the instance file, "optimize" to solve it and "display
895  * solution" to show the nonzero variables of the best found solution.
896  *
897  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetOpt1
898  *
899  * What do we see here? After "optimize", SCIP first goes into presolving. Not much is happening for this instance, just
900  * the linear constraints get upgraded to more specific types. Each round of presolving will be displayed in a single
901  * line, with a short summary at the end. Then, we see the actual solving process. The table output of the branch-and-cut
902  * solving process is very detailed during the root node. Afterwards, a new line is displayed every 100th node.
903  * Furthermore, every new incumbent solution triggers a new table row, starting with a character to indicate the
904  * heuristic that found the solution. Which letter represents which heuristic can be seen with the
905  * "display heuristics" command, see \ref TUTORIAL_STATISTICS for an example.
906  *
907  * After some lines the root node processing is finished. From now on, we will see an output line every hundredth node or
908  * whenever a new incumbent is found. After some more nodes, the "dualbound" starts
909  * moving, too. At one point, both will be the same, and the solving process terminates, showing us some wrap-up
910  * information.
911  *
912  * The exact performance may of course vary among different architectures and operating systems. Do not be worried if
913  * your installation needs more or less time or nodes to solve. Also, this instance has more than 2000 different optimal
914  * solutions. The optimal objective value always has to be 18, but the solution vector may differ. If you are interested
915  * in this behavior, which is called "performance variability", you may have a look at the MIPLIB2010 paper.
916  *
917  * @section TUTORIAL_FILEIO Writing problems and solutions to a file
918 
919  * \SCIP can also write information to files. E.g., we could store the incumbent solution to a file, or output the
920  * problem instance in another file format (the LP format is much more human readable than the MPS format, for example).
921  *
922  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetWriteSolutions
923  *
924  * Passing starting solutions can increase the solving performance so that \SCIP does not need to construct an initial feasible solution
925  * by itself. After reading the problem instance, use the "read" command again, this time with a file containing solution information.
926  * Solutions can be specified in a raw or xml-format and must have the file extension ".sol", see the documentation of the
927  * <a href="http://scip.zib.de/doc/html/reader__sol_8h.php">solution reader of \SCIP</a> for further information.
928  *
929  * Customized settings are not written or read with the "write" and "read" commands, but with the three commands
930  *
931  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsOverview
932  *
933  * See the section on parameters \ref TUTORIAL_PARAMETERS for more information.
934  *
935  * @section TUTORIAL_STATISTICS Displaying detailed solving statistics
936  *
937  * We might want to have some more information now. Which of the heuristics found solutions? Which plugins
938  * were called during the solutions process and how much time did they spend?
939  * Information on certain plugin types (e.g., heuristics, branching rules, separators) is displayed via
940  * "display <plugin-type>", information on the solution process via "display statistics", and "display problem"
941  * shows the current instance.
942  *
943  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetDisplayStatistics
944  *
945  * The statistics obtained via "display statistics" are quite comprehensive,
946  * thus, we just explain a few lines here. Information is grouped by the plugin type. For the primal heuristics,
947  * the execution time in seconds is shown as well as the number of calls to the heuristic, and its success regarding
948  * the number of (best) solutions found by that heuristic. Appropriate statistics are also shown for presolvers, constraint handlers,
949  * separators, propagators, the search tree, etc. User-written plugins will appear automatically in these statistics,
950  * after they were included into \SCIP.
951  *
952  * @section TUTORIAL_PARAMETERS Changing parameters from the interactive shell
953  *
954  * Now, we can start playing around with parameters. The primal heuristics Rounding and shifting seem to be quite successful on this instance,
955  * wondering what happens if we disable them? Or what happens, if we are even more rigorous and disable all heuristics?
956  * Or if we do the opposite and use aggressive heuristics?
957  *
958  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSetSettings
959  *
960  * We can navigate through the menus step-by-step and get a list of available options and submenus. Therefore, we select
961  * "set" to change settings, "heuristics" to change settings of primal heuristics, and "shifting" for that particular
962  * heuristic. Then we see a list of parameters (and yet another submenu for advanced parameters), and disable this
963  * heuristic by setting its calling frequency to -1. If we already know the path to a certain setting, we can directly
964  * type it (as for the rounding heuristic in the above example). Note that we do not have to use the full names, but we
965  * may use short versions, as long as they are unique.
966  *
967  * To solve a problem a second time, we have to read it in again before starting the optimization process.
968  *
969  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetOpt2
970  *
971  * Okay, what happened here? First, we reset all parameters to their default values, using "set default". Next, we
972  * loaded some meta-parameter settings (also see <a href="http://scip.zib.de/#faq">the FAQ</a>), to apply primal heuristics
973  * more aggressively. \SCIP shows us, which single parameters it changed therefore. Additionally, for pedagogical purposes,
974  * we set the node limit to 200. Now, the optimal solution is already found at the root node, by a heuristic which is
975  * deactivated by default. Then, after node 200, the user defined node limit is reached which interrupts the solving
976  * process, We see that now in the short status report, primal and dual bound are different, thus, the problem is not solved
977  * yet. Nevertheless, we could access statistics, see the current incumbent solution, change parameters and so on.
978  * Entering "optimize" we continue the solving process from the point on at which it has been interrupted.
979  *
980  * Once you found a non-default parameter setting that you wish to save and use in the future, use either the command
981  *
982  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsFull
983  *
984  * to save <b>all</b> parameter values to the specified file, or
985  *
986  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsDiff
987  *
988  * in order to save only the nondefault parameters. The latter has several advantages, you can, e.g., combine parameter
989  * settings from multiple settings files stored by the latter command, as long as they only affect mutually exclusive
990  * parameter values.
991  *
992  * For loading a previously stored settings file, use the "load" command:
993  *
994  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetLoadSettings
995  *
996  * Special attention should be drawn to the reserved settings file name "scip.set"; whenever the \SCIP interactive shell
997  * is started from a working directory that contains a settings file with the name "scip.set", it will be automatically
998  * replace the default settings.
999  *
1000  * For using special settings for automated tests as described in \ref TEST, save your custom settings in a subdirectory
1001  * "SCIP_HOME/settings".
1002  *
1003  *
1004  * We hope this tutorial gave you an overview of what is possible using the \SCIP interactive shell. Please also read our
1005  * \ref FAQ, in particular the section <a href="http://scip.zib.de/#faq">Using \SCIP as a standalone MIP/MINLP-Solver</a>.
1006  *
1007  */
1008 
1009 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1010 
1011 /**@page DOC How to search the documentation for interface methods
1012  *
1013  * If you are looking for a method in order to perform a specific task, there are usually two places to look at:
1014  * - The file "scip.h" in the file list.
1015  * In this main header file, you find all methods that perform "complex" operations that affect or need data from
1016  * different components of \SCIP.
1017  * For these methods, you always have to provide the \SCIP pointer that is created by SCIPcreate().
1018  * The documentation of "scip.h" is grouped into several blocks, each dealing with methods for a specific kind of
1019  * object.
1020  * For example, all methods operating on variables are grouped together.
1021 
1022  * - The files \ref PUBLICCOREAPI "pub_<...>.h" contain methods that perform "easy" operations that only
1023  * affect the corresponding objects.
1024  * Usually, with these methods you can access the data of the object.
1025  * For example, in "pub_var.h" you find methods to get information about a variable.
1026  *
1027  * The file "pub_misc.h" contains methods for data structures like priority queues, hash tables, and hash maps,
1028  * as well as methods for sorting, numerics, random numbers, string operations, and file operations.
1029  *
1030  * If you are looking for a description of a callback method of a plugin that you want to implement, you have to
1031  * look at the corresponding \ref TYPEDEFINITIONS "type_<...>.h".
1032  */
1033 
1034 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1035 
1036 /**@page CONS How to add constraint handlers
1037  *
1038  * A constraint handler defines the semantics and the algorithms to process constraints of a certain class. A single
1039  * constraint handler is responsible for all constraints belonging to its constraint class. For example, there is
1040  * one \ref cons_knapsack.h "knapsack constraint handler" that ensures solutions are only accepted if they satisfy all
1041  * knapsack constraints in the model. \n A complete list of all constraint handlers contained in this release can be
1042  * found \ref CONSHDLRS "here".
1043  *
1044  * We now explain how users can add their own constraint handlers.
1045  * For an example, look into the subtour constraint handler (examples/TSP/src/ConshdlrSubtour.cpp) of the
1046  * \ref TSP_MAIN project.
1047  * The example is written in C++ and uses the C++ wrapper classes.
1048  * However, we will explain the implementation of a constraint handler using the C interface.
1049  * It is very easy to transfer the C explanation to C++; whenever a method should be implemented using the
1050  * SCIP_DECL_CONS... notion, reimplement the corresponding virtual member function of the abstract scip::ObjConshdlr
1051  * base class.
1052  *
1053  * Additional documentation for the callback methods of a constraint handler can be found in the file
1054  * type_cons.h.
1055  *
1056  * Here is what you have to do (assuming your constraint handler should be named "subtour"):
1057  * -# Copy the template files src/scip/cons_xyz.c and src/scip/cons_xyz.h into files "cons_subtour.c"
1058  * and "cons_subtour.h".
1059  * \n
1060  * Make sure to <b>adjust your Makefile</b> such that these files are compiled and linked to your project.
1061  * -# Use SCIPincludeConsSubtour() in order to include the constraint handler into your SCIP instance,
1062  * e.g., in the main file of your project (see, e.g., src/cppmain.cpp in the TSP example).
1063  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "subtour".
1064  * -# Adjust the \ref CONS_PROPERTIES "properties of the constraint handler".
1065  * -# Define the \ref CONS_DATA "constraint data and the constraint handler data". This is optional.
1066  * -# Implement the \ref CONS_INTERFACE "interface methods".
1067  * -# Implement the \ref CONS_FUNDAMENTALCALLBACKS "fundamental callback methods".
1068  * -# Implement the \ref CONS_ADDITIONALCALLBACKS "additional callback methods". This is optional.
1069  *
1070  *
1071  * @section CONS_PROPERTIES Properties of a Constraint Handler
1072  *
1073  * At the top of the new file "cons_subtour.c" you can find the constraint handler properties.
1074  * These are given as compiler defines. Some of them are optional, as, e.g., separation-related properties,
1075  * which only have to be defined if the constraint handler supports the related callbacks.
1076  * In the C++ wrapper class, you have to provide the constraint handler properties by calling the constructor
1077  * of the abstract base class scip::ObjConshdlr from within your constructor (see the TSP example).
1078  * The properties you have to set have the following meaning:
1079  *
1080  * @subsection CONS_FUNDAMENTALPROPERTIES Fundamental Constraint Handler properties
1081  *
1082  * \par CONSHDLR_NAME: the name of the constraint handler.
1083  * This name is used in the interactive shell to address the constraint handler.
1084  * Additionally, if you are searching for a constraint handler with SCIPfindConshdlr(), this name is looked up.
1085  * Names have to be unique: no two constraint handlers may have the same name.
1086  *
1087  * \par CONSHDLR_DESC: the description of the constraint handler.
1088  * This string is printed as a description of the constraint handler in the interactive shell of SCIP.
1089  *
1090  * \par CONSHDLR_ENFOPRIORITY: the priority of the constraint handler for constraint enforcing.
1091  * Like the separation priority, the enforcement priorities define the order in which the different constraint handlers
1092  * are called in the constraint enforcement step of the subproblem processing.
1093  * The constraint enforcement is called after the price-and-cut loop is executed (in the case that the LP is solved
1094  * at the current subproblem).
1095  * \n
1096  * The integrality constraint handler has an enforcement priority of 0.
1097  * That means, if a constraint handler has negative enforcement priority, it only has to deal with integral solutions
1098  * in its enforcement methods, because for fractional solutions, the integrality constraint handler would have
1099  * created a branching, thereby aborting the enforcement step.
1100  * If you want to implement a constraint-depending branching rule (for example, SOS branching on special ordered
1101  * set constraints), you have to assign a positive enforcement priority to your constraint handler.
1102  * In this case, you have to be able to deal with fractional solutions.
1103  * \n
1104  * See \ref CONSENFOLP and \ref CONSENFOPS for further details of the separation callback.
1105  *
1106  * \par CONSHDLR_CHECKPRIORITY: the priority of the constraint handler for checking feasibility.
1107  * Like the separation priority, the checking priorities define the order in which the different constraint handlers
1108  * are called to check the feasibility of a given primal solution candidate.
1109  * The integrality constraint handler has a checking priority of 0.
1110  * That means, constraint handlers with negative checking priorities only have to deal with integral solutions.
1111  *
1112  * \par CONSHDLR_EAGERFREQ: the default frequency for using all instead of only the useful constraints in separation, propagation and enforcement.
1113  * If \em constraint \em aging is activated, some constraints that were not useful in the past for propagation or
1114  * separation are marked to be \em obsolete.
1115  * Usually, the obsolete constraints are not presented to the separation and propagation methods of the constraint
1116  * handlers, such that the constraint handlers only process the non-obsolete constraints.
1117  * However, every n'th call, with n being the EAGERFREQ of the constraint handler, all constraints are presented to the
1118  * separation and propagation methods of the constraint handler.
1119  * This gives obsolete constraints the chance of becoming non-obsolete again.
1120  * \n
1121  * If the eager evaluation frequency is set to -1, obsolete constraints are never presented to the separation and
1122  * propagation methods.
1123  * A frequency of 0 means, that obsolete constraints are only used in the first call of each method.
1124  *
1125  * \par CONSHDLR_NEEDSCONS: indicates whether the constraint handler should be skipped, if no constraints are available.
1126  * Usually, a constraint handler is only executed if there are constraints of its corresponding class in the model.
1127  * For those constraint handlers, the NEEDSCONS flag should be set to TRUE.
1128  * However, some constraint handlers must be called without having a constraint of the class in the model, because
1129  * the constraint is only implicitly available.
1130  * For example, the integrality constraint handler has the NEEDSCONS flag set to FALSE, because there is no explicit
1131  * integrality constraint in the model.
1132  * The integrality conditions are attached to the variables, and the integrality constraint handler has to check
1133  * all variables that are marked to be integer for integral values.
1134  *
1135  * @subsection CONS_ADDITIONALPROPERTIES Optional Constraint Handler properties
1136  *
1137  * The following properties are optional and only need to be defined if the constraint handlers support
1138  * separation, presolving, propagation, and/or upgrade functionality.
1139  *
1140  * \par LINCONSUPGD_PRIORITY: priority of the constraint handler for upgrading of linear constraints
1141  * This property is only needed if a certain linear constraint can be upgraded to a more specific one. In one of
1142  * the first presolving rounds SCIP tries to upgrade linear constraints to more specialized constraints, such as
1143  * knapsack constraints. The upgrading calls are processed in the order of decreasing priority.
1144  *
1145  * \par NONLINCONSUPGD_PRIORITY: priority of the constraint handler for upgrading of nonlinear constraints
1146  * This property has the same effect as the LINCONSUPGD_PRIORITY parameter, see above, and should be set whenever
1147  * an upgrade functionality from a general nonlinear constraint to the more specific one is defined.
1148  *
1149  * \par CONSHDLR_SEPAFREQ: the default frequency for separating cuts.
1150  * The separation frequency defines the depth levels at which the constraint handler's separation methods \ref CONSSEPALP
1151  * and \ref CONSSEPASOL are called.
1152  * For example, a separation frequency of 7 means, that the separation callback is executed for subproblems that are
1153  * in depth 0, 7, 14, ... of the branching tree.
1154  * A separation frequency of 0 means, that the separation method is only called at the root node.
1155  * A separation frequency of -1 disables the separation method of the constraint handler.
1156  * \n
1157  * The separation frequency can be adjusted by the user.
1158  * This property of the constraint handler only defines the default value of the frequency.
1159  * If you want to have a more flexible control of when to execute the separation algorithm, you have to assign
1160  * a separation frequency of 1 and implement a check at the beginning of your separation algorithm whether you really
1161  * want to execute the separator or not.
1162  * If you do not want to execute the method, set the result code to SCIP_DIDNOTRUN.
1163  *
1164  * \par CONSHDLR_SEPAPRIORITY: the priority of the constraint handler for separation. (optional: to be set only if the constraint handler supports separation)
1165  * In each separation round during the price-and-cut loop of the subproblem processing or during the separation loop
1166  * of the primal solution separation, the separators and separation methods of the constraint handlers are called in
1167  * a predefined order, which is given by the priorities of the separators and the separation priorities of the
1168  * constraint handlers.
1169  * First, the separators with non-negative priority are called in the order of decreasing priority.
1170  * Next, the separation methods of the different constraint handlers are called in the order of decreasing separation
1171  * priority.
1172  * Finally, the separators with negative priority are called in the order of decreasing priority.
1173  * \n
1174  * The separation priority of the constraint handler should be set according to the complexity of the cut separation
1175  * algorithm and the impact of the resulting cuts:
1176  * Constraint handlers that provide fast algorithms that usually have a high impact (i.e., cut off a large portion of
1177  * the LP relaxation) should have a high priority.
1178  * See \ref CONSSEPALP and \ref CONSSEPASOL for further details of the separation callbacks.
1179  *
1180  * \par CONSHDLR_DELAYSEPA: the default for whether the separation method should be delayed, if other separators found cuts.
1181  * If the constraint handler's separation method is marked to be delayed, it is only executed after no other separator
1182  * or constraint handler found a cut during the price-and-cut loop.
1183  * If the separation method of the constraint handler is very expensive, you may want to mark it to be delayed until all
1184  * cheap separation methods have been executed.
1185  *
1186  * \par CONSHDLR_PROPFREQ: the default frequency for propagating domains.
1187  * This default frequency has the same meaning as the CONSHDLR_SEPAFREQ with respect to the domain propagation
1188  * callback of the constraint handler.
1189  * A propagation frequency of 0 means that propagation is only applied in preprocessing and at the root node.
1190  * A propagation frequency of -1 disables the propagation method of the constraint handler.
1191  *
1192  * \par CONSHDLR_DELAYPROP: the default for whether the propagation method should be delayed, if other propagators found reductions.
1193  * This property is analogous to the DELAYSEPA flag, but deals with the propagation method of the constraint handler.
1194  *
1195  * \par CONSHDLR_PROP_TIMING: the propagation timing mask of the constraint handler.
1196  * SCIP calls the domain propagation routines at different places in the node processing loop.
1197  * This property indicates at which places the propagation routine of the constraint handler is called.
1198  * Possible values are defined in type_timing.h and can be concatenated, e.g., as in SCIP_PROPTIMING_ALWAYS.
1199  *
1200  * \par CONSHDLR_PRESOLTIMING: the timing of the constraint handler's presolving method (FAST, MEDIUM, or EXHAUSTIVE).
1201  * Every presolving round starts with the FAST presolving methods. MEDIUM presolvers are only called, if FAST presolvers did not find
1202  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
1203  * in this round were unsuccessful.
1204  * Presolving methods should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
1205  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
1206  * If a presolving method implements different algorithms of different complexity, it may also get multiple timings and check the timing
1207  * internally in the \ref CONSPRESOL callback to decide which algorithms to run.
1208  *
1209  * \par CONSHDLR_MAXPREROUNDS: the default maximal number of presolving rounds the constraint handler participates in.
1210  * The preprocessing is executed in rounds.
1211  * If enough changes have been applied to the model, an additional preprocessing round is performed.
1212  * The MAXPREROUNDS parameter of a constraint handler denotes the maximal number of preprocessing rounds the constraint
1213  * handler participates in.
1214  * A value of -1 means that there is no limit on the number of rounds.
1215  * A value of 0 means the preprocessing callback of the constraint handler is disabled.
1216  *
1217  *
1218  *
1219  * @section CONS_DATA Constraint Data and Constraint Handler Data
1220  *
1221  * Below the header "Data structures" you can find two structs called "struct SCIP_ConsData" and
1222  * "struct SCIP_ConshdlrData".
1223  * If you are using C++, you only need to define the "struct SCIP_ConsData".
1224  * The constraint handler data must be implemented as member variables of your constraint handler class.
1225  * \n
1226  * The constraint data are the information that is needed to define a single constraint of the constraint handler's
1227  * constraint class.
1228  * For example, the data of a knapsack constraint would consist of a list of variables, a list of weights, and
1229  * the capacity of the knapsack.
1230  * The data of a subtour constraint consists of the graph on which the problem is defined.
1231  * In the graph, each edge should be linked to the corresponding binary problem variable.
1232  * \n
1233  * The constraint handler data are additional variables, that belong to the constraint handler itself and which are
1234  * not specific to a single constraint.
1235  * For example, you can use these data to store parameters of the constraint handler or statistical information.
1236  * The constraint handler data are optional.
1237  * You can leave the struct empty.
1238  *
1239  *
1240  * @section CONS_INTERFACE Interface Methods
1241  *
1242  * At the bottom of "cons_subtour.c" you can find three interface methods, that also appear in "cons_subtour.h".
1243  * These are SCIPincludeConshdlrSubtour(), SCIPcreateConsSubtour(), and SCIPcreateConsSubtourBasic().
1244  * \n
1245  * The method SCIPincludeConshdlrSubtour() only has to be adjusted slightly.
1246  * It is responsible for notifying SCIP of the presence of the constraint handler by calling the method
1247  * SCIPincludeConshdlr().
1248  * It is called by the user, if (s)he wants to include the constraint handler, i.e., if (s)he wants to make
1249  * the constraint handler available to the model, and looks like this:
1250  * \dontinclude src/scip/cons_knapsack.c
1251  * -# If you are using constraint handler data, you have to <b>allocate the memory for the data</b> at this point.
1252  * You also have to initialize the fields in struct SCIP_ConshdlrData afterwards.
1253  *
1254  * \skip SCIP_RETCODE SCIPincludeConshdlrKnapsack(
1255  * \until SCIPallocBlockMemory
1256  *
1257  * -# Now, <b>SCIP gets notified</b> of the presence of the constraint handler together with its \ref CONS_FUNDAMENTALCALLBACKS "basic callbacks".
1258  *
1259  * \skip SCIPincludeConshdlrBasic
1260  * \until assert
1261  *
1262  * -# All \ref CONS_ADDITIONALCALLBACKS "additional callbacks" are added via their setter functions.
1263  *
1264  * \skip SCIPsetConshdlrCopy
1265  * \until SCIPsetConshdlrExit
1266  *
1267  * -# If the constraint handler is a specialization of a general linear or nonlinear constraint, we want to include an
1268  * <b>automatic upgrading mechanism</b> by calling the interface method
1269  *
1270  * \skip SCIPfindConshdlr
1271  * \until SCIPincludeLinconsUpgrade
1272  * or
1273  * \code
1274  * SCIP_CALL( SCIPincludeNonlinconsUpgrade(scip, nonlinconsUpgdSubtour, NULL, NONLINCONSUPGD_PRIORITY, TRUE, CONSHDLR_NAME) );
1275  * \endcode
1276  *
1277  * in the nonlinear case. See also cons_nonlinear.h for further information about the general upgrade procedure in the nonlinear case.
1278  * -# You may also add <b>user parameters</b> for your constraint handler.
1279  * Some parameters which are important to play with are added to every constraint automatically, as, e.g.,
1280  * propagation or separation frequency.
1281  * \skip SCIPaddIntParam
1282  * \until DEFAULT_SEPACARDFREQ
1283  * \skip SCIP_OKAY
1284  * \until }
1285  *
1286  *
1287  * The methods SCIPcreateConsSubtour() and SCIPcreateConsSubtourBasic() are called to create a single constraint of the constraint
1288  * handler's constraint class.
1289  * It should allocate and fill the constraint data, and call SCIPcreateCons().
1290  * Take a look at the following example from the \ref cons_knapsack.h "knapsack constraint handler":
1291  *
1292  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsCreationKnapsack}
1293  *
1294  * In this example, consdataCreate() is a local method that allocates memory for the given consdata
1295  * and fills the data with the given <code>vars</code> array. For allocating memory for the constraint data, you
1296  * can use SCIP memory allocation:
1297  * \code
1298  * SCIP_CALL( SCIPallocBlockMemory(scip, consdata) );
1299  * \endcode
1300  *
1301  *
1302  * @section CONS_CALLBACKS Callback methods of Constraint handlers
1303  *
1304  * Besides the various functions which you will implement inside your constraint handler there exists a number
1305  * of <b> callback methods </b> associated with your constraint handler. Callback methods can be regarded as
1306  * tasks which your constraint handler is able to provide to the solver. They are grouped into two
1307  * categories:
1308  *
1309  * \ref CONS_FUNDAMENTALCALLBACKS "Fundamental Callback methods" are mandatory to implement
1310  * such that your code will work. For example, every constraint handler has to provide the
1311  * functionality to state whether all of its constraints are
1312  * fulfilled by a given variable assignment. Hence, the \ref CONSCHECK "CONSCHECK" callback is
1313  * one of the fundamental (or \a basic) callbacks of a constraint handler.
1314  *
1315  * Callbacks which are not necessarily implemented are grouped together as
1316  * \ref CONS_ADDITIONALCALLBACKS "additional callbacks". Such callbacks can be used to allocate and free memory
1317  * at different stages of the solving process. Although not mandatory, it might be useful to implement
1318  * some of these callbacks, e.g., to extend your constraint handler by a
1319  * \ref CONSSEPALP "separation" or \ref CONSPRESOL "presolving" functionality.
1320  *
1321  * All callbacks should be passed to SCIP during the SCIPinclude<PLUGINTYPE><PLUGINNAME> method
1322  * (e.g., SCIPincludeConshdlrKnapsack() for the \ref cons_knapsack.h "knapsack constraint handler").
1323  * Since SCIP version 3.0, two ways of setting callbacks can be used, either via SCIPincludeConshdlr()
1324  * (all at once, as it always was), or via SCIPincludeConshdlrBasic() and setter functions for additional callbacks.
1325  * Since the basic inclusion methods are very unlikely to change and will thus
1326  * make your code more stable towards future versions of SCIP with more callbacks,
1327  * we recommend the latter choice, as explained in the \ref CONS_INTERFACE "interface" section.
1328  *
1329  * @section CONS_FUNDAMENTALCALLBACKS Fundamental Callback Methods
1330  *
1331  * By implementing the fundamental callbacks, you define the semantics of the constraint class the constraint handler
1332  * deals with.
1333  * If these methods are implemented, the resulting code is already correct and finds the optimal solution to the
1334  * given problem instance.
1335  * However, it might be very slow because the additional features, like cut separation and domain propagation, are
1336  * missing.
1337  * In the C++ wrapper class scip::ObjConshdlr, the fundamental callback methods are virtual abstract member functions.
1338  * You have to implement them in order to be able to construct an object of your constraint handler class.
1339  *
1340  * There are three fundamental callback methods that are all dealing with the feasibility of a given solution.
1341  * They are called at different places in the algorithm and have slightly different meaning.
1342  * However, it is usually reasonable to implement a single local method that is called by all of the three callback
1343  * methods with slightly modified parameters.
1344  * The fourth method provides dual information that is used for example in preprocessing.
1345  *
1346  * Additional documentation for the callback methods can be found in type_cons.h.
1347  *
1348  * @subsection CONSCHECK
1349  *
1350  * The CONSCHECK callback gets a primal solution candidate in a SCIP_SOL* data structure
1351  * and has to check this solution for global feasibility.
1352  * It has to return a result SCIP_FEASIBLE, if the solution satisfies all the constraints of the constraint handler,
1353  * and a result SCIP_INFEASIBLE if there is at least one constraint that is violated.
1354  * The callback is used by primal heuristics to check a constructed solution for feasibility.
1355  * That means, the constraint handler has to deal with arbitrary solutions that do not necessarily satisfy the bounds
1356  * and constraints of the local subproblem.
1357  *
1358  * The value of a variable \em var in the given solution \em sol can be accessed by calling
1359  * \code
1360  * SCIPgetSolVal(scip, sol, var)
1361  * \endcode
1362  *
1363  * For example, the \ref cons_knapsack.h "knapsack constraint handler" loops over its constraints and
1364  * calculates the scalar product \f$w^T x\f$ of weights \f$w\f$ with the solution vector \f$x\f$.
1365  * This scalar product is compared with the capacity of the knapsack constraint.
1366  * If it exceeds the capacity, the CONSCHECK method is immediately aborted with the result SCIP_INFEASIBLE.
1367  * If all knapsack constraints are satisfied, a result SCIP_FEASIBLE is returned.
1368  *
1369  * @subsection CONSENFOLP
1370  *
1371  * The CONSENFOLP method is called after the price-and-cut loop was finished and an LP solution is available.
1372  * Like the CHECK call, the ENFOLP method should return a result SCIP_FEASIBLE, if the solution satisfies all the
1373  * constraints.
1374  * However, the behavior should be different, if the solution violates some of the associated constraints.
1375  * The constraint handler may return a result SCIP_INFEASIBLE in this situation, but this is not the best what
1376  * one can do.
1377  * The ENFOLP method has the possibility of \em resolving the infeasibility by
1378  * - stating that the current subproblem is infeasible (result SCIP_CUTOFF),
1379  * - adding an additional constraint that resolves the infeasibility (result SCIP_CONSADDED),
1380  * - reducing the domain of a variable (result SCIP_REDUCEDDOM),
1381  * - adding a cutting plane (result SCIP_SEPARATED),
1382  * - performing a branching (result SCIP_BRANCHED).
1383  *
1384  * However, the solution is not given as a SCIP_SOL* data structure.
1385  *
1386  * The value of a variable <code>var</code> in the LP solution can be accessed by calling
1387  * \code
1388  * SCIPgetVarSol(scip, var)
1389  * \endcode
1390  * or by
1391  * \code
1392  * SCIPgetSolVal(scip, NULL, var)
1393  * \endcode
1394  * By using the latter method, you can have a single local method to check a solution for feasibility by passing
1395  * the given <code>sol</code> to the CONSCHECK call and by passing a NULL pointer as <code>sol</code> to
1396  * the CONSENFOLP and CONSENFOPS calls.
1397  *
1398  *
1399  * @subsection CONSENFOPS
1400  *
1401  * The CONSENFOPS callback is similar to the CONSENFOLP callback, but deals with \em pseudo \em solutions instead
1402  * of LP solutions.
1403  *
1404  * If the LP was not solved at the current subproblem (either because the user did not want to solve it, or because
1405  * numerical difficulties in the LP solving process were detected) no LP solution is available.
1406  * In this situation, the pseudo solution is used instead.
1407  * In this solution, the variables are set to the local bound which is best with respect to the objective function.
1408  * You can think of the pseudo solution as solution to the LP relaxation with all constraints except the bounds
1409  * being removed.
1410  *
1411  * Like the ENFOLP callback, the ENFOPS callback has to check whether the pseudo solution satisfies all the constraints
1412  * of the constraint handler.
1413  * The pseudo solution can be accessed by the same methods as the LP solution (SCIP knows, if the LP was solved at the
1414  * current subproblem, and returns either the LP solution or the pseudo solution).
1415  *
1416  * Unlike the ENFOLP callback, the ENFOPS callback must not add cuts and cannot return the result SCIP_SEPARATED.
1417  * It is, however, possible to force the solving of the LP by returning the result SCIP_SOLVELP.
1418  * For example, the infeasibility of a linear constraint that contains continuous variables cannot be resolved,
1419  * if all integer variables in the constraint are already fixed.
1420  * In this case, the LP has to be solved in order to get a solution that satisfies the linear constraint.
1421  *
1422  * @subsection CONSLOCK
1423  *
1424  * The CONSLOCK callback provides dual information for a single constraint.
1425  * It has to tell SCIP, which variables are existing in the given constraint, and in which way modifications of these
1426  * variables may affect the feasibility of the constraint.
1427  *
1428  * For each variable that is affected by the constraint, the callback should call SCIPaddVarLocks():
1429  * - If the constraint may become violated by decreasing the value of a variable, it should call
1430  * SCIPaddVarLocks(scip, var, nlockspos, nlocksneg), saying that rounding down is potentially rendering the
1431  * (positive) constraint infeasible and rounding up is potentially rendering the negation of the constraint
1432  * infeasible.
1433  * - If the constraint may become violated by increasing the value of a variable, it should call
1434  * SCIPaddVarLocks(scip, var, nlocksneg, nlockspos), saying that rounding up is potentially rendering the
1435  * constraint's negation infeasible and rounding down is potentially rendering the constraint itself
1436  * infeasible.
1437  * - If the constraint may become violated by changing the variable in any direction, it should call
1438  * SCIPaddVarLocks(scip, var, nlockspos + nlocksneg, nlockspos + nlocksneg).
1439  *
1440  * <b>Note:</b> You do not have to worry about nlockspos and nlocksneg. These integer values are given as
1441  * parameter of the CONSLOCK callback (see type_cons.h). Just use these variables in the above described
1442  * fashion <b>without</b> adding or subtracting anything to them. In case of the knapsack constraints this
1443  * method looks like this.
1444  *
1445  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsLockKnapsack}
1446  *
1447  * To give same more intuition, consider the linear constraint \f$3x -5y +2z \leq 7\f$ as an example.
1448  * The CONSLOCK callback method of the linear constraint handler should call
1449  * SCIPaddVarLocks(scip, x, nlocksneg, nlockspos), SCIPaddVarLocks(scip, y, nlockspos, nlocksneg),
1450  * and SCIPaddVarLocks(scip, z, nlocksneg, nlockspos) to tell SCIP, that rounding up of \f$x\f$
1451  * and \f$z\f$ and rounding down of \f$y\f$ can destroy the feasibility of the constraint, while rounding
1452  * down of \f$x\f$ and \f$z\f$ and rounding up of \f$y\f$ can destroy the feasibility of the
1453  * constraint's negation \f$3x -5y +2z > 7\f$.
1454  * \n
1455  * A linear constraint \f$2 \leq 3x -5y +2z \leq 7\f$ should call
1456  * SCIPaddVarLocks(scip, ..., nlockspos + nlocksneg, nlockspos + nlocksneg) on all variables,
1457  * since rounding in both directions of each variable can destroy both the feasibility of the
1458  * constraint and it's negation \f$3x -5y +2z < 2\f$ or \f$3x -5y +2z > 7\f$.
1459  *
1460  *
1461  * @section CONS_ADDITIONALCALLBACKS Additional Callback Methods
1462  *
1463  * The additional callback methods do not need to be implemented in every case, but provide useful functionality
1464  * for many applications. They can be added to your constraint handler via setter functions, see
1465  * \ref CONS_INTERFACE "here".
1466  *
1467  * @subsection CONSFREE
1468  *
1469  * If you are using constraint handler data, you have to implement this method in order to free the
1470  * constraint handler data. This can be done by the following procedure (which is taken from the
1471  * \ref cons_knapsack.h "knapsack constraint handler"):
1472  *
1473  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsFreeKnapsack}
1474  *
1475  * If you have allocated memory for fields in your constraint handler data, remember to free this memory
1476  * before freeing the constraint handler data itself.
1477  * If you are using the C++ wrapper class, this method is not available.
1478  * Instead, just use the destructor of your class to free the member variables of your class.
1479  *
1480  * @subsection CONSHDLRCOPY
1481  *
1482  * The CONSHDLRCOPY callback is executed when the SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
1483  * callback as <code>NULL</code> the user disables the inclusion of the specified constraint handler into all copied SCIP
1484  * instances. This may deteriorate the performance of primal heuristics solving sub-SCIPs, since these constitute only
1485  * relaxations of the original problem if constraint handlers are missing.
1486  *
1487  * A usual implementation just
1488  * calls the interface method which includes the constraint handler to the model. For example, this callback is
1489  * implemented for the \ref cons_knapsack.c "knapsack constraint handler" as follows:
1490  *
1491  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsCopyKnapsack}
1492  *
1493  * <b>Note:</b> If you implement this callback, take care when setting the valid pointer.
1494  *
1495  * A problem copy is called valid if it is valid in both the primal and the dual sense, i.e., if
1496  *
1497  * - it is a relaxation of the source problem
1498  * - it does not enlarge the feasible region.
1499  *
1500  * A constraint handler may choose to not copy a constraint and still declare the resulting copy as valid. It must ensure
1501  * the feasibility of any solution to the problem copy in the original (source) space.
1502  *
1503  * <b>Note:</b> If you implement this callback and the constraint handler needs constraints (see CONSHDLR_NEEDSCONS),
1504  * then you also need to implement the callback \ref CONSCOPY.
1505  *
1506  * @subsection CONSINIT
1507  *
1508  * The CONSINIT callback is executed after the problem is transformed.
1509  * The constraint handler may, e.g., use this call to replace the original variables in its constraints by transformed
1510  * variables, or to initialize its statistical constraint handler data.
1511  *
1512  * @subsection CONSEXIT
1513  *
1514  * The CONSEXIT callback is executed before the transformed problem is freed.
1515  * In this method, the constraint handler should free all resources that were allocated for the solving process.
1516  *
1517  * @subsection CONSINITPRE
1518  *
1519  * The CONSINITPRE callback is executed before the preprocessing is started, even if presolving is turned off.
1520  * The constraint handler may use this call to initialize its presolving data, or to modify its constraints
1521  * before the presolving process begins.
1522  * Necessary constraint modifications that have to be performed even if presolving is turned off should be done here
1523  * or in the presolving deinitialization call.
1524  *
1525  * @subsection CONSEXITPRE
1526  *
1527  * The CONSEXITPRE callback is executed after the preprocessing has been finished, even if presolving is turned off.
1528  * The constraint handler may use this call e.g. to clean up its presolving data, or to finally modify its constraints
1529  * before the branch-and-bound process begins.
1530  * Necessary constraint modifications that have to be performed even if presolving is turned off should be done here
1531  * or in the presolving initialization call.
1532  * Besides necessary modifications and clean up, no time consuming operations should be done.
1533  *
1534  * @subsection CONSINITSOL
1535  *
1536  * The CONSINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
1537  * begin.
1538  * The constraint handler may use this call to initialize its branch-and-bound specific data.
1539  *
1540  * @subsection CONSEXITSOL
1541  *
1542  * The CONSEXITSOL callback is executed before the branch-and-bound process is freed.
1543  * The constraint handler should use this call to clean up its branch-and-bound data, in particular to release
1544  * all LP rows that it has created or captured.
1545  *
1546  * @subsection CONSDELETE
1547  *
1548  * The CONSDELETE callback is executed if a constraint should be freed.
1549  * You can think of it as the destructor of a single constraint.
1550  * In the callback, you have to free the given constraint data.
1551  * The CONSDELETE callback is therefore the counterpart of the SCIPcreateCons...() interface method and the CONSTRANS
1552  * method.
1553  *
1554  * @subsection CONSTRANS
1555  *
1556  * The CONSTRANS method is called for each constraint of the constraint handler, when the user starts the solving
1557  * process.
1558  * It has to copy the original constraint data of the constraint to the memory for the transformed problem.
1559  * You can think of it as a copy constructor for a single constraint.
1560  *
1561  * The original model is copied in order to protect it from transformations that are applied during the solving process,
1562  * in particular during preprocessing.
1563  * Preprocessing and solving always operates on the transformed problem.
1564  * If the solving process data are freed, the original data still exist and the user can, e.g., modify the problem and
1565  * restart the solving process.
1566  *
1567  * If you do not implement the CONSTRANS method, a transformed constraint is created with the same flags and the
1568  * same constraint data pointer.
1569  * That means, the transformed constraint points to the original constraint data.
1570  * This is okay, as long as the constraint data is not changed during the solving process.
1571  * If you want to implement preprocessing methods or other methods that modify the constraint data, you have to
1572  * implement the CONSTRANS method and create a copy of the constraint data.
1573  *
1574  * Here is an example, which is taken from the \ref cons_knapsack.h "knapsack constraint handler":
1575  *
1576  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsTransKnapsack}
1577  *
1578  * @subsection CONSINITLP
1579  *
1580  * The CONSINITLP callback is executed before the first LP relaxation is solved.
1581  * It should add the LP relaxations of all "initial" constraints to the LP. The method should scan the constraints
1582  * array for constraints that are marked initial via calls to SCIPconsIsInitial() and put the LP relaxation
1583  * of all initial constraints to the LP with calls to SCIPaddCut().
1584  *
1585  * @subsection CONSSEPALP
1586  *
1587  * The CONSSEPALP callback is executed during the price-and-cut loop of the subproblem processing.
1588  * It should try to generate cutting planes for the constraints of the constraint handler in order to separate
1589  * the current LP solution.
1590  * The method is called in the LP solution loop, which means that a valid LP solution exists.
1591  *
1592  * Usually, a separation callback searches and produces cuts, that are added with a call to SCIPaddCut().
1593  * If the cut should be remembered in the global cut pool, it may also call SCIPaddPoolCut().
1594  * However, the callback may also produce domain reductions or add other constraints.
1595  *
1596  * The CONSSEPALP callback has the following options:
1597  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1598  * - adding an additional constraint (result SCIP_CONSADDED)
1599  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1600  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
1601  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
1602  * (result SCIP_DIDNOTFIND)
1603  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
1604  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
1605  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
1606  *
1607  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1608  * CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, and CONSHDLR_DELAYSEPA, which influence the behaviour of SCIP
1609  * calling CONSSEPALP.
1610  *
1611  * @subsection CONSSEPASOL
1612  *
1613  * The CONSSEPASOL callback is executed during separation loop on arbitrary primal solutions.
1614  * It should try to generate cutting planes for the constraints of the constraint handler in order to separate
1615  * the given primal solution.
1616  * The method is not called in the LP solution loop, which means that there is no valid LP solution.
1617  *
1618  * Usually, a separation callback searches and produces cuts, that are added with a call to SCIPaddCut().
1619  * If the cut should be remembered in the global cut pool, it may also call SCIPaddPoolCut().
1620  * However, the callback may also produce domain reductions or add other constraints.
1621  *
1622  * The CONSSEPASOL callback has the following options:
1623  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1624  * - adding an additional constraint (result SCIP_CONSADDED)
1625  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1626  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
1627  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
1628  * (result SCIP_DIDNOTFIND)
1629  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
1630  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
1631  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
1632  *
1633  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1634  * CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, and CONSHDLR_DELAYSEPA, which influence the behaviour of SCIP
1635  * calling CONSSEPASOL.
1636  *
1637  * @subsection CONSENFORELAX
1638  *
1639  * The CONSENFORELAX callback is similar to the CONSENFOLP and CONSENFOPS callbacks, but deals with relaxation solutions.
1640  *
1641  * If the best bound computed by a relaxator that includes the whole LP is strictly better than the bound of the LP itself,
1642  * the corresponding relaxation solution will get enforced. Therefore the CONSENFORELAX callback will only be called for
1643  * solutions that satisfy all active LP-constraints.
1644  *
1645  * Like the ENFOLP and ENFOPS callbacks, the ENFORELAX callback has to check whether the solution given in sol satisfies
1646  * all the constraints of the constraint handler. Since the callback is only called for relaxators including the whole LP,
1647  * cuts may be added with a result of SCIP_SEPARATED, like in the ENFOLP callback. It is also possible to return
1648  * SCIP_SOLVELP if the relaxation solution is invalid for some reason and the LP should be solved instead.
1649  *
1650  * Note that the CONSENFORELAX callback is only relevant if relaxators are used. Since the basic distribution of the
1651  * SCIP Optimization Suite does not contain any relaxators, this callback can be ignored unless any relaxators are added
1652  * via user-plugins.
1653  *
1654  * @subsection CONSPROP
1655  *
1656  * The CONSPROP callback is called during the subproblem processing.
1657  * It should propagate the constraints, which means that it should infer reductions in the variables' local bounds
1658  * from the current local bounds.
1659  * This technique, which is the main workhorse of constraint programming, is called "node preprocessing" in the
1660  * Integer Programming community.
1661  *
1662  * The CONSPROP callback has the following options:
1663  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1664  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1665  * - stating that the propagator searched, but did not find domain reductions, cutting planes, or cut constraints
1666  * (result SCIP_DIDNOTFIND)
1667  * - stating that the propagator was skipped (result SCIP_DIDNOTRUN)
1668  * - stating that the propagator was skipped, but should be called again (result SCIP_DELAYED)
1669  *
1670  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1671  * CONSHDLR_PROPFREQ, CONSHDLR_DELAYPROP, and CONSHDLR_PROP_TIMING, which influence the behaviour of SCIP
1672  * calling CONSPROP.
1673  *
1674  * @subsection CONSRESPROP
1675  *
1676  * If the constraint handler should support \ref CONF "conflict analysis", it has to supply a CONSRESPROP method.
1677  * It also should call SCIPinferVarLbCons() or SCIPinferVarUbCons() in domain propagation instead of SCIPchgVarLb() or
1678  * SCIPchgVarUb() in order to deduce bound changes on variables.
1679  * In the SCIPinferVarLbCons() and SCIPinferVarUbCons() calls, the handler provides the constraint that deduced the
1680  * variable's bound change, and an integer value <code>inferinfo</code> that can be arbitrarily chosen.
1681  *
1682  * The propagation conflict resolving method CONSRESPROP must then be implemented to provide the "reasons" for the bound
1683  * changes, i.e., the bounds of variables at the time of the propagation, which forced the constraint to set the
1684  * conflict variable's bound to its current value. It can use the <code>inferinfo</code> tag to identify its own propagation rule
1685  * and thus identify the "reason" bounds. The bounds that form the reason of the assignment must then be provided by
1686  * calls to SCIPaddConflictLb() and SCIPaddConflictUb() in the propagation conflict resolving method.
1687  *
1688  * <b>Note:</b> The fact that <code>inferinfo</code> is an integer, as opposed to an arbitrary data object, is a compromise between space and speed. Sometimes a propagator would
1689  * need more information to efficiently infer the original propagation steps that lead to the conflict. This would,
1690  * however, require too much space. In the extreme, the original propagation steps have to be repeated.
1691  *
1692  * For example, the \ref cons_logicor.h "logicor constraint" \f$c = x \vee y \vee z\f$ fixes variable \f$z\f$ to TRUE (i.e., changes the lower
1693  * bound of \f$z\f$ to 1.0), if both, \f$x\f$ and \f$y\f$, are assigned to FALSE (i.e., if the upper bounds of these
1694  * variables are 0.0). It uses <code>SCIPinferVarLbCons(scip, z, 1.0, c, 0)</code> to apply this assignment (an
1695  * inference information tag is not needed by the constraint handler and is set to 0). In the conflict analysis, the
1696  * constraint handler may be asked to resolve the lower bound change on \f$z\f$ with constraint \f$c\f$, that was
1697  * applied at a time given by a bound change index "bdchgidx". With a call to <code>SCIPvarGetLbAtIndex(z,
1698  * bdchgidx)</code>, the handler can find out, that the lower bound of variable \f$z\f$ was set to 1.0 at the given
1699  * point of time, and should call <code>SCIPaddConflictUb(scip, x, bdchgidx)</code> and <code>SCIPaddConflictUb(scip, y,
1700  * bdchgidx)</code> to tell SCIP, that the upper bounds of \f$x\f$ and \f$y\f$ at this point of time were the reason for
1701  * the deduction of the lower bound of \f$z\f$.
1702  *
1703  * If conflict analysis should not be supported, the method has to set the result code to SCIP_DIDNOTFIND. Although
1704  * this is a viable approach to circumvent the implementation of the usually rather complex conflict resolving method, it
1705  * will make the conflict analysis less effective. We suggest to first omit the conflict resolving method and check how
1706  * effective the \ref CONSPROP "propagation method" is. If it produces a lot of propagations for your application, you definitely should
1707  * consider implementing the conflict resolving method.
1708  *
1709  * @subsection CONSPRESOL
1710  *
1711  * The CONSPRESOL callback is called during preprocessing.
1712  * It should try to tighten the domains of the variables, tighten the coefficients of the constraints of the constraint
1713  * handler, delete redundant constraints, aggregate and fix variables if possible, and upgrade constraints to more
1714  * specific types.
1715  *
1716  * If the CONSPRESOL callback applies changes to the constraint data, you also have to implement the \ref CONSTRANS callback
1717  * in order to copy the constraint data to the transformed problem space and protect the original problem from the
1718  * preprocessing changes.
1719  *
1720  * To inform SCIP that the presolving method found a reduction the result pointer has to be set in a proper way.
1721  * The following options are possible:
1722  *
1723  * - SCIP_UNBOUNDED : at least one variable is not bounded by any constraint in objective direction
1724  * - SCIP_CUTOFF : at least one constraint is infeasible in the variable's bounds
1725  * - SCIP_SUCCESS : the presolver found a reduction
1726  * - SCIP_DIDNOTFIND : the presolver searched, but did not find a presolving change
1727  * - SCIP_DIDNOTRUN : the presolver was skipped
1728  * - SCIP_DELAYED : the presolver was skipped, but should be called again
1729  *
1730  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1731  * CONSHDLR_PRESOLTIMING and CONSHDLR_MAXPREROUNDS, which influence the behaviour of SCIP
1732  * calling CONSPRESOL.
1733  *
1734  * @subsection CONSACTIVE
1735  *
1736  * The CONSACTIVE callback method is called each time a constraint of the constraint handler is activated.
1737  * For example, if a constraint is added locally to a subproblem, the CONSACTIVE callback is called whenever the
1738  * search enters the subtree where the constraint exists.
1739  *
1740  * @subsection CONSDEACTIVE
1741  *
1742  * The CONSDEACTIVE callback method is called each time a constraint of the constraint handler is deactivated.
1743  * For example, if a constraint is added locally to a subproblem, the CONSDEACTIVE callback is called whenever the
1744  * search leaves the subtree where the constraint exists.
1745  *
1746  * @subsection CONSENABLE
1747  *
1748  * The CONSENABLE callback method is called each time a constraint of the constraint handler is enabled.
1749  * Constraints might be active without being enabled. In this case, only the feasibility checks are executed,
1750  * but domain propagation and separation is skipped.
1751  *
1752  * @subsection CONSDISABLE
1753  *
1754  * The CONSDISABLE callback method is called each time a constraint of the constraint handler is disabled.
1755  *
1756  * @subsection CONSPRINT
1757  *
1758  * The CONSPRINT callback method is called, when the user asks SCIP to display the problem to the screen
1759  * or save the problem into a file. This is, however, only the case if the user requested the CIP format.
1760  * For more details about reading and writing with SCIP we refer to the \ref READER "file readers". In this
1761  * callback method the constraint handler should display the data of the constraint in an appropriate form.
1762  * The output format that is defined by the CONSPRINT callbacks is called CIP format.
1763  * In later versions of SCIP, the constraint handlers should also be able to parse (i.e., read) constraints
1764  * which are given in CIP format.
1765  *
1766  * @subsection CONSCOPY
1767  *
1768  * The CONSCOPY callback method is used whenever constraints should be copied from one SCIP instance into another SCIP
1769  * instance. This method comes with the necessary parameters to do so, most importantly with a mapping of the variables of the
1770  * source SCIP instance to the corresponding variables of the target SCIP instance, and a mapping for the constraints
1771  * in the same way. For a complete list of all arguments of this callback method see type_cons.h.
1772  *
1773  * To get the corresponding target variable of a given source variable, you can use the variable map directly:
1774  *
1775  * \code
1776  * targetvar = (SCIP_VAR*) SCIPhashmapGetImage(varmap, sourcevar);
1777  * \endcode
1778  *
1779  * We recommend, however, to use the method SCIPgetVarCopy() which gets besides others the variable map and the constraint map as input
1780  * and returns the requested target variable. The advantage of using SCIPgetVarCopy() is that in the case
1781  * the required variable does not yet exist, it is created and added to the copy automatically:
1782  *
1783  * \code
1784  * SCIP_CALL( SCIPgetVarCopy(sourcescip, scip, sourcevar, &targetvar, varmap, consmap, global) );
1785  * \endcode
1786  *
1787  * Finally, the result pointer <code>valid</code> has to be set to TRUE if (and only if!) the copy process was successful.
1788  *
1789  * <b>Note:</b> Be careful when setting the valid pointer.
1790  * A problem copy is called valid if it is valid in both the primal and the dual sense, i.e., if
1791  *
1792  * - it is a relaxation of the source problem
1793  * - it does not enlarge the feasible region.
1794  *
1795  * A constraint handler may choose to not copy a constraint and still declare the resulting copy as valid. Therefore, it must ensure
1796  * the feasibility of any solution to the problem copy in the original (source) space.
1797  *
1798  * For an example implementation we refer to cons_linear.h. Additional documentation and the complete list of all
1799  * parameters can be found in the file in type_cons.h.
1800  *
1801  * @subsection CONSPARSE
1802  *
1803  * This method is the counter part to CONSPRINT. The ideal idea is that a constraint handler is able to parse the output
1804  * which it generated via the CONSPRINT method and creates the corresponding constraint. If the parsing was successfully
1805  * the result pointer success should be set to TRUE. An example implementation can be found in the \ref cons_linear.h
1806  * "linear constraint handler".
1807  *
1808  * @subsection CONSDELVARS
1809  *
1810  * This method should iterate over the given constraints and delete all variables that were marked for deletion by SCIPdelVar().
1811  * Variable deletion is especially interesting for branch-cut-and-price applications. If your constraint handler allows
1812  * the addition of variables during the solving process (see "modifiable" attribute of constraints), then you might also want to
1813  * implement this callback. This would allow you to not only create variables during solving, but also remove them dynamically
1814  * from the problem to reduce memory consumption in case they are no longer necessary.
1815  * During presolving, SCIP may also find that some variables are not needed anymore and then try
1816  * to delete them. Thus, if you do not implement this callback, the constraint handler should capture its variables via
1817  * SCIPcaptureVar() to prevent SCIP from erroneously deleting them.
1818  *
1819  * Additional documentation and the complete list of all parameters can be found in the file type_cons.h.
1820  *
1821  * @subsection CONSGETVARS
1822  *
1823  * The CONSGETVARS callback of a constraint handler can be implemented to give access to the constraint variables
1824  * as array, independently from the internal data structure of the constraint. The buffer array
1825  * is already passed, together with its length. Consider implementing @ref CONSGETNVARS, too, to have
1826  * information about the number of variables in this constraint.
1827  *
1828  * @subsection CONSGETNVARS
1829  *
1830  * This callback can be implemented to return the number of variables involved into a particular constraint.
1831  * In order to have access to the variable pointers, consider implementing @ref CONSGETVARS.
1832  *
1833  * @refsnippet{src/scip/cons_linear.c,Callback for the number of variables}
1834  *
1835  * @subsection CONSGETDIVEBDCHGS
1836  *
1837  * This callback is used inside the various diving heuristics of SCIP and does not affect the normal branching
1838  * of the actual search.
1839  * The constraint handler can provide this callback to render a current working solution (even more) infeasible by
1840  * suggesting one or several variable bound changes.
1841  *
1842  * @section CONS_FURTHERINFO Further documentation
1843  *
1844  * Further documentation can be found in @ref type_cons.h for callback descriptions and a complete
1845  * list of all callback parameters, or in @ref scip.h
1846  * for globally available functions.
1847  */
1848 
1849 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1850 
1851 /**@page PRICER How to add variable pricers
1852  *
1853  * A pricer performs the dynamic generation of new variables in a column generation algorithm.
1854  * It is an algorithmic representation of a (usually exponential) number of variables.
1855  * The \ref PRICERREDCOST and \ref PRICERFARKAS methods are called after each LP solve to generate additional
1856  * variables which may improve the objective value or decrease the LP infeasibility, respectively.
1857  * \n
1858  * A complete list of all pricers contained in this release can be found \ref PRICERS "here".
1859  *
1860  * If the pricer finds one or more variables with negative reduced costs or negative Farkas value, it should
1861  * call SCIPcreateVar() and SCIPaddPricedVar() to create and add the variable to the problem. Additionally,
1862  * the pricer has to add the variable to all constraints in which it appears. Therefore, a pricer needs to
1863  * know the constraints of the model and their meaning. Note that all constraints for which additional variables
1864  * are generated by a pricer have to be flagged as "modifiable" in the SCIPcreateCons() call.
1865  *
1866  * We now explain how users can add their own pricers.
1867  * For example, look into the variable pricer for the binpacking problem (examples/Binpacking/src/pricer_binpacking.c) of the
1868  * Binpacking example project.
1869  * The example is written in C. C++ users can easily adapt the code by using the scip::scip::ObjPricer wrapper base class and
1870  * implement the scip_...() virtual methods instead of the SCIP_DECL_PRICER... callback methods.
1871  *
1872  * Additional documentation for the callback methods of a pricer can be found in the file
1873  * type_pricer.h.
1874  *
1875  * Notice that if your pricer cannot cope with variable bounds other than 0 and infinity, you have to mark
1876  * all constraints containing priced variables as modifiable, and you may have to disable reduced cost
1877  * strengthening by setting propagating/rootredcost/freq to -1.
1878  *
1879  * Here is what you have to do to implement a pricer:
1880  * -# Copy the template files src/scip/pricer_xyz.c and src/scip/pricer_xyz.h into files "pricer_mypricer.c"
1881  * and "pricer_mypricer.h".
1882  * \n
1883  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
1884  * -# Use SCIPincludePricerMypricer() in order to include the pricer into your SCIP instance,
1885  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
1886  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypricer".
1887  * -# Adjust the properties of the pricer (see \ref PRICER_PROPERTIES).
1888  * -# Define the pricer data (see \ref PRICER_DATA). This is optional.
1889  * -# Implement the interface methods (see \ref PRICER_INTERFACE).
1890  * -# Implement the fundamental callback methods (see \ref PRICER_FUNDAMENTALCALLBACKS).
1891  * -# Implement the additional callback methods (see \ref PRICER_ADDITIONALCALLBACKS). This is optional.
1892  *
1893  *
1894  * @section PRICER_PROPERTIES Properties of a Pricer
1895  *
1896  * At the top of the new file "pricer_mypricer.c" you can find the pricer properties.
1897  * These are given as compiler defines.
1898  * In the C++ wrapper class, you have to provide the pricer properties by calling the constructor
1899  * of the abstract base class scip::ObjPricer from within your constructor.
1900  * The properties you have to set have the following meaning:
1901  *
1902  * \par PRICER_NAME: the name of the pricer.
1903  * This name is used in the interactive shell to address the pricer.
1904  * Additionally, if you are searching for a pricer with SCIPfindPricer(), this name is looked up.
1905  * Names have to be unique: no two pricers may have the same name.
1906  *
1907  * \par PRICER_DESC: the description of the pricer.
1908  * This string is printed as a description of the pricer in the interactive shell.
1909  *
1910  * \par PRICER_PRIORITY: the priority of the pricer.
1911  * In each pricing round during the price-and-cut loop of the subproblem processing, the included pricers are
1912  * called in a predefined order, which is given by the priorities of the pricers.
1913  * The higher the priority, the earlier the pricer is called.
1914  * Usually, you will have only one pricer in your application and the priority is therefore irrelevant.
1915  *
1916  * \par PRICER_DELAY: the default for whether the pricer should be delayed, if other variables with negative reduced
1917  * costs have already been found in the current pricing round.
1918  * Variables may be declared to be "removable" in the SCIPcreateVar() call. This means that SCIP may remove the variable
1919  * from the LP if it was inactive (i.e., sitting at zero) for a number of LP solves. Nevertheless, after the removal of the
1920  * column from the LP, the variable still exists, and SCIP can calculate reduced costs and add it to the LP again if
1921  * necessary.
1922  * \n
1923  * If the PRICER_DELAY flag is set to TRUE (which is the common setting), all those existing variables with negative reduced costs
1924  * are added to the LP, and the LP is resolved before the pricer is called. Thus, the pricer can assume that all existing variables
1925  * have non-negative reduced costs if the \ref PRICERREDCOST method is called or non-positive Farkas value if the \ref PRICERFARKAS
1926  * method is called.
1927  * \n
1928  * In some applications, this inner pricing loop on the already existing variables can significantly slow down the solving process,
1929  * since it may lead to the addition of only very few variables in each pricing round. If this is an issue in your application,
1930  * you should consider setting the PRICER_DELAY flag to FALSE. You must, however, be aware of the fact that there may be already
1931  * existing variables with negative reduced costs. For example, this may lead to the issue that your pricer generates the same
1932  * variable twice. In some models, this is not critical because an optimal solution would choose only one of the two identical
1933  * variables anyway, but for other models this can lead to wrong results because the duplication of a variable essentially doubles
1934  * the upper bound of the variable.
1935  *
1936  *
1937  * @section PRICER_DATA Pricer Data
1938  *
1939  * Below the header "Data structures" you can find a struct which is called "struct SCIP_PricerData".
1940  * In this data structure, you can store the data of your pricer. For example, it may be convenient to store pointers to the
1941  * constraints of the problem instance here, because the pricer has to add variables to those constraints.
1942  * If you are using C++, you can add pricer data, as usual, as object variables to your class.
1943  * \n
1944  * Defining pricer data is optional. You can leave the struct empty.
1945  *
1946  *
1947  * @section PRICER_INTERFACE Interface Methods
1948  *
1949  * At the bottom of "pricer_mypricer.c" you can find the interface method SCIPincludePricerMypricer(), which also appears in "pricer_mypricer.h".
1950  * It is called by the user, if (s)he wants to include the pricer, i.e., if (s)he wants to solve a model for which variables should
1951  * be generated by this pricer.
1952  *
1953  * This method only has to be adjusted slightly.
1954  * It is responsible for notifying SCIP of the presence of the pricer. For this, you can either call SCIPincludePricer(),
1955  * or SCIPincludePricerBasic() since SCIP version 3.0. In the latter variant, \ref PRICER_ADDITIONALCALLBACKS "additional callbacks"
1956  * must be added via setter functions as, e.g., SCIPsetPricerCopy(). We recommend this latter variant because
1957  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
1958  * variant must be manually adjusted with every SCIP release containing new callbacks for pricers in order to compile.
1959  *
1960  *
1961  * In addition, the pricer has to be activated before the solution process starts, like it is done
1962  * in the pricer of the Coloring application (applications/Coloring/src/reader_col.c) by calling
1963  * \code
1964  * SCIP_CALL( SCIPactivatePricer(scip, SCIPfindPricer(scip, "coloring")) );
1965  * \endcode
1966  *
1967  * If you are using pricer data, you have to allocate the memory for the data at this point.
1968  * You can do this by calling:
1969  * \code
1970  * SCIP_CALL( SCIPallocBlockMemory(scip, &pricerdata) );
1971  * \endcode
1972  * You also have to initialize the fields in struct SCIP_PricerData afterwards.
1973  *
1974  * You may also add user parameters for your pricer, see the method SCIPincludePricerColoring() in the pricer of the Coloring application
1975  * for an example of how to add user parameters.
1976  *
1977  *
1978  * @section PRICER_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Pricer
1979  *
1980  * The fundamental callback methods have to be implemented in order to obtain an operational algorithm.
1981  * They are passed together with the pricer itself to SCIP using SCIPincludePricer() or SCIPincludePricerBasic(),
1982  * see @ref PRICER_INTERFACE.
1983  *
1984  * In the case of a pricer, there are two fundamental callback methods, namely the @ref PRICERREDCOST and the
1985  * @ref PRICERFARKAS callbacks, which both search for new variables and add them to the problem.
1986  * These methods have to be implemented for every pricer; the other callback methods are optional.
1987  * In the C++ wrapper class scip::ObjPricer, the scip_redcost() method (which corresponds to the PRICERREDCOST callback)
1988  * is a virtual abstract member function. You have to implement it in order to be able to construct an object of your
1989  * pricer class.
1990  *
1991  * Additional documentation for the callback methods can be found in type_pricer.h.
1992  *
1993  * @subsection PRICERREDCOST
1994  *
1995  * The PRICERREDCOST callback is called inside the price-and-cut loop of the subproblem solving process if the current LP relaxation
1996  * is feasible.
1997  * It should search for additional variables that can contribute to improve the current LP's solution value.
1998  * In standard branch-and-price, these are variables with negative dual feasibility, that is negative
1999  * reduced costs for non-negative variables, positive reduced costs for non-positive variables,
2000  * and non-zero reduced costs for variables that can be negative and positive.
2001  *
2002  * Whenever the pricer finds a variable with negative dual feasibility, it should call SCIPcreateVar()
2003  * and SCIPaddPricedVar() to add the variable to the problem. Furthermore, it should call the appropriate
2004  * methods of the constraint handlers to add the necessary variable entries to the constraints, see pub_cons.h.
2005  *
2006  * In the usual case that the pricer either adds a new variable or ensures that there are no further variables with negative dual feasibility,
2007  * the result pointer should be set to SCIP_SUCCESS. Only if the pricer aborts pricing without creating a new variable, but
2008  * there might exist additional variables with negative dual feasibility, the result pointer should be set to SCIP_DIDNOTRUN.
2009  * In this case, which sometimes is referred to as "early branching", the LP solution will not be used as a lower bound.
2010  * The pricer can, however, store a valid lower bound in the <code>lowerbound</code> pointer.
2011  *
2012  * Pricers usually need the dual LP solution as input for the pricing algorithm.
2013  * Since SCIP does not know the semantics of the individual constraints in the problem, the dual solution
2014  * has to be provided by the constraint handlers.
2015  * For example, the \ref cons_setppc.h "setppc constraint handler", which deals with set partitioning, packing, and covering constraints, provides
2016  * the method SCIPgetDualsolSetppc() to access the dual solution value for a single constraint.
2017  * Similarly, the dual solution of a linear constraint can be queried with the method SCIPgetDualsolLinear() of cons_linear.h.
2018  * The reduced costs of the existing variables can be accessed with the method SCIPgetVarRedcost().
2019  *
2020  * @subsection PRICERFARKAS
2021  *
2022  * If the current LP relaxation is infeasible, it is the task of the pricer to generate additional variables that can
2023  * potentially render the LP feasible again. In standard branch-and-price, these are variables with positive Farkas values,
2024  * and the PRICERFARKAS method should identify those variables.
2025  *
2026  * If the LP was proven to be infeasible, we have an infeasibility proof by the dual Farkas multipliers \f$y\f$.
2027  * With the values of \f$y\f$, an implicit inequality \f$y^T A x \ge y^T b\f$ is associated, with \f$b\f$ given
2028  * by the sides of the LP rows and the sign of \f$y\f$:
2029  * - if \f$y_i\f$ is positive, \f$b_i\f$ is the left hand side of the row,
2030  * - if \f$y_i\f$ is negative, \f$b_i\f$ is the right hand side of the row.
2031  *
2032  * \f$y\f$ is chosen in a way, such that the valid inequality \f$y^T A x \ge y^T b\f$ is violated by all \f$x\f$,
2033  * especially by the (for this inequality least infeasible solution) \f$x'\f$ defined by
2034  * - \f$x'_i := ub_i\f$, if \f$y^T A_i \ge 0\f$
2035  * - \f$x'_i := lb_i\f$, if \f$y^T A_i < 0\f$.
2036  * Pricing in this case means to add variables \f$i\f$ with positive Farkas value, i.e., \f$y^T A_i x'_i > 0\f$.
2037  *
2038  * To apply Farkas pricing, the pricer needs to know the Farkas values of the constraints. Like the dual solution values for
2039  * feasible LP solutions, the dual Farkas values for infeasible solutions can be obtained by constraint handler interface
2040  * methods such as the SCIPgetDualfarkasLinear() method of the linear constraint handler.
2041  * The Farkas values for the bounds of the variables are just the regular reduced costs and can be accessed with SCIPgetVarRedcost().
2042  *
2043  * It is useful to note that Farkas pricing is the same as the regular pricing with a zero objective function.
2044  * Therefore, a typical implementation of a pricer would consist of a generic pricing algorithm that gets a dual solution and an
2045  * objective function vector as input and generates variables by calling SCIPcreateVar() and SCIPaddPricedVar().
2046  * The PRICERREDCOST callback would call this function with the regular objective function and the regular dual solution vector,
2047  * while the PRICERFARKAS callback would call this function with a zero objective function and the Farkas vector.
2048  * From a practical point of view, it is usually the simplest approach to provide just one Boolean flag to the generic pricing
2049  * algorithm in order to identify whether it is reduced cost or Farkas pricing. Then, the algorithm would just call the appropriate
2050  * methods to access the dual solution or objective function, depending on the Boolean flag.
2051  *
2052  * @section PRICER_ADDITIONALCALLBACKS Additional Callback Methods of a Pricer
2053  *
2054  * The additional callback methods do not need to be implemented in every case.
2055  * However, some of them have to be implemented for most applications. They can either be passed directly with
2056  * SCIPincludePricer() to SCIP or via specific <b>setter functions</b> after a call of SCIPincludePricerBasic(),
2057  * see also @ref PRICER_INTERFACE.
2058  *
2059  * @subsection PRICERFREE
2060  *
2061  * If you are using pricer data, you have to implement this method in order to free the pricer data.
2062  * This can be done by the following procedure:
2063  *
2064  * @refsnippet{applications/STP/src/pricer_stp.c,SnippetPricerFreeSTP}
2065  *
2066  * If you have allocated memory for fields in your pricer data, remember to free this memory
2067  * before freeing the pricer data itself.
2068  * If you are using the C++ wrapper class, this method is not available.
2069  * Instead, just use the destructor of your class to free the member variables of your class.
2070  *
2071  * @subsection PRICERCOPY
2072  *
2073  * The PRICERCOPY callback is executed when the SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
2074  * callback as <code>NULL</code> the user disables the inclusion of the pricer into all copied SCIP
2075  * instances. This means that primal heuristics will work on a sub-SCIP that contains only a part of the variables
2076  * and no variables are priced in during the solving process of the sub-SCIP. Therefore, primal solutions found in the
2077  * copied problem are typically still valid for the original problem and used for its solving process,
2078  * but dual reductions cannot be transferred to the original problem.
2079  *
2080  * <b>Note:</b> If you implement this callback, be careful when setting the valid pointer. The valid pointer should be
2081  * set to TRUE if (and only if!) you can make sure that all necessary data of the pricer are copied
2082  * correctly. If the complete problem is validly copied, i.e. if the copy methods of all problem defining plugins
2083  * (constraint handlers and pricers) return <code>*valid = TRUE</code>, then dual reductions found for the copied problem can be
2084  * transferred to the original SCIP instance. Thus, if the valid pointer is wrongly set to TRUE, it might happen that
2085  * optimal solutions are cut off.
2086  *
2087  * @subsection PRICERINIT
2088  *
2089  * The PRICERINIT callback is executed after the problem is transformed.
2090  * The pricer may, e.g., use this call to replace the original constraints stored in its pricer data by transformed
2091  * constraints, or to initialize other elements of its pricer data.
2092  *
2093  * @subsection PRICEREXIT
2094  *
2095  * The PRICEREXIT callback is executed before the transformed problem is freed.
2096  * In this method, the pricer should free all resources that have been allocated for the solving process in PRICERINIT.
2097  *
2098  * @subsection PRICERINITSOL
2099  *
2100  * The PRICERINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to begin.
2101  * The pricer may use this call to initialize its branch-and-bound specific data.
2102  *
2103  * @subsection PRICEREXITSOL
2104  *
2105  * The PRICEREXITSOL callback is executed before the branch-and-bound process is freed.
2106  * The pricer should use this call to clean up its branch-and-bound data, which was allocated in PRICERINITSOL.
2107  *
2108  * @section PRICER_REMARKS Further remarks
2109  *
2110  * If you use your own branching rule (e.g., to branch on constraints), make sure that it is able to branch on \a "pseudo solutions".
2111  * Otherwise, SCIP will use its default branching rules, if necessary (which all branch on variables). This
2112  * could disturb the pricing problem or branching might not even be possible, e.g., if all variables created thus far have already been fixed.
2113  *
2114  * Note that if the original problem is a maximization problem, SCIP will transform the problem into a minimization
2115  * problem by multiplying the objective function by -1. The pricer has to take care of this by multiplying
2116  * the original objective function value of all variables created during the solving process by -1.
2117  *
2118  * In some cases, bounds on variables are implicitly enforced by constraints of the problem and the objective function.
2119  * Therefore, these bounds do not need to be added to the LP explicitly, which has the advantage that the pricing routine does not need to
2120  * care about the corresponding dual values.
2121  * We call these bounds lazy bounds, they may be set by SCIPchgVarLbLazy() and SCIPchgVarUbLazy() for upper or lower bounds, respectively.
2122  * If the lazy bound is tighter than the local bound, the corresponding bound is not put into the LP.
2123  * In diving mode, lazy bounds are explicitly put into the LP, because changing the objective (which is only possible in diving)
2124  * might reverse the implicitly given bounds. When diving is finished, the bounds are again removed from the LP.
2125  */
2126 
2127 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2128 
2129 /**@page PRESOL How to add presolvers
2130  *
2131  * Presolvers are used to reduce the size of the model by removing irrelevant information like redundant constraints,
2132  * to strengthen the LP relaxation by exploiting integrality information, and to extract useful information in the
2133  * presolving step.
2134  * Constraint based presolving is done in the CONSPRESOL callback methods of the constraint handlers, see \ref CONSPRESOL.
2135  * Some propagation steps can already be applied in presolving via the PROPRESOL callback methods of propagators, see \ref PROPPRESOL.
2136  * The presolver plugins complement these by additional, usually optimality based, presolving reductions.
2137  * \n
2138  * A complete list of all presolvers contained in this release can be found \ref PRESOLVERS "here".
2139  *
2140  * We now explain how users can add their own presolvers.
2141  * Take the trivial presolver (src/scip/presol_trivial.c) as an example.
2142  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjPresol wrapper
2143  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_PRESOL... callback methods.
2144  *
2145  * Additional documentation for the callback methods of a presolver, in particular for their input parameters,
2146  * can be found in the file type_presol.h.
2147  *
2148  * Here is what you have to do to implement a presolver:
2149  * -# Copy the template files src/scip/presol_xyz.c and src/scip/presol_xyz.h into files named "presol_mypresolver.c"
2150  * and "presol_mypresolver.h".
2151  * \n
2152  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2153  * -# Use SCIPincludePresolMypresolver() in order to include the presolver into your SCIP instance,
2154  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2155  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypresolver".
2156  * -# Adjust the properties of the presolver (see \ref PRESOL_PROPERTIES).
2157  * -# Define the presolver data (see \ref PRESOL_DATA). This is optional.
2158  * -# Implement the interface methods (see \ref PRESOL_INTERFACE).
2159  * -# Implement the fundamental callback methods (see \ref PRESOL_FUNDAMENTALCALLBACKS).
2160  * -# Implement the additional callback methods (see \ref PRESOL_ADDITIONALCALLBACKS). This is optional.
2161  *
2162  *
2163  * @section PRESOL_PROPERTIES Properties of a Presolver
2164  *
2165  * At the top of the new file "presol_mypresolver.c", you can find the presolver properties.
2166  * These are given as compiler defines.
2167  * In the C++ wrapper class, you have to provide the presolver properties by calling the constructor
2168  * of the abstract base class scip::ObjPresol from within your constructor.
2169  * The properties you have to set have the following meaning:
2170  *
2171  * \par PRESOL_NAME: the name of the presolver.
2172  * This name is used in the interactive shell to address the presolver.
2173  * Additionally, if you are searching for a presolver with SCIPfindPresol(), this name is looked up.
2174  * Names have to be <b>unique</b>: no two presolvers may have the same name.
2175  *
2176  * \par PRESOL_DESC: the description of the presolver.
2177  * This string is printed as a description of the presolver in the interactive shell.
2178  *
2179  * \par PRESOL_TIMING: the default timing of the presolver.
2180  * There are three presolving timings: FAST, MEDIUM, and EXHAUSTIVE.
2181  * Every presolving round starts with the FAST presolvers. MEDIUM presolvers are only called, if FAST presolvers did not find
2182  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
2183  * in this round were unsuccessful.
2184  * Presolvers should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
2185  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
2186  * If a presolver implements different algorithms of different complexity, it may also get multiple timings and check the timing
2187  * internally in the \ref PRESOLEXEC callback to decide which algorithms to run.
2188  *
2189  * \par PRESOL_PRIORITY: the priority of the presolver.
2190  * Within a presolving round, when calling all presolvers and presolving methods of propagators and constraint handlers
2191  * with a given timing, those are called in
2192  * a predefined order, which is given by the priorities of the presolvers and the check priorities of the
2193  * constraint handlers, see \ref CONS_PROPERTIES.
2194  * First, the presolvers with non-negative priority are called in the order of decreasing priority.
2195  * Next, the presolving methods of the different constraint handlers are called in the order of decreasing check
2196  * priority.
2197  * Finally, the presolvers with negative priority are called in the order of decreasing priority.
2198  * \n
2199  * Again, presolvers that provide fast algorithms that usually have a high impact (i.e., remove lots of variables or tighten
2200  * bounds of many variables) should have a high priority.
2201  * An easy way to list the timings and
2202  * priorities of all presolvers, propagators, and constraint handlers is to type "display presolvers", "display propagators",
2203  * and "display conshdlrs" in the interactive shell of SCIP.
2204  *
2205  * \par PRESOL_MAXROUNDS: the default maximal number of rounds the presolver participates in.
2206  * The presolving is conducted in rounds: the presolvers and presolving methods of the constraint handlers
2207  * are called iteratively until no more reductions have been found or some other abort criterion applies.
2208  * The "maxrounds" parameter of a presolver imposes a limit on the number of presolving rounds in which the
2209  * presolver is called. The PRESOL_MAXROUNDS property specifies the default value for this parameter.
2210  * A value of -1 represents an unlimited number of rounds.
2211  *
2212  *
2213  * @section PRESOL_DATA Presolver Data
2214  *
2215  * Below the header "Data structures" you can find a struct which is called "struct SCIP_PresolData".
2216  * In this data structure, you can store the data of your presolver. For example, you should store the adjustable parameters
2217  * of the presolver in this data structure.
2218  * If you are using C++, you can add presolver data as usual as object variables to your class.
2219  * \n
2220  * Defining presolver data is optional. You can leave this struct empty.
2221  *
2222  *
2223  * @section PRESOL_INTERFACE Interface Methods
2224  *
2225  * At the bottom of "presol_mypresolver.c", you can find the interface method SCIPincludePresolMypresolver(),
2226  * which also appears in "presol_mypresolver.h"
2227  * SCIPincludePresolMypresolver() is called by the user, if (s)he wants to include the presolver,
2228  * i.e., if (s)he wants to use the presolver in his/her application.
2229  *
2230  * This method only has to be adjusted slightly.
2231  * It is responsible for notifying SCIP of the presence of the presolver. For this, you can either call SCIPincludePresol(),
2232  * or SCIPincludePresolBasic() since SCIP version 3.0. In the latter variant, \ref PRESOL_ADDITIONALCALLBACKS "additional callbacks"
2233  * must be added via setter functions as, e.g., SCIPsetPresolCopy(). We recommend this latter variant because
2234  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2235  * variant must be manually adjusted with every SCIP release containing new callbacks for presolvers in order to compile.
2236  *
2237  * If you are using presolver data, you have to allocate the memory for the data at this point.
2238  * You can do this by calling:
2239  * \code
2240  * SCIP_CALL( SCIPallocBlockMemory(scip, &presoldata) );
2241  * \endcode
2242  * You also have to initialize the fields in struct SCIP_PresolData afterwards. For freeing the
2243  * presolver data, see \ref PRESOLFREE.
2244  *
2245  * You may also add user parameters for your presolver, see \ref PARAM for how to add user parameters and
2246  * the method SCIPincludePresolTrivial() in src/scip/presol_trivial.c for an example.
2247  *
2248  *
2249  * @section PRESOL_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Presolver
2250  *
2251  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2252  * an operational algorithm.
2253  * They are passed together with the presolver itself to SCIP using SCIPincludePresol() or SCIPincludePresolBasic(),
2254  * see @ref PRESOL_INTERFACE.
2255  *
2256  * Presolver plugins have only one fundamental callback method, namely the @ref PRESOLEXEC method.
2257  * This method has to be implemented for every presolver; the other callback methods are optional.
2258  * In the C++ wrapper class scip::ObjPresol, the scip_exec() method (which corresponds to the PRESOLEXEC callback) is a virtual
2259  * abstract member function.
2260  * You have to implement it in order to be able to construct an object of your presolver class.
2261  *
2262  * Additional documentation for the callback methods, in particular to their input parameters,
2263  * can be found in type_presol.h.
2264  *
2265  * @subsection PRESOLEXEC
2266  *
2267  * The PRESOLEXEC callback is called inside the presolving loop and should perform the actual presolving reductions.
2268  * It should inspect the problem instance at hand and simplify it by tightening bounds of variables, aggregating or fixing
2269  * variables, changing the type of variables, modifying the graph that represents the instance of your application, and
2270  * the like.
2271  *
2272  * Typical methods called by a presolver are, for example, SCIPchgVarType(), SCIPfixVar(), SCIPaggregateVars(), SCIPtightenVarLb(),
2273  * and SCIPtightenVarUb().
2274  *
2275  *
2276  * @section PRESOL_ADDITIONALCALLBACKS Additional Callback Methods of a Presolver
2277  *
2278  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
2279  * implemented for most applications, they can be used, for example, to initialize and free private data.
2280  * Additional callbacks can either be passed directly with SCIPincludePresol() to SCIP or via specific
2281  * <b>setter functions</b> after a call of SCIPincludePresolBasic(), see also @ref PRESOL_INTERFACE.
2282  *
2283  * @subsection PRESOLFREE
2284  *
2285  * If you are using presolver data (see \ref PRESOL_DATA and \ref PRESOL_INTERFACE), you have to implement this method in order to free the presolver data.
2286  * This can be done by the following procedure:
2287  *
2288  * @refsnippet{src/scip/presol_boundshift.c,SnippetPresolFreeBoundshift}
2289  *
2290  * If you have allocated memory for fields in your presolver data, remember to free this memory
2291  * before freeing the presolver data itself.
2292  * If you are using the C++ wrapper class, this method is not available.
2293  * Instead, just use the destructor of your class to free the member variables of your class.
2294  *
2295  * @subsection PRESOLINIT
2296  *
2297  * The PRESOLINIT callback is executed after the problem is transformed.
2298  * The presolver may, e.g., use this call to initialize its presolver data.
2299  * The difference between the original and the transformed problem is explained in
2300  * "What is this thing with the original and the transformed problem about?" on \ref FAQ.
2301  *
2302  * @subsection PRESOLCOPY
2303  *
2304  * The PRESOLCOPY callback is executed when a SCIP instance is copied, e.g. to
2305  * solve a sub-SCIP. By
2306  * defining this callback as
2307  * <code>NULL</code> the user disables the execution of the specified
2308  * presolver for all copied SCIP instances. This may deteriorate the performance
2309  * of primal heuristics using sub-SCIPs.
2310  *
2311  * @subsection PRESOLEXIT
2312  *
2313  * The PRESOLEXIT callback is executed before the transformed problem is freed.
2314  * In this method, the presolver should free all resources that have been allocated for the solving process in PRESOLINIT.
2315  *
2316  * @subsection PRESOLINITPRE
2317  *
2318  * The PRESOLINITPRE callback is executed when the presolving is about to begin.
2319  * The presolver may use this call to initialize its presolving data which only need to exist during the presolving stage.
2320  *
2321  * @subsection PRESOLEXITPRE
2322  *
2323  * The PRESOLEXITPRE callback is executed after presolving finishes and before the branch-and-bound process begins.
2324  * The presolver should use this call to clean up its presolving data, which was allocated in PRESOLINITPRE.
2325  */
2326 
2327 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2328 
2329 /**@page SEPA How to add separators
2330  *
2331  * Separators are used to generate general purpose cutting planes.
2332  * Constraint based cutting planes, the second type of cutting planes in SCIP, are separated in the CONSSEPALP and
2333  * CONSSEPASOL callback methods of the constraint handlers, see \ref CONSSEPALP and \ref CONSSEPASOL. These cuts are
2334  * valid inequalities or even facets of the polyhedron described by a single constraint or a subset of the constraints of
2335  * a single constraint class. In contrast, general purpose cuts do not require or exploit any knowledge about the
2336  * underlying problem structure but use only the current LP relaxation and the integrality conditions. See also
2337  * "When should I implement a constraint handler, when should I implement a separator?" on \ref FAQ.
2338  * \n
2339  * A complete list of all separators contained in this release can be found \ref SEPARATORS "here".
2340  *
2341  * We now explain how users can add their own separators.
2342  * Take the separator for the class of Gomory mixed integer inequalities (src/scip/sepa_gomory.c) as an example.
2343  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjSepa wrapper
2344  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_SEPA... callback methods.
2345  *
2346  * Additional documentation for the callback methods of a separator, in particular for the input parameters,
2347  * can be found in the file type_sepa.h.
2348  *
2349  * Here is what you have to do to implement a separator:
2350  * -# Copy the template files src/scip/sepa_xyz.c and src/scip/sepa_xyz.h into files "sepa_myseparator.c"
2351  * and "sepa_myseparator.h".
2352  \n
2353  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2354  * -# Use SCIPincludeSepaMyseparator() in order to include the separator into your SCIP instance,
2355  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2356  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myseparator".
2357  * -# Adjust the properties of the separator (see \ref SEPA_PROPERTIES).
2358  * -# Define the separator data (see \ref SEPA_DATA). This is optional.
2359  * -# Implement the interface methods (see \ref SEPA_INTERFACE).
2360  * -# Implement the fundamental callback methods (see \ref SEPA_FUNDAMENTALCALLBACKS).
2361  * -# Implement the additional callback methods (see \ref SEPA_ADDITIONALCALLBACKS). This is optional.
2362  *
2363  *
2364  * @section SEPA_PROPERTIES Properties of a Separator
2365  *
2366  * At the top of the new file "sepa_myseparator.c", you can find the separator properties.
2367  * These are given as compiler defines.
2368  * In the C++ wrapper class, you have to provide the separator properties by calling the constructor
2369  * of the abstract base class scip::ObjSepa from within your constructor.
2370  * The properties you have to set have the following meaning:
2371  *
2372  * \par SEPA_NAME: the name of the separator.
2373  * This name is used in the interactive shell to address the separator.
2374  * Additionally, if you are searching for a separator with SCIPfindSepa(), this name is looked up.
2375  * Names have to be unique: no two separators may have the same name.
2376  *
2377  * \par SEPA_DESC: the description of the separator.
2378  * This string is printed as a description of the separator in the interactive shell.
2379  *
2380  * \par SEPA_PRIORITY: the priority of the separator.
2381  * In each separation round during the price-and-cut loop of the subproblem processing or the separation loop
2382  * of the primal solution separation, the separators and separation methods of the constraint handlers are called in
2383  * a predefined order, which is given by the priorities of the separators and the separation priorities
2384  * of the constraint handlers (see \ref CONS_PROPERTIES).
2385  * First, the separators with non-negative priority are called in the order of decreasing priority.
2386  * Next, the separation methods of the constraint handlers are called in the order of decreasing separation
2387  * priority.
2388  * Finally, the separators with negative priority are called in the order of decreasing priority. An easy way to list the
2389  * priorities of all separators and constraint handlers is to type "display separators" and "display conshdlrs" in
2390  * the interactive shell.
2391  * \n
2392  * The priority of the separator should be set according to the complexity of the cut separation algorithm and the
2393  * impact of the resulting cuts: separators that provide fast algorithms that usually have a high impact (i.e., cut off
2394  * a large portion of the LP relaxation) should have a high priority.
2395  * See \ref SEPAEXECLP and \ref SEPAEXECSOL for further details of the separation callbacks.
2396  *
2397  * \par SEPA_FREQ: the default frequency for separating cuts.
2398  * The frequency defines the depth levels at which the separation methods \ref SEPAEXECLP and \ref SEPAEXECSOL are called.
2399  * For example, a frequency of 7 means, that the separation callback is executed for subproblems that are in depth
2400  * 0, 7, 14, ... of the branching tree. A frequency of 0 means, that the separation method is only called at the root node.
2401  * A frequency of -1 disables the separator.
2402  * \n
2403  * The frequency can be adjusted by the user. This property of the separator only defines the default value of the frequency.
2404  * If you want to have a more flexible control of when to execute the separation algorithm, you have to assign
2405  * a frequency of 1 and implement a check at the beginning of your separation methods whether you really want to execute
2406  * the separation or not. If you do not want to execute it, set the result code of
2407  * \ref SEPAEXECLP and \ref SEPAEXECSOL to SCIP_DIDNOTRUN.
2408  *
2409  * \par SEPA_MAXBOUNDDIST: the default maximal relative distance from the current node's dual bound to primal bound compared to best node's dual bound for applying separation.
2410  * At the current branch-and-bound node, the relative distance from its dual bound (local dual bound)
2411  * to the primal bound compared to the best node's dual bound (global dual bound) is considered. The separation method
2412  * of the separator will only be applied at the current node if this relative distance does not exceed SEPA_MAXBOUNDDIST.
2413  * \n
2414  * For example, if the global dual bound is 50 and the primal bound is 60, SEPA_MAXBOUNDDIST = 0.25 means that separation
2415  * is only applied if the current node's dual bound is in the first quarter of the interval [50,60], i.e., if it is less
2416  * than or equal to 52.5.
2417  * \n
2418  * In particular, the values 0.0 and 1.0 mean that separation is applied at the current best node only or at all
2419  * nodes, respectively. Since separation seems to be most important to apply at nodes that define to the global
2420  * dual bound, 0.0 is probably a good choice for SEPA_MAXBOUNDDIST.
2421  * Note that separators with a frequency of SEPA_FREQ = 0 are only applied at the root node.
2422  * Obviously, at the root node the local dual bound is equal to the global dual bound and thus, the separator is called
2423  * for any value of SEPA_MAXBOUNDDIST.
2424  *
2425  * \par SEPA_USESSUBSCIP: Does the separator use a secondary SCIP instance?
2426  * Some heuristics and separators solve MIPs or SAT problems and use a secondary SCIP instance. Examples are
2427  * Large Neighborhood Search heuristics such as RINS and Local Branching or the CGMIP separator. To avoid recursion,
2428  * these plugins usually deactivate all other plugins that solve MIPs. If a separator uses a secondary SCIP instance,
2429  * this parameter has to be TRUE and it is recommended to call SCIPsetSubscipsOff() for the secondary SCIP instance.
2430  *
2431  * \par SEPA_DELAY: the default for whether the separation method should be delayed, if other separators or constraint handlers found cuts.
2432  * If the separator's separation method is marked to be delayed, it is only executed after no other separator
2433  * or constraint handler found a cut during the price-and-cut loop.
2434  * If the separation method of the separator is very expensive, you may want to mark it to be delayed until all cheap
2435  * separation methods have been executed.
2436  *
2437  * @section SEPA_DATA Separator Data
2438  *
2439  * Below the header "Data structures" you can find a struct which is called "struct SCIP_SepaData".
2440  * In this data structure, you can store the data of your separator. For example, you should store the adjustable
2441  * parameters of the separator in this data structure. In a separator, user parameters for the maximal number of
2442  * separation rounds per node and for the maximal number of cuts separated per separation round might be useful.
2443  * If you are using C++, you can add separator data as usual as object variables to your class.
2444  * \n
2445  * Defining separator data is optional. You can leave the struct empty.
2446  *
2447  * @section SEPA_INTERFACE Interface Methods
2448  *
2449  * At the bottom of "sepa_myseparator.c", you can find the interface method SCIPincludeSepaMyseparator(),
2450  * which also appears in "sepa_myseparator.h"
2451  * SCIPincludeSepaMyseparator() is called by the user, if (s)he wants to include the separator,
2452  * i.e., if (s)he wants to use the separator in his/her application.
2453  *
2454  * This method only has to be adjusted slightly.
2455  * It is responsible for notifying SCIP of the presence of the separator. For this, you can either call SCIPincludeSepa(),
2456  * or SCIPincludeSepaBasic() since SCIP version 3.0. In the latter variant, \ref SEPA_ADDITIONALCALLBACKS "additional callbacks"
2457  * must be added via setter functions as, e.g., SCIPsetSepaCopy(). We recommend this latter variant because
2458  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2459  * variant must be manually adjusted with every SCIP release containing new callbacks for separators in order to compile.
2460  *
2461  * If you are using separator data, you have to allocate the memory
2462  * for the data at this point. You can do this by calling:
2463  * \code
2464  * SCIP_CALL( SCIPallocBlockMemory(scip, &sepadata) );
2465  * \endcode
2466  * You also have to initialize the fields in "struct SCIP_SepaData" afterwards. For freeing the
2467  * separator data, see \ref SEPAFREE.
2468  *
2469  * You may also add user parameters for your separator, see \ref PARAM for how to add user parameters and
2470  * the method SCIPincludeSepaGomory() in src/scip/sepa_gomory.c for an example.
2471  *
2472  *
2473  * @section SEPA_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Separator
2474  *
2475  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2476  * an operational algorithm.
2477  * They are passed together with the separator itself to SCIP using SCIPincludeSepa() or SCIPincludeSepaBasic(),
2478  * see @ref SEPA_INTERFACE.
2479  *
2480  * Separator plugins have two callbacks, @ref SEPAEXECLP and @ref SEPAEXECSOL, of which at least one must be implemented.
2481  *
2482  * Additional documentation for the callback methods, in particular to their input parameters,
2483  * can be found in type_sepa.h.
2484  *
2485  * @subsection SEPAEXECLP
2486  *
2487  * The SEPAEXECLP callback is executed during the price-and-cut loop of the subproblem processing.
2488  * It should try to generate general purpose cutting planes in order to separate the current LP solution.
2489  * The method is called in the LP solution loop, which means that a valid LP solution exists.
2490  *
2491  * Usually, the callback searches and produces cuts, that are added with a call to SCIPaddCut().
2492  * If the cut should be added to the global cut pool, it calls SCIPaddPoolCut().
2493  * In addition to LP rows, the callback may also produce domain reductions or add additional constraints.
2494  *
2495  * Overall, the SEPAEXECLP callback has the following options, which is indicated by the possible return values of
2496  * the 'result' variable (see type_sepa.h):
2497  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
2498  * - adding an additional constraint (result SCIP_CONSADDED)
2499  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
2500  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
2501  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
2502  * (result SCIP_DIDNOTFIND)
2503  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
2504  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
2505  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
2506  *
2507  * @subsection SEPAEXECSOL
2508  *
2509  * The SEPAEXECSOL callback is executed during the separation loop on arbitrary primal solutions.
2510  * It should try to generate general purpose cutting planes in order to separate the given primal solution.
2511  * The method is not called in the LP solution loop, which means that there is no valid LP solution.
2512  *
2513  * In the standard SCIP environment, the SEPAEXECSOL callback is not used because only LP solutions are
2514  * separated. The SEPAEXECSOL callback provides means to support external relaxation handlers like semidefinite
2515  * relaxations that want to separate an intermediate primal solution vector. Thus, if you do not want to support
2516  * such external plugins, you do not need to implement this callback method.
2517  *
2518  * Usually, the callback searches and produces cuts, that are added with a call to SCIPaddCut().
2519  * If the cut should be added to the global cut pool, it calls SCIPaddPoolCut().
2520  * In addition to LP rows, the callback may also produce domain reductions or add other constraints.
2521  *
2522  * Overall, the SEPAEXECSOL callback has the following options, which is indicated by the possible return values of
2523  * the 'result' variable (see type_sepa.h):
2524  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
2525  * - adding an additional constraint (result SCIP_CONSADDED)
2526  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
2527  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
2528  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
2529  * (result SCIP_DIDNOTFIND)
2530  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
2531  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
2532  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
2533  *
2534  *
2535  * @section SEPA_ADDITIONALCALLBACKS Additional Callback Methods of a Separator
2536  *
2537  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
2538  * implemented for most applications, they can be used, for example, to initialize and free private data.
2539  * Additional callbacks can either be passed directly with SCIPincludeSepa() to SCIP or via specific
2540  * <b>setter functions</b> after a call of SCIPincludeSepaBasic(), see also @ref SEPA_INTERFACE.
2541  *
2542  * @subsection SEPAFREE
2543  *
2544  * If you are using separator data (see \ref SEPA_DATA and \ref SEPA_INTERFACE), you have to implement this method
2545  * in order to free the separator data. This can be done by the following procedure:
2546  *
2547  * @refsnippet{src/scip/sepa_gomory.c,SnippetSepaFreeGomory}
2548  *
2549  * If you have allocated memory for fields in your separator data, remember to free this memory
2550  * before freeing the separator data itself.
2551  * If you are using the C++ wrapper class, this method is not available.
2552  * Instead, just use the destructor of your class to free the member variables of your class.
2553  *
2554  * @subsection SEPACOPY
2555  *
2556  * The SEPACOPY callback is executed when a SCIP instance is copied, e.g. to
2557  * solve a sub-SCIP. By
2558  * defining this callback as
2559  * <code>NULL</code> the user disables the execution of the specified
2560  * separator for all copied SCIP instances. This may deteriorate the performance
2561  * of primal heuristics using sub-SCIPs.
2562  *
2563  * @subsection SEPAINIT
2564  *
2565  * The SEPAINIT callback is executed after the problem is transformed.
2566  * The separator may, e.g., use this call to initialize its separator data.
2567  * The difference between the original and the transformed problem is explained in
2568  * "What is this thing with the original and the transformed problem about?" on \ref FAQ.
2569  *
2570  * @subsection SEPAEXIT
2571  *
2572  * The SEPAEXIT callback is executed before the transformed problem is freed.
2573  * In this method, the separator should free all resources that have been allocated for the solving process in SEPAINIT.
2574  *
2575  * @subsection SEPAINITSOL
2576  *
2577  * The SEPAINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
2578  * begin. The separator may use this call to initialize its branch-and-bound specific data.
2579  *
2580  * @subsection SEPAEXITSOL
2581  *
2582  * The SEPAEXITSOL callback is executed before the branch-and-bound process is freed. The separator should use this call
2583  * to clean up its branch-and-bound data, in particular to release all LP rows that it has created or captured.
2584  */
2585 
2586 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2587 
2588 /**@page PROP How to add propagators
2589  *
2590  * Propagators are used to tighten the domains of the variables. Like for cutting planes, there are two different types
2591  * of domain propagations. Constraint based (primal) domain propagation algorithms are part of the corresponding
2592  * constraint handlers, see \ref CONSPROP. In contrast, domain propagators usually provide dual propagations, i.e.,
2593  * propagations that can be applied using the objective function and the current best known primal solution. This
2594  * section deals with such propagators.
2595  *
2596  * A complete list of all propagators contained in this release can be found \ref PROPAGATORS "here".
2597  *
2598  * We now explain how users can add their own propagators. Take the pseudo objective function propagator
2599  * (src/scip/prop_pseudoobj.c) as an example. As all other default plugins, it is written in C. C++ users can easily
2600  * adapt the code by using the scip::ObjProp wrapper base class and implement the @c scip_...() virtual methods instead
2601  * of the @c SCIP_DECL_PROP... callback methods.
2602  *
2603  * Additional documentation for the callback methods of a propagator can be found in the file type_prop.h.
2604  *
2605  * Here is what you have to do to implement a propagator:
2606  * -# Copy the template files src/scip/prop_xyz.c and src/scip/prop_xyz.h into files named "prop_mypropagator.c"
2607  * and "prop_mypropagator.h".
2608  * \n
2609  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2610  * -# Use SCIPincludePropMypropagator() in order to include the propagator into your SCIP instance,
2611  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2612  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypropagator".
2613  * -# Adjust the properties of the propagator (see \ref PROP_PROPERTIES).
2614  * -# Define the propagator data (see \ref PROP_DATA). This is optional.
2615  * -# Implement the interface methods (see \ref PROP_INTERFACE).
2616  * -# Implement the fundamental callback methods (see \ref PROP_FUNDAMENTALCALLBACKS).
2617  * -# Implement the additional callback methods (see \ref PROP_ADDITIONALCALLBACKS). This is optional.
2618  *
2619  * @section PROP_PROPERTIES Properties of a Propagator
2620  *
2621  * At the top of the new file "prop_mypropagator.c" you can find the propagator properties. These are given as compiler
2622  * defines. The presolving-related properties are optional,
2623  * they only have to be defined if the propagator supports presolving routines.
2624  * In the C++ wrapper class, you have to provide the propagator properties by calling the constructor of the
2625  * abstract base class scip::ObjProp from within your constructor. The properties you have the following meaning:
2626  *
2627  * @subsection PROP_FUNDAMENTALPROPERTIES Fundamental properties of a propagator
2628  *
2629  * \par PROP_NAME: the name of the propagator.
2630  * This name is used in the interactive shell to address the propagator. Additionally, if you are searching for a
2631  * propagator with SCIPfindProp(), this name is searched for. Names have to be unique: no two propagators may have the
2632  * same name.
2633  *
2634  * \par PROP_DESC: the description of the propagator.
2635  * This string is printed as a description of the propagator in the interactive shell.
2636  *
2637  * \par PROP_PRIORITY: the priority of the propagator.
2638  * In each propagation round, the propagators and propagation methods of the constraint handlers are called in a
2639  * predefined order, which is given by the priorities of the propagators and the check priorities of the constraint
2640  * handlers. First, the propagators with non-negative priority are called in order of decreasing priority. Next, the
2641  * propagation methods of the different constraint handlers are called in order of decreasing check priority. Finally,
2642  * the propagators with negative priority are called in order of decreasing priority. \n The priority of the
2643  * propagators should be set according to the complexity of the propagation algorithm and the impact of the domain
2644  * propagations: propagators providing fast algorithms that usually have a high impact (i.e., tighten many bounds)
2645  * should have a high priority.
2646  *
2647  * \par PROP_FREQ: the default frequency for propagating domains.
2648  * The frequency defines the depth levels at which the propagation method \ref PROPEXEC is called. For example, a
2649  * frequency of 7 means, that the propagation callback is executed for subproblems that are in depth 0, 7, 14, ... of
2650  * the branching tree. A frequency of 0 means that propagation is only applied in preprocessing and at the root node. A
2651  * frequency of -1 disables the propagator.
2652  * \n
2653  * The frequency can be adjusted by the user. This property of the propagator only defines the default value of the
2654  * frequency.\n
2655  * <b>Note:</b> If you want to have a more flexible control of when to execute the propagation algorithm, you have to
2656  * assign a frequency of 1 and implement a check at the beginning of your propagation algorithm whether you really want
2657  * to execute the domain propagation or not. If you do not want to execute it, set the result code to SCIP_DIDNOTRUN.
2658  *
2659  * \par PROP_DELAY: the default for whether the propagation method should be delayed, if other propagators or constraint handlers found domain reductions.
2660  * If the propagator's propagation method is marked to be delayed, it is only executed after no other propagator or
2661  * constraint handler found a domain reduction in the current iteration of the domain propagation loop. If the
2662  * propagation method of the propagator is very expensive, you may want to mark it to be delayed until all cheap
2663  * propagation methods have been executed.
2664  *
2665  * \par PROP_TIMING: the timing mask of the propagator.
2666  * SCIP calls the domain propagation routines at different places in the node processing loop.
2667  * This property indicates at which places the propagator is called.
2668  * Possible values are defined in type_timing.h and can be concatenated, e.g., as in SCIP_PROPTIMING_ALWAYS.
2669  *
2670  * @subsection PROP_ADDITIONALPROPERTIES Optional propagator properties
2671  *
2672  * The following properties are optional and only need to be defined if the propagator supports
2673  * presolving, that is, if the \ref PROPPRESOL "presolving callback" is implemented.
2674 
2675  * \par PROP_PRESOLTIMING: the timing of the presolving method (FAST, MEDIUM, or EXHAUSTIVE).
2676  * Every presolving round starts with the FAST presolving methods. MEDIUM presolvers are only called, if FAST presolvers did not find
2677  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
2678  * in this round were unsuccessful.
2679  * Presolving methods should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
2680  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
2681  * If a presolving method implements different algorithms of different complexity, it may also get multiple timings and check the timing
2682  * internally in the \ref PROPPRESOL callback to decide which algorithms to run.
2683  *
2684  * \par PROP_PRESOL_PRIORITY: the priority of the presolving method.
2685  * This attribute is analogous to the PROP_PRIORITY flag, but deals with the preprocessing method of the presolver.
2686  *
2687  * \par PROP_PRESOL_MAXROUNDS: the default maximal number of presolving rounds the propagator participates in.
2688  * The preprocessing is executed in rounds.
2689  * If enough changes have been applied to the model, an additional preprocessing round is performed.
2690  * The MAXROUNDS parameter of a propagator denotes the maximal number of preprocessing rounds, the propagator
2691  * participates in.
2692  * A value of -1 means, that there is no limit on the number of rounds.
2693  * A value of 0 means, the preprocessing callback of the propagator is disabled.
2694  *
2695  * @section PROP_DATA Propagator Data
2696  *
2697  * Below the title "Data structures" you can find a struct called <code>struct SCIP_PropData</code>. In this data
2698  * structure, you can store the data of your propagator. For example, you should store the adjustable parameters of the
2699  * propagator in this data structure. If you are using C++, you can add propagator data as object variables to your
2700  * class as usual .
2701  * \n
2702  * Defining propagator data is optional. You can leave the struct empty.
2703  *
2704  *
2705  * @section PROP_INTERFACE Interface Methods
2706  *
2707  * At the bottom of "prop_mypropagator.c", you can find the interface method SCIPincludeSepaMypropagator(),
2708  * which also appears in "prop_mypropagator.h"
2709  * SCIPincludePropMypropagator() is called by the user, if (s)he wants to include the propagator,
2710  * i.e., if (s)he wants to use the propagator in his/her application.
2711  *
2712  * This method only has to be adjusted slightly.
2713  * It is responsible for notifying SCIP of the presence of the propagator. For this, you can either call SCIPincludeProp(),
2714  * or SCIPincludePropBasic() since SCIP version 3.0. In the latter variant, \ref PROP_ADDITIONALCALLBACKS "additional callbacks"
2715  * must be added via setter functions as, e.g., SCIPsetPropCopy(). We recommend this latter variant because
2716  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2717  * variant must be manually adjusted with every SCIP release containing new callbacks for separators in order to compile.
2718  *
2719  *
2720  * If you are using propagator data, you have to allocate the memory for the data at this point. You can do this by
2721  * calling
2722  * \code
2723  * SCIP_CALL( SCIPallocBlockMemory(scip, &propdata) );
2724  * \endcode
2725  * You also have to initialize the fields in <code>struct SCIP_PropData</code> afterwards.
2726  *
2727  * You may also add user parameters for your propagator, see the method SCIPincludePropPseudoobj() in
2728  * src/scip/prop_pseudoobj.c for an example.
2729  *
2730  *
2731  * @section PROP_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Propagator
2732  *
2733  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2734  * an operational algorithm.
2735  * They are passed together with the propagator itself to SCIP using SCIPincludeProp() or SCIPincludePropBasic(),
2736  * see @ref PROP_INTERFACE.
2737  *
2738  * Propagator plugins have one fundamental callback method, namely the \ref PROPEXEC method
2739  * method. This method has to be implemented for every propagator; the other callback methods are optional. In the
2740  * C++ wrapper class scip::ObjProp, the scip_exec() method (which corresponds to the \ref PROPEXEC
2741  * callback) is a virtual abstract member function. You have to
2742  * implement it in order to be able to construct an object of your propagator class.
2743  *
2744  * Additional documentation for the callback methods can be found in type_prop.h.
2745  *
2746  * @subsection PROPEXEC
2747  *
2748  * The PROPEXEC callback is called during presolving and during the subproblem processing. It should perform the actual
2749  * domain propagation, which means that it should tighten the variables' bounds. The technique of domain propagation,
2750  * which is the main workhorse of constraint programming, is called "node preprocessing" in the Integer Programming
2751  * community.
2752  *
2753  * The PROPEXEC callback has the following options:
2754  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
2755  * - reducing (i.e, tightening) the domains of some variables (result SCIP_REDUCEDDOM)
2756  * - stating that the propagator searched, but did not find domain reductions, cutting planes, or cut constraints
2757  * (result SCIP_DIDNOTFIND)
2758  * - stating that the propagator was skipped (result SCIP_DIDNOTRUN)
2759  * - stating that the propagator was skipped, but should be called again (result SCIP_DELAYED)
2760  *
2761  *
2762  *
2763  * @section PROP_ADDITIONALCALLBACKS Additional Callback Methods of a Propagator
2764  *
2765  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
2766  * implemented for most applications, they can be used, for example, to initialize and free private data.
2767  * Additional callbacks can either be passed directly with SCIPincludeProp() to SCIP or via specific
2768  * <b>setter functions</b> after a call of SCIPincludePropBasic(), see also @ref PROP_INTERFACE.
2769  *
2770  * @subsection PROPRESPROP
2771  *
2772  * If the propagator wants to support \ref CONF "conflict analysis", it has to supply the PROPRESPROP method. It also should call
2773  * SCIPinferVarLbProp() or SCIPinferVarUbProp() in the domain propagation instead of SCIPchgVarLb() or SCIPchgVarUb() in
2774  * order to deduce bound changes on variables. In the SCIPinferVarLbProp() and SCIPinferVarUbProp() calls, the
2775  * propagator provides a pointer to itself and an integer value "inferinfo" that can be arbitrarily chosen.
2776  *
2777  * The propagation conflict resolving method PROPRESPROP must then be implemented to provide the "reasons" for the bound
2778  * changes, i.e., the bounds of variables at the time of the propagation, which forced the propagator to set the
2779  * conflict variable's bound to its current value. It can use the "inferinfo" tag to identify its own propagation rule
2780  * and thus identify the "reason" bounds. The bounds that form the reason of the assignment must then be provided by
2781  * calls to SCIPaddConflictLb() and SCIPaddConflictUb() in the propagation conflict resolving method.
2782  *
2783  * See the description of the propagation conflict resolving method \ref CONSRESPROP of constraint handlers for
2784  * further details.
2785  *
2786  * Omitting the PROPRESPROP callback circumvents the implementation of the usually rather complex conflict resolving method.
2787  * Yet, it
2788  * will make the conflict analysis less effective. We suggest to first omit the conflict resolving method and check how
2789  * effective the propagation method is. If it produces a lot of propagations for your application, you definitely should
2790  * consider implementing the conflict resolving method.
2791  *
2792  *
2793  * @subsection PROPFREE
2794  *
2795  * If you are using propagator data, you have to implement this method in order to free the propagator data.
2796  * This can be done by the following procedure:
2797  *
2798  * @refsnippet{src/scip/prop_redcost.c,SnippetPropFreeRedcost}
2799  *
2800  * If you have allocated memory for fields in your propagator data, remember to free this memory
2801  * before freeing the propagator data itself.
2802  * If you are using the C++ wrapper class, this method is not available.
2803  * Instead, just use the destructor of your class to free the member variables of your class.
2804  *
2805  * @subsection PROPINIT
2806  *
2807  * The PROPINIT callback is executed after the problem is transformed. The propagator may, e.g., use this call to
2808  * initialize its propagator data.
2809  *
2810  * @subsection PROPCOPY
2811  *
2812  * The PROPCOPY callback is executed when a SCIP instance is copied, e.g. to
2813  * solve a sub-SCIP. By
2814  * defining this callback as
2815  * <code>NULL</code> the user disables the execution of the specified
2816  * propagator for all copied SCIP instances. This may deteriorate the performance
2817  * of primal heuristics using sub-SCIPs.
2818  *
2819  * @subsection PROPEXIT
2820  *
2821  * The PROPEXIT callback is executed before the transformed problem is freed.
2822  * In this method, the propagator should free all resources that have been allocated for the solving process in PROPINIT.
2823  *
2824  * @subsection PROPINITPRE
2825  *
2826  * The PROPINITPRE callback is executed before the preprocessing is started, even if presolving is turned off.
2827  * The propagator may use this call to initialize its presolving data before the presolving process begins.
2828  *
2829  * @subsection PROPEXITPRE
2830  *
2831  * The PROPEXITPRE callback is executed after the preprocessing has been finished, even if presolving is turned off.
2832  * The propagator may use this call, e.g., to clean up its presolving data.
2833  * Besides clean up, no time consuming operations should be done.
2834  *
2835  * @subsection PROPINITSOL
2836  *
2837  * The PROPINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
2838  * begin.
2839  * The propagator may use this call to initialize its branch-and-bound specific data.
2840  *
2841  * @subsection PROPEXITSOL
2842  *
2843  * The PROPEXITSOL callback is executed before the branch-and-bound process is freed.
2844  * The propagator should use this call to clean up its branch-and-bound data.
2845  *
2846  * @subsection PROPPRESOL
2847  *
2848  * Seaches for domain propagations, analogous to the \ref PROPEXEC callback.
2849  * However, this callback is called during preprocessing.
2850  *
2851  * To inform SCIP that the presolving method found a reduction the result pointer has to be set in a proper way.
2852  * The following options are possible:
2853  *
2854  * - SCIP_UNBOUNDED : at least one variable is not bounded by any constraint in objective direction
2855  * - SCIP_CUTOFF : at least one domain reduction that renders the problem infeasible has been found
2856  * - SCIP_SUCCESS : the presolver found a domain reduction
2857  * - SCIP_DIDNOTFIND : the presolver searched, but did not find a presolving change
2858  * - SCIP_DIDNOTRUN : the presolver was skipped
2859  * - SCIP_DELAYED : the presolver was skipped, but should be called again
2860  *
2861  *
2862  * Please see also the @ref PROP_ADDITIONALPROPERTIES section to learn about the properties
2863  * PROP_PRESOLTIMING and PROP_PRESOL_MAXROUNDS, which influence the behaviour of SCIP
2864  * calling PROPPRESOL.
2865  *
2866  */
2867 
2868 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2869 
2870 /**@page BRANCH How to add branching rules
2871  *
2872  * Branching rules are used to split the problem at the current node into smaller subproblems. Branching rules can be called at three
2873  * different occasions, which is why they have three different execution methods (see \ref
2874  * BRANCHRULE_ADDITIONALCALLBACKS). Branching is performed if:
2875  * - the LP solution of the current problem is fractional. In this case, the integrality constraint handler calls the
2876  * \ref BRANCHEXECLP methods of the branching rules.
2877  * - the list of external branching candidates is not empty. This will only be the case if branching candidates were added
2878  * by a user's \ref RELAX "relaxation handler" or \ref CONS "constraint handler" plugin, calling SCIPaddExternBranchCand().
2879  * These branching candidates should be processed by the \ref BRANCHEXECEXT method.
2880  * - if an integral solution violates one or more constraints and this infeasibility could not be resolved in the callback methods
2881  * \ref CONSENFOLP and \ref CONSENFOPS of the corresponding constraint handlers. In this case, the \ref BRANCHEXECPS method will be called. This is the
2882  * standard case, if you use SCIP as a pure CP or SAT solver. If the LP or any other type of relaxation is used, then
2883  * branching on pseudo solutions works as a last resort.
2884  *
2885  * The idea of branching rules is to take a global view on the problem. In contrast, branching paradigms which are
2886  * specific to one type of constraint are best implemented within the enforcement callbacks of your constraint handler.
2887  * See, e.g., the constraint specific branching rules provided by the constraint handlers for special ordered sets
2888  * (src/scip/cons_sos{1,2}.c)).
2889  * \n
2890  * All branching rules that come with the default distribution of SCIP create two subproblems by splitting a single
2891  * variable's domain. It is, however, fully supported to implement much more general branching schemes, for example by
2892  * creating more than two subproblems, or by adding additional constraints to the subproblems instead of tightening the
2893  * domains of the variables.
2894  * \n
2895  * A complete list of all branching rules contained in this release can be found \ref BRANCHINGRULES "here".
2896  *
2897  * We now explain how users can add their own branching rules. Take the most infeasible LP branching rule
2898  * (src/scip/branch_mostinf.c) as an example. As all other default plugins, it is written in C. C++ users can easily
2899  * adapt the code by using the scip::ObjBranchrule wrapper base class and implement the scip_...() virtual methods instead of
2900  * the SCIP_DECL_BRANCH... callback methods.
2901  *
2902  * Additional documentation for the callback methods of a branching rule can be found in the file type_branch.h.
2903  *
2904  * Here is what you have to do to implement a branching rule:
2905  * -# Copy the template files src/scip/branch_xyz.c and src/scip/branch_xyz.h into files named
2906  * "branch_mybranchingrule.c" and "branch_mybranchingrule.h".
2907  * \n
2908  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2909  * -# Use SCIPincludeBranchruleMybranchingrule() in order to include the branching rule into your SCIP instance,
2910  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2911  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mybranchingrule".
2912  * -# Adjust the properties of the branching rule (see \ref BRANCHRULE_PROPERTIES).
2913  * -# Define the branching rule data (see \ref BRANCHRULE_DATA). This is optional.
2914  * -# Implement the interface methods (see \ref BRANCHRULE_INTERFACE).
2915  * -# Implement the fundamental callback methods (see \ref BRANCHRULE_FUNDAMENTALCALLBACKS).
2916  * -# Implement the additional callback methods (see \ref BRANCHRULE_ADDITIONALCALLBACKS). This is optional.
2917  *
2918  *
2919  * @section BRANCHRULE_PROPERTIES Properties of a Branching Rule
2920  *
2921  * At the top of the new file "branch_mybranchingrule.c" you can find the branching rule properties.
2922  * These are given as compiler defines.
2923  * In the C++ wrapper class, you have to provide the branching rule properties by calling the constructor
2924  * of the abstract base class scip::ObjBranchrule from within your constructor.
2925  * The properties you have to set have the following meaning:
2926  *
2927  * \par BRANCHRULE_NAME: the name of the branching rule.
2928  * This name is used in the interactive shell to address the branching rule.
2929  * Additionally, if you are searching for a branching rule with SCIPfindBranchrule(), this name is looked up.
2930  * Names have to be unique: no two branching rules may have the same name.
2931  *
2932  * \par BRANCHRULE_DESC: the description of the branching rule.
2933  * This string is printed as a description of the branching rule in the interactive shell.
2934  *
2935  * \par BRANCHRULE_PRIORITY: the default value for the priority of the branching rule.
2936  * In the subproblem processing, the branching rules are called in decreasing order of their priority until
2937  * one succeeded to branch. Since most branching rules are able to generate a branching in all situations,
2938  * only the rule of highest priority is used. In combination with the BRANCHRULE_MAXDEPTH and
2939  * BRANCHRULE_MAXBOUNDDIST settings, however, interesting strategies can be easily employed. For example,
2940  * the user can set the priority of the "full strong branching" strategy to the highest value and assign the
2941  * second highest value to the "reliable pseudo cost" rule. If (s)he also sets the maximal depth for the
2942  * "full strong branching" to 5, in the top 5 depth levels of the search tree the "full strong branching" is
2943  * applied, while in the deeper levels "reliable pseudo cost branching" is used.
2944  * \n
2945  * Note that the BRANCHRULE_PRIORITY property only specifies the default value of the priority. The user can
2946  * change this value arbitrarily.
2947  *
2948  * \par BRANCHRULE_MAXDEPTH: the default value for the maximal depth level of the branching rule.
2949  * This parameter denotes the maximal depth level in the branch-and-bound tree up to which the branching method of the
2950  * branching rule will be applied. Use -1 for no limit.
2951  * \n
2952  * Note that this property only specifies the default value. The user can change this value arbitrarily.
2953  *
2954  * \par BRANCHRULE_MAXBOUNDDIST: the default value for the maximal relative distance from current node's dual bound to primal bound compared to best node's dual bound for applying branching.
2955  * At the current branch-and-bound node, the relative distance from its dual bound (local dual bound)
2956  * to the primal bound compared to the best node's dual bound (global dual bound) is considered. The branching method of
2957  * the branching rule will only be applied at the node if this relative distance does not exceed BRANCHRULE_MAXBOUNDDIST.
2958  * \n
2959  * For example, if the global dual bound is 50 and the primal bound is 60, BRANCHRULE_MAXBOUNDDIST = 0.25 means that
2960  * branching is only applied if the current node's dual bound is in the first quarter of the interval [50,60], i.e., if it
2961  * is less than or equal to 52.5. In particular, the values 0.0 and 1.0 mean that the branching rule is applied at the
2962  * current best node only or at all nodes, respectively.
2963  * \n
2964  * Note that the BRANCHRULE_MAXBOUNDDIST property only specifies the default value of the maximal bound distance.
2965  * The user can change this value arbitrarily.
2966  *
2967  *
2968  * @section BRANCHRULE_DATA Branching Rule Data
2969  *
2970  * Below the header "Data structures" you can find a struct which is called "struct SCIP_BranchruleData".
2971  * In this data structure, you can store the data of your branching rule. For example, you should store the adjustable
2972  * parameters of the branching rule in this data structure.
2973  * If you are using C++, you can add branching rule data as usual as object variables to your class.
2974  * \n
2975  * Defining branching rule data is optional. You can leave the struct empty.
2976  *
2977  *
2978  * @section BRANCHRULE_INTERFACE Interface Methods
2979  *
2980  * At the bottom of "branch_mybranchingrule.c", you can find the interface method SCIPincludeBranchruleMybranchingrule(),
2981  * which also appears in "branch_mybranchingrule.h"
2982  * SCIPincludeBranchruleMybranchingrule() is called by the user, if (s)he wants to include the branching rule,
2983  * i.e., if (s)he wants to use the branching rule in his/her application.
2984  *
2985  * This method only has to be adjusted slightly.
2986  * It is responsible for notifying SCIP of the presence of the branching rule. For this, you can either call
2987  * SCIPincludeBranchrule(),
2988  * or SCIPincludeBranchruleBasic() since SCIP version 3.0. In the latter variant, \ref BRANCHRULE_ADDITIONALCALLBACKS "additional callbacks"
2989  * must be added via setter functions as, e.g., SCIPsetBranchruleCopy(). We recommend this latter variant because
2990  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2991  * variant must be manually adjusted with every SCIP release containing new callbacks for branchrule in order to compile.
2992  *
2993  *
2994  * If you are using branching rule data, you have to allocate the memory for the data at this point.
2995  * You can do this by calling:
2996  * \code
2997  * SCIP_CALL( SCIPallocBlockMemory(scip, &branchruledata) );
2998  * \endcode
2999  * You also have to initialize the fields in struct SCIP_BranchruleData afterwards.
3000  *
3001  * You may also add user parameters for your branching rule, see the method SCIPincludeBranchruleRelpscost() in
3002  * src/scip/branch_relpscost.c for an example.
3003  *
3004  *
3005  * @section BRANCHRULE_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Branching Rule
3006  *
3007  * Branching rules do not have any fundamental callback methods, i.e., all callback methods are optional.
3008  * In most cases, however, you want to implement the \ref BRANCHEXECLP method and sometimes the \ref BRANCHEXECPS method.
3009  *
3010  *
3011  * @section BRANCHRULE_ADDITIONALCALLBACKS Additional Callback Methods of a Branching Rule
3012  *
3013  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3014  * implemented for most applications, they can be used, for example, to initialize and free private data.
3015  * Additional callbacks can either be passed directly with SCIPincludeBranchrule() to SCIP or via specific
3016  * <b>setter functions</b> after a call of SCIPincludeBranchruleBasic(), see also @ref BRANCHRULE_INTERFACE.
3017  *
3018  * The most important callback methods are the \ref BRANCHEXECLP, \ref BRANCHEXECEXT,
3019  * and \ref BRANCHEXECPS methods, which perform the actual task of generating a branching.
3020  *
3021  * Additional documentation for the callback methods can be found in type_branch.h.
3022  *
3023  * @subsection BRANCHEXECLP
3024  *
3025  * The BRANCHEXECLP callback is executed during node processing if a fractional LP solution is available. It should
3026  * split the current problem into smaller subproblems. Usually, the branching is done in a way such that the current
3027  * fractional LP solution is no longer feasible in the relaxation of the subproblems. It is, however, possible to
3028  * create a child node for which the fractional LP solution is still feasible in the relaxation, for example, by
3029  * branching on a variable with integral LP value. In every case, you have to make sure that each subproblem is a
3030  * proper restriction of the current problem. Otherwise, you risk to produce an infinite path in the search tree.
3031  *
3032  * The user gains access to the branching candidates, i.e., to the fractional variables, and their LP solution values by
3033  * calling the method SCIPgetLPBranchCands(). Furthermore, SCIP provides two methods for performing the actual
3034  * branching, namely SCIPbranchVar() and SCIPcreateChild().
3035  *
3036  * Given an integral variable \f$x\f$ with fractional LP solution value \f$x^*\f$, the method SCIPbranchVar() creates
3037  * two child nodes; one contains the bound \f$x \le \lfloor x^* \rfloor\f$ and the other one contains the bound \f$x \ge
3038  * \lceil x^* \rceil\f$, see the BRANCHEXECLP callback in src/scip/branch_mostinf.c for an example. In addition, if a
3039  * proven lower objective bound of a created child node is known, like after strong branching has been applied, the user
3040  * may call the method SCIPupdateNodeLowerbound() in order to update the child node's lower bound.
3041  *
3042  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3043  *
3044  * @subsection BRANCHEXECEXT
3045  *
3046  * The BRANCHEXECEXT callback is executed during node processing if no LP solution is available and the list of
3047  * external branching candidates is not empty. It should split the current problem into smaller subproblems. If you
3048  * do not use relaxation handlers or constraints handlers that provide external branching candidates, you do not need to
3049  * implement this callback.
3050  *
3051  * In contrast to the LP branching candidates and the pseudo branching candidates, the list of external branching
3052  * candidates will not be generated automatically. The user has to add all variables to the list by calling
3053  * SCIPaddExternBranchCand() for each of them. Usually, this will happen in the execution method of a relaxation handler or in the
3054  * enforcement methods of a constraint handler.
3055  *
3056  * The user gains access to these branching candidates by calling the method SCIPgetExternBranchCands(). Furthermore,
3057  * SCIP provides two methods for performing the actual branching with a given solution value, namely SCIPbranchVarVal()
3058  * and SCIPcreateChild(). SCIPbranchVarVal() allows users to specify the branching point for a variable in contrast to
3059  * SCIPbranchVar(), which will always use the current LP or pseudo solution.
3060  *
3061  * This paragraph contains additional information regarding how the method SCIPbranchVarVal() works. For external branching candidates,
3062  * there are three principle possibilities:
3063  * - Given a continuous variable \f$x\f$ with solution value \f$x^*\f$, the method SCIPbranchVarVal() creates
3064  * two child nodes; one contains the bound \f$x \le x^* \f$ and the other one contains the bound \f$x \ge x^* \f$.
3065  * - Given an integer variable \f$x\f$ with fractional solution value \f$x^*\f$, the method
3066  * SCIPbranchVarVal() creates two child nodes; one contains the bound \f$x \le \lfloor x^* \rfloor\f$ and the other
3067  * one contains the bound \f$x \ge \lceil x^* \rceil\f$.
3068  * - Given an integer variable \f$x\f$ with integral solution value \f$x^*\f$, the method SCIPbranchVarVal()
3069  * creates three child nodes; one contains the bound \f$x \le x^* -1\f$, one contains the bound \f$x \ge x^* +1\f$,
3070  * one contains the fixing \f$x = x^*\f$.
3071  *
3072  * See the BRANCHEXECEXT callback in src/scip/branch_random.c for an example. In addition, if a proven lower bound of a
3073  * created child node is known the user may call the method SCIPupdateNodeLowerbound() in order to update the child
3074  * node's lower bound.
3075  *
3076  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3077  *
3078  * @subsection BRANCHEXECPS
3079  *
3080  * The BRANCHEXECPS callback is executed during node processing if no LP solution is available and at least one of the
3081  * integer variables is not yet fixed. It should split the current problem into smaller subproblems. PS stands for
3082  * pseudo solution which is the vector of all variables set to their locally best (w.r.t. the objective function)
3083  * bounds.
3084  *
3085  * The user gains access to the branching candidates, i.e., to the non-fixed integer variables, by calling the method
3086  * SCIPgetPseudoBranchCands(). Furthermore, SCIP provides two methods for performing the actual branching, namely
3087  * SCIPbranchVar() and SCIPcreateChild().
3088  *
3089  * Given an integer variable \f$x\f$ with bounds \f$[l,u]\f$ and not having solved the LP, the method SCIPbranchVar()
3090  * creates two child nodes:
3091  * - If both bounds are finite, then the two children will contain the domain reductions \f$x \le x^*\f$, and \f$x \ge
3092  * x^*+1\f$ with \f$x^* = \lfloor \frac{l + u}{2}\rfloor\f$. The current pseudo solution will remain feasible in one
3093  * of the branches, but the hope is that halving the domain's size leads to good propagations.
3094  * - If only one of the bounds is finite, the variable will be fixed to that bound in one of the child nodes. In the
3095  * other child node, the bound will be shifted by one.
3096  * - If both bounds are infinite, three children will be created: \f$x \le 1\f$, \f$x \ge 1\f$, and \f$x = 0\f$.
3097 
3098  *
3099  * See the BRANCHEXECPS callback in src/scip/branch_random.c for an example. In addition, if a proven lower bound of a
3100  * created child node is known, the user may call the method SCIPupdateNodeLowerbound() in order to update the child
3101  * node's lower bound.
3102  *
3103  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3104  *
3105  * @subsection BRANCHEXEC Further information for the three execution methods
3106  *
3107  * In order to apply more general branching schemes, one should use the method SCIPcreateChild().
3108  * After having created a child node, the additional restrictions of the child node have to be added with calls to
3109  * SCIPaddConsNode(), SCIPchgVarLbNode(), or SCIPchgVarUbNode().
3110  * \n
3111  * In the method SCIPcreateChild(), the branching rule has to assign two values to the new nodes: a node selection
3112  * priority for each node and an estimate for the objective value of the best feasible solution contained in the subtree
3113  * after applying the branching. If the method SCIPbranchVar() is used, these values are automatically assigned. For
3114  * variable based branching schemes, one might use the methods SCIPcalcNodeselPriority() and the method
3115  * SCIPcalcChildEstimate().
3116  *
3117  * In some cases, the branching rule can tighten the current subproblem instead of producing a branching. For example,
3118  * strong branching might have proven that rounding up a variable would lead to an infeasible LP relaxation and thus,
3119  * the variable must be rounded down. Therefore, the BRANCHEXECLP, BRANCHEXECPS and BRANCHEXECREL callbacks may also
3120  * produce domain reductions or add additional constraints to the current subproblem.
3121  *
3122  * The execution callbacks have the following options:
3123  * - detecting that the node is infeasible and can be cut off (result SCIP_CUTOFF)
3124  * - adding an additional constraint (e.g. a conflict constraint) (result SCIP_CONSADDED; note that this action
3125  * must not be performed if the input "allowaddcons" is FALSE)
3126  * - reducing the domain of a variable such that the current LP solution becomes infeasible (result SCIP_REDUCEDDOM)
3127  * - applying a branching (result SCIP_BRANCHED)
3128  * - stating that the branching rule was skipped (result SCIP_DIDNOTRUN).
3129  *
3130  * Only the BRANCHEXECLP callback has the possibility to add a cutting plane to the LP (result SCIP_SEPARATED).
3131  *
3132  * @subsection BRANCHFREE
3133  *
3134  * If you are using branching rule data, you have to implement this method in order to free the branching rule data.
3135  * This can be done by the following procedure:
3136  *
3137  * @refsnippet{src/scip/branch_random.c,SnippetBranchFreeRandom}
3138  *
3139  * If you have allocated memory for fields in your branching rule data, remember to free this memory
3140  * before freeing the branching rule data itself.
3141  * If you are using the C++ wrapper class, this method is not available.
3142  * Instead, just use the destructor of your class to free the member variables of your class.
3143  *
3144  * @subsection BRANCHINIT
3145  *
3146  * The BRANCHINIT callback is executed after the problem is transformed.
3147  * The branching rule may, e.g., use this call to initialize its branching rule data.
3148  *
3149  * @subsection BRANCHCOPY
3150  *
3151  * The BRANCHCOPY callback is executed when a SCIP instance is copied, e.g. to
3152  * solve a sub-SCIP. By
3153  * defining this callback as
3154  * <code>NULL</code> the user disables the execution of the specified
3155  * branching rule for all copied SCIP instances. This may deteriorate the performance
3156  * of primal heuristics using sub-SCIPs.
3157  *
3158  * @subsection BRANCHEXIT
3159  *
3160  * The BRANCHEXIT callback is executed before the transformed problem is freed.
3161  * In this method, the branching rule should free all resources that have been allocated for the solving process in
3162  * BRANCHINIT.
3163  *
3164  * @subsection BRANCHINITSOL
3165  *
3166  * The BRANCHINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3167  * begin.
3168  * The branching rule may use this call to initialize its branch-and-bound specific data.
3169  *
3170  * @subsection BRANCHEXITSOL
3171  *
3172  * The BRANCHEXITSOL callback is executed before the branch-and-bound process is freed.
3173  * The branching rule should use this call to clean up its branch-and-bound data.
3174  */
3175 
3176 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3177 
3178 /**@page NODESEL How to add node selectors
3179  *
3180  * Node selectors are used to decide which of the leaves in the current branching tree is selected as next subproblem
3181  * to be processed. The ordering relation of the tree's leaves for storing them in the leaf priority queue is also
3182  * defined by the node selectors.
3183  * \n
3184  * A complete list of all node selectors contained in this release can be found \ref NODESELECTORS "here".
3185  *
3186  * We now explain how users can add their own node selectors.
3187  * Take the node selector for depth first search (src/scip/nodesel_dfs.c) as an example.
3188  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjNodesel wrapper
3189  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_NODESEL... callback methods.
3190  *
3191  * Additional documentation for the callback methods of a node selector can be found in the file type_nodesel.h.
3192  *
3193  * Here is what you have to do to implement a node selector:
3194  * -# Copy the template files src/scip/nodesel_xyz.c and src/scip/nodesel_xyz.h into files named "nodesel_mynodeselector.c"
3195  * and "nodesel_mynodeselector.h".
3196  * \n
3197  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3198  * -# Use SCIPincludeNodeselMynodeselector() in oder to include the node selector into your SCIP instance,
3199  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3200  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mynodeselector".
3201  * -# Adjust the properties of the node selector (see \ref NODESEL_PROPERTIES).
3202  * -# Define the node selector data (see \ref NODESEL_DATA). This is optional.
3203  * -# Implement the interface methods (see \ref NODESEL_INTERFACE).
3204  * -# Implement the fundamental callback methods (see \ref NODESEL_FUNDAMENTALCALLBACKS).
3205  * -# Implement the additional callback methods (see \ref NODESEL_ADDITIONALCALLBACKS). This is optional.
3206  *
3207  *
3208  * @section NODESEL_PROPERTIES Properties of a Node Selector
3209  *
3210  * At the top of the new file "nodesel_mynodeselector.c" you can find the node selector properties.
3211  * These are given as compiler defines.
3212  * In the C++ wrapper class, you have to provide the node selector properties by calling the constructor
3213  * of the abstract base class scip::ObjNodesel from within your constructor.
3214  * The properties you have to set have the following meaning:
3215  *
3216  * \par NODESEL_NAME: the name of the node selector.
3217  * This name is used in the interactive shell to address the node selector.
3218  * Additionally, if you are searching for a node selector with SCIPfindNodesel(), this name is looked up.
3219  * Names have to be unique: no two node selectors may have the same name.
3220  *
3221  * \par NODESEL_DESC: the description of the node selector.
3222  * This string is printed as a description of the node selector in the interactive shell.
3223  *
3224  * \par NODESEL_STDPRIORITY: the default priority of the node selector in the standard mode.
3225  * The first step of each iteration of the main solving loop is the selection of the next subproblem to be processed.
3226  * The node selector of highest priority (the active node selector) is called to do this selection.
3227  * In particular, if you implemented your own node selector plugin which you want to be applied, you should choose a priority
3228  * which is greater then all priorities of the SCIP default node selectors.
3229  * Note that SCIP has two different operation modes: the standard mode and the memory saving mode. If the memory
3230  * limit - given as a parameter by the user - is almost reached, SCIP switches from the standard mode to the memory saving
3231  * mode in which different priorities for the node selectors are applied. NODESEL_STDPRIORITY is the priority of the
3232  * node selector used in the standard mode.
3233  * \n
3234  * Note that this property only defines the default value of the priority. The user may change this value arbitrarily by
3235  * adjusting the corresponding parameter setting.
3236  *
3237  * \par NODESEL_MEMSAVEPRIORITY: the default priority of the node selector in the memory saving mode.
3238  * The priority NODESEL_MEMSAVEPRIORITY of the node selector has the same meaning as the priority NODESEL_STDPRIORITY, but
3239  * is used in the memory saving mode.
3240  * Usually, you want the best performing node selector, for example best estimate search, to have maximal
3241  * standard priority, while you want a node selector which tends to keep the growth of the search tree limited, for example
3242  * depth first search, to have maximal memory saving priority.
3243  * \n
3244  * Note that this property only defines the default value of the priority. The user may change this value arbitrarily by
3245  * adjusting the corresponding parameter setting.
3246  *
3247  *
3248  * @section NODESEL_DATA Node Selector Data
3249  *
3250  * Below the header "Data structures" you can find a struct which is called "struct SCIP_NodeselData".
3251  * In this data structure, you can store the data of your node selector. For example, you should store the adjustable
3252  * parameters of the node selector in this data structure.
3253  * If you are using C++, you can add node selector data as usual as object variables to your class.
3254  * \n
3255  * Defining node selector data is optional. You can leave the struct empty.
3256  *
3257  *
3258  * @section NODESEL_INTERFACE Interface Methods
3259  *
3260  * At the bottom of "nodesel_mynodeselector.c", you can find the interface method SCIPincludeNodeselMynodeselector(),
3261  * which also appears in "nodesel_mynodeselector.h"
3262  * SCIPincludeNodeselMynodeselector() is called by the user, if (s)he wants to include the node selector,
3263  * i.e., if (s)he wants to use the node selector in his/her application.
3264  *
3265  * This method only has to be adjusted slightly.
3266  * It is responsible for notifying SCIP of the presence of the node selector. For this, you can either call
3267  * SCIPincludeNodesel(),
3268  * or SCIPincludeNodeselBasic() since SCIP version 3.0. In the latter variant, \ref NODESEL_ADDITIONALCALLBACKS "additional callbacks"
3269  * must be added via setter functions as, e.g., SCIPsetNodeselCopy(). We recommend this latter variant because
3270  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3271  * variant must be manually adjusted with every SCIP release containing new callbacks for node selectors in order to compile.
3272  *
3273  *
3274  * If you are using node selector data, you have to allocate the memory for the data at this point.
3275  * You can do this by calling:
3276  * \code
3277  * SCIP_CALL( SCIPallocBlockMemory(scip, &nodeseldata) );
3278  * \endcode
3279  * You also have to initialize the fields in struct SCIP_NodeselData afterwards.
3280  *
3281  * You may also add user parameters for your node selector, see the method SCIPincludeNodeselRestartdfs() in
3282  * src/scip/nodesel_restartdfs.c for an example.
3283  *
3284  *
3285  * @section NODESEL_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Node Selector
3286  *
3287  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
3288  * an operational algorithm.
3289  * They are passed together with the node selector itself to SCIP using SCIPincludeNodesel() or SCIPincludeNodeselBasic(),
3290  * see @ref NODESEL_INTERFACE.
3291  *
3292  * Node selector plugins have two fundamental callback methods, namely the NODESELSELECT method and the NODESELCOMP method.
3293  * These methods have to be implemented for every node selector; the other callback methods are optional.
3294  * They implement the two requirements every node selector has to fulfill: Selecting a node from the queue to be processed
3295  * next and, given two nodes, deciding which of both is favored by the node selector's selection rule. The first
3296  * task is implemented in the NODESELSELECT callback, the second one in the NODESELCOMP callback.
3297  * In the C++ wrapper class scip::ObjNodesel, the scip_select() method and the scip_comp() method (which correspond to the
3298  * NODESELSELECT callback and the NODESELCOMP callback, respectively) are virtual abstract member functions.
3299  * You have to implement them in order to be able to construct an object of your node selector class.
3300  *
3301  * Additional documentation for the callback methods can be found in type_nodesel.h.
3302  *
3303  * @subsection NODESELSELECT
3304  *
3305  * The NODESELSELECT callback is the first method called in each iteration in the main solving loop. It should decide
3306  * which of the leaves in the current branching tree is selected as the next subproblem to be processed.
3307  * It can arbitrarily decide between all leaves stored in the tree, but for performance reasons,
3308  * the current node's children and siblings are often treated different from the remaining leaves.
3309  * This is mainly due to the warm start capabilities of the simplex algorithm and the expectation that the bases of
3310  * neighboring vertices in the branching tree very similar.
3311  * The node selector's choice of the next node to process can
3312  * have a large impact on the solver's performance, because it influences the finding of feasible solutions and the
3313  * development of the global dual bound.
3314  *
3315  * Besides the ranking of the node selector, every node gets assigned a node selection priority by the branching rule
3316  * that created the node. See the \ref BRANCHEXECLP and \ref BRANCHEXECPS callbacks of the branching rules for details.
3317  * For example, the node where the branching went in the same way as the deviation from the branching variable's
3318  * root solution could be assigned a higher priority than the node where the branching went in the opposite direction.
3319  *
3320  * The following methods provide access to the various types of leaf nodes:
3321  * - SCIPgetPrioChild() returns the child of the current node with the largest node selection priority, as assigned by the
3322  * branching rule.
3323  * If no child is available (for example, because the current node was pruned), a NULL pointer is returned.
3324  * - SCIPgetBestChild() returns the best child of the current node with respect to the node selector's ordering relation as
3325  * defined by the \ref NODESELCOMP callback. If no child is available, a NULL pointer is returned.
3326  * - SCIPgetPrioSibling() returns the sibling of the current node with the largest node selection priority.
3327  * If no sibling is available (for example, because all siblings of the current node have already been processed), a NULL
3328  * pointer is returned.
3329  * Note that in binary branching every node has at most one sibling, but since SCIP supports arbitrary branching rules,
3330  * this might not always be the case.
3331  * - SCIPgetBestSibling() returns the best sibling of the current node with respect to the node selector's ordering relation
3332  * as defined by the \ref NODESELCOMP callback. If no sibling is available, a NULL pointer is returned.
3333  * - SCIPgetBestNode() returns the best leaf from the tree (children, siblings, or other leaves) with respect to the node
3334  * selector's ordering relation as defined by the \ref NODESELCOMP callback. If no open leaf exists, a NULL pointer is
3335  * returned. In this case, the optimization is finished, and the node selector should return a NULL pointer as 'selnode'.
3336  * - SCIPgetBestboundNode() returns a leaf from the tree (children, siblings, or other leaves) with the smallest lower (dual)
3337  * objective bound. If the queue is empty, a NULL pointer is returned. In this case, the optimization is finished, and the
3338  * node selector should return a NULL pointer as 'selnode'.
3339  *
3340  *
3341  * @subsection NODESELCOMP
3342  *
3343  * The NODESELCOMP callback is called to compare two leaves of the current branching tree (say node 1 and node 2)
3344  * regarding their ordering relation.
3345  *
3346  * The NODESELCOMP should return the following values:
3347  * - value < 0, if node 1 comes before (is better than) node 2
3348  * - value = 0, if both nodes are equally good
3349  * - value > 0, if node 1 comes after (is worse than) node 2.
3350  *
3351  * @section NODESEL_ADDITIONALCALLBACKS Additional Callback Methods of a Node Selector
3352  *
3353  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3354  * implemented for most applications, they can be used, for example, to initialize and free private data.
3355  * Additional callbacks can either be passed directly with SCIPincludeNodesel() to SCIP or via specific
3356  * <b>setter functions</b> after a call of SCIPincludeNodeselBasic(), see also @ref NODESEL_INTERFACE.
3357  *
3358  * @subsection NODESELFREE
3359  *
3360  * If you are using node selector data, you have to implement this method in order to free the node selector data.
3361  * This can be done by the following procedure:
3362  *
3363  * @refsnippet{src/scip/nodesel_bfs.c,SnippetNodeselFreeBfs}
3364  *
3365  * If you have allocated memory for fields in your node selector data, remember to free this memory
3366  * before freeing the node selector data itself.
3367  * If you are using the C++ wrapper class, this method is not available.
3368  * Instead, just use the destructor of your class to free the member variables of your class.
3369  *
3370  * @subsection NODESELINIT
3371  *
3372  * The NODESELINIT callback is executed after the problem is transformed.
3373  * The node selector may, e.g., use this call to initialize its node selector data.
3374  *
3375  * @subsection NODESELCOPY
3376  *
3377  * The NODESELCOPY callback is executed when a SCIP instance is copied, e.g. to
3378  * solve a sub-SCIP. By
3379  * defining this callback as
3380  * <code>NULL</code> the user disables the execution of the specified
3381  * node selector for all copied SCIP instances. This may deteriorate the performance
3382  * of primal heuristics using sub-SCIPs.
3383  *
3384  * @subsection NODESELEXIT
3385  *
3386  * The NODESELEXIT callback is executed before the transformed problem is freed.
3387  * In this method, the node selector should free all resources that have been allocated for the solving process
3388  * in NODESELINIT.
3389  *
3390  * @subsection NODESELINITSOL
3391  *
3392  * The NODESELINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3393  * begin.
3394  * The node selector may use this call to initialize its branch-and-bound specific data.
3395  *
3396  * @subsection NODESELEXITSOL
3397  *
3398  * The NODESELEXITSOL callback is executed before the branch-and-bound process is freed.
3399  * The node selector should use this call to clean up its branch-and-bound data.
3400  */
3401 
3402 
3403 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3404 
3405 /**@page HEUR How to add primal heuristics
3406  *
3407  * Feasible solutions can be found in two different ways during the traversal of the branch-and-bound tree. On one
3408  * hand, the solution of a node's relaxation may be feasible with respect to the constraints (including the integrality).
3409  * On the other hand, feasible solutions can be discovered by primal heuristics.
3410  * \n
3411  * A complete list of all primal heuristics contained in this release can be found \ref PRIMALHEURISTICS "here".
3412  * \n
3413  * Diving heuristics are primal heuristics that explore an auxiliary search tree in a depth-first manner. Since SCIP
3414  * version 3.2, it is easy to integrate further diving heuristics by using a special controller for the scoring,
3415  * see \ref DIVINGHEUR "here" for information on how to implement a diving heuristic.
3416  * \n
3417  * We now explain how users can add their own primal heuristics.
3418  * Take the simple and fast LP rounding heuristic (src/scip/heur_simplerounding.c) as an example.
3419  * The idea of simple rounding is to iterate over all fractional variables of an LP solution and round them down,
3420  * if the variables appears only with nonnegative coefficients in the system Ax <= b and round them up if
3421  * the variables appears only with nonpositive coefficients.
3422  * If one of both conditions applies for each of the fractional variables, this will give a feasible solution.
3423  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjHeur wrapper
3424  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_HEUR... callback methods.
3425  *
3426  * Additional documentation for the callback methods of a primal heuristic can be found in the file type_heur.h.
3427  *
3428  * Here is what you have to do to implement a primal heuristic:
3429  * -# Copy the template files src/scip/heur_xyz.c and src/scip/heur_xyz.h into files named "heur_myheuristic.c"
3430  * and "heur_myheuristic.h".
3431  * \n
3432  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3433  * -# Use SCIPincludeHeurMyheuristic() in order to include the heuristic into your SCIP instance,
3434  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3435  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myheuristic".
3436  * -# Adjust the properties of the primal heuristic (see \ref HEUR_PROPERTIES).
3437  * -# Define the primal heuristic data (see \ref HEUR_DATA). This is optional.
3438  * -# Implement the interface methods (see \ref HEUR_INTERFACE).
3439  * -# Implement the fundamental callback methods (see \ref HEUR_FUNDAMENTALCALLBACKS).
3440  * -# Implement the additional callback methods (see \ref HEUR_ADDITIONALCALLBACKS). This is optional.
3441  *
3442  *
3443  * @section HEUR_PROPERTIES Properties of a Primal Heuristic
3444  *
3445  * At the top of the new file "heur_myheuristic.c" you can find the primal heuristic properties.
3446  * These are given as compiler defines.
3447  * In the C++ wrapper class, you have to provide the primal heuristic properties by calling the constructor
3448  * of the abstract base class scip::ObjHeur from within your constructor.
3449  * Of course, all of them are of relevant, but the most important ones for controlling the performance
3450  * are usually HEUR_FREQ and HEUR_TIMING.
3451  * The properties you have to set have the following meaning:
3452  *
3453  * \par HEUR_NAME: the name of the primal heuristic.
3454  * This name is used in the interactive shell to address the primal heuristic.
3455  * Additionally, if you are searching for a primal heuristic with SCIPfindHeur(), this name is looked up.
3456  * Names have to be unique: no two primal heuristics may have the same name.
3457  *
3458  * \par HEUR_DESC: the description of the primal heuristic.
3459  * This string is printed as a description of the primal heuristic in the interactive shell when you call "display heuristics".
3460  *
3461  * \par HEUR_DISPCHAR: the display character of the primal heuristic.
3462  * In the interactive shell, this character is printed in the first column of a status information row, if the primal
3463  * heuristic found the feasible solution belonging to the primal bound. Note that a star '*' stands for an integral
3464  * LP-relaxation.
3465  * In order to avoid confusion, display characters should be unique: no two primal heuristics should have the same display character.
3466  * You can get a list of all primal heuristics along with their display characters by entering "display heuristics" in the
3467  * SCIP interactive shell.
3468  *
3469  * \par HEUR_PRIORITY: the priority of the primal heuristic.
3470  * At each of the different entry points of the primal heuristics during the solving process (see HEUR_TIMING), they are
3471  * called in decreasing order of their priority.
3472  * \n
3473  * The priority of a primal heuristic should be set according to the complexity of the heuristic and the likelihood to find
3474  * feasible solutions: primal heuristics that provide fast algorithms that often succeed in finding a feasible solution should have
3475  * a high priority (like simple rounding). In addition, the interaction between different types of primal heuristics should be taken into account.
3476  * For example, improvement heuristics, which try to generate improved solutions by inspecting one or more of the feasible
3477  * solutions that have already been found, should have a low priority (like Crossover which by default needs at least 3 feasible solutions).
3478  *
3479  * \par HEUR_FREQ: the default frequency for executing the primal heuristic.
3480  * The frequency together with the frequency offset (see HEUR_FREQOFS) defines the depth levels at which the execution
3481  * method of the primal heuristic \ref HEUREXEC is called. For example, a frequency of 7 together with a frequency offset
3482  * of 5 means, that the \ref HEUREXEC callback is executed for subproblems that are in depth 5, 12, 19, ... of the branching tree. A
3483  * frequency of 0 together with a frequency offset of 3 means, that the execution method is only called at those nodes that are in
3484  * depth level 3 (i.e., at most for \f$2^3 = 8\f$ nodes if binary branching is applied).
3485  * Typical cases are: A frequency of 0 and an offset of 0 which means that
3486  * the heuristic is only called at the root node and a frequency of -1 which disables the heuristic.
3487  * \n
3488  * The frequency can be adjusted by the user. This property of the primal heuristic only defines the default value of the
3489  * frequency. If you want to have a more flexible control of when to execute the primal heuristic, you have to assign
3490  * a frequency of 1 and implement a check at the beginning of your execution method whether you really want to search for feasible
3491  * solutions or not. If you do not want to execute the method, set the result code to SCIP_DIDNOTRUN.
3492  *
3493  * \par HEUR_FREQOFS: the frequency offset for executing the primal heuristic.
3494  * The frequency offset defines the depth of the branching tree at which the primal heuristic is executed for the first
3495  * time. For example, a frequency of 7 (see HEUR_FREQ) together with a frequency offset of 10 means, that the
3496  * callback is executed for subproblems that are in depth 10, 17, 24, ... of the branching tree. In particular, assigning
3497  * different offset values to heuristics of the same type, like diving heuristics, can be useful for evenly spreading the
3498  * application of these heuristics across the branch-and-bound tree.
3499  * Note that if the frequency is equal to 1, the heuristic is applied for all nodes with depth level larger or equal to
3500  * the frequency offset.
3501  *
3502  * \par HEUR_MAXDEPTH: the maximal depth level for executing the primal heuristic.
3503  * This parameter denotes the maximal depth level in the branching tree up to which the execution method of the primal
3504  * heuristic is called. Use -1 for no limit (a usual case).
3505  *
3506  * \par HEUR_TIMING: the execution timing of the primal heuristic.
3507  * Primal heuristics have different entry points during the solving process and the execution timing parameter defines the
3508  * entry point at which the primal heuristic is executed first.
3509  * \n
3510  * The primal heuristic can be called first:
3511  * - before the processing of the node starts (SCIP_HEURTIMING_BEFORENODE)
3512  * - after each LP solve during the cut-and-price loop (SCIP_HEURTIMING_DURINGLPLOOP)
3513  * - after the cut-and-price loop was finished (SCIP_HEURTIMING_AFTERLPLOOP)
3514  * - after the processing of a node <em>with solved LP</em> was finished (SCIP_HEURTIMING_AFTERLPNODE)
3515  * - after the processing of a node <em>without solved LP</em> was finished (SCIP_HEURTIMING_AFTERPSEUDONODE)
3516  * - after the processing of the last node in the current plunge was finished, <em>and only if the LP was solved for
3517  * this node</em> (SCIP_HEURTIMING_AFTERLPPLUNGE)
3518  * - after the processing of the last node in the current plunge was finished, <em>and only if the LP was not solved
3519  * for this node</em> (SCIP_HEURTIMING_AFTERPSEUDOPLUNGE).
3520  * \par
3521  * A plunge is the successive solving of child and sibling nodes in the search tree.
3522  * The flags listed above can be combined to call the heuristic at multiple times by concatenating them with a bitwise OR.
3523  * Two useful combinations are already predefined:
3524  * - after the processing of a node was finished (SCIP_HEURTIMING_AFTERNODE; combines SCIP_HEURTIMING_AFTERLPNODE and
3525  * SCIP_HEURTIMING_AFTERPSEUDONODE)
3526  * - after the processing of the last node in the current plunge was finished (SCIP_HEURTIMING_AFTERPLUNGE; combines
3527  * SCIP_HEURTIMING_AFTERLPPLUNGE and SCIP_HEURTIMING_AFTERPSEUDOPLUNGE)
3528  * \par
3529  * Calling a primal heuristic "before the processing of the node starts" is particularly useful for heuristics
3530  * that do not need to access the LP solution of the current node. If such a heuristic finds a feasible solution, the
3531  * leaves of the branching tree exceeding the new primal bound are pruned. It may happen that even the current node can
3532  * be cut off without solving the LP relaxation. Combinatorial heuristics, like the farthest insert heuristic for the TSP
3533  * (see examples/TSP/src/HeurFarthestInsert.cpp), are often applicable at this point.
3534  * \n
3535  * Very fast primal heuristics that require an LP solution can also be called "after each LP solve during the
3536  * cut-and-price loop". Rounding heuristics, like the simple and fast LP rounding heuristic
3537  * (src/scip/heur_simplerounding.c), belong to this group of primal heuristics.
3538  * \n
3539  * Most heuristics, however, are called either after a node was completely processed
3540  * (e.g. expensive rounding heuristics like RENS), or even only after a full plunge was finished (e.g., diving heuristics).
3541  *
3542  * \par HEUR_USESSUBSCIP: Does the heuristic use a secondary SCIP instance?
3543  * Some heuristics and separators solve MIPs or SAT problems using a secondary SCIP instance. Examples are
3544  * Large Neighborhood Search heuristics such as RINS and Local Branching or the CGMIP separator. To avoid recursion,
3545  * these plugins usually deactivate all other plugins that solve MIPs. If a heuristic uses a secondary SCIP instance,
3546  * this parameter has to be TRUE and it is recommended to call SCIPsetSubscipsOff() for the secondary SCIP instance.
3547  *
3548  * Computational experiments indicate that for the overall performance of a MIP solver, it is important to evenly
3549  * spread the application of the heuristics across the branch-and-bound tree. Thus, the assignment of the parameters
3550  * HEUR_FREQ, HEUR_FREQOFS, and HEUR_TIMING should contribute to this aim.
3551  *
3552  * Note that all diving heuristics in the SCIP distribution (see, e.g., src/scip/heur_guideddiving.c) check whether other diving
3553  * heuristics have already been called at the current node. This can be done by comparing SCIPgetLastDivenode(scip) and
3554  * SCIPgetNNodes(scip). If the two are equal, and if the current node is not the root node (SCIPgetDepth(scip) > 0), diving
3555  * heuristics should be delayed by returning the result code 'SCIP_DELAYED'. This is an additional contribution to the goal of
3556  * not calling multiple similar heuristics at the same node.
3557  *
3558  *
3559  * @section HEUR_DATA Primal Heuristic Data
3560  *
3561  * Below the header "Data structures" you can find a struct which is called "struct SCIP_HeurData".
3562  * In this data structure, you can store the data of your primal heuristic. For example, you should store the adjustable
3563  * parameters of the primal heuristic or a working solution in this data structure.
3564  * If you are using C++, you can add primal heuristic data as usual as object variables to your class.
3565  * \n
3566  * Defining primal heuristic data is optional. You can leave the struct empty.
3567  *
3568  *
3569  * @section HEUR_INTERFACE Interface Methods
3570  *
3571  * At the bottom of "heur_myheuristic.c", you can find the interface method SCIPincludeHeurMyheuristic(),
3572  * which also appears in "heur_myheuristic.h"
3573  * SCIPincludeHeurMyheuristic() is called by the user, if (s)he wants to include the heuristic,
3574  * i.e., if (s)he wants to use the heuristic in his/her application.
3575  *
3576  * This method only has to be adjusted slightly.
3577  * It is responsible for notifying SCIP of the presence of the heuristic. For this, you can either call
3578  * SCIPincludeHeur(),
3579  * or SCIPincludeHeurBasic() since SCIP version 3.0. In the latter variant, \ref HEUR_ADDITIONALCALLBACKS "additional callbacks"
3580  * must be added via setter functions as, e.g., SCIPsetHeurCopy(). We recommend this latter variant because
3581  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3582  * variant must be manually adjusted with every SCIP release containing new callbacks for heuristics in order to compile.
3583  *
3584  * If you are using primal heuristic data, you have to allocate the memory for the data at this point.
3585  * You can do this by calling:
3586  * \code
3587  * SCIP_CALL( SCIPallocBlockMemory(scip, &heurdata) );
3588  * \endcode
3589  * You also have to initialize the fields in struct SCIP_HeurData afterwards.
3590  *
3591  * You may also add user parameters for your primal heuristic, see the method SCIPincludeHeurFeaspump() in
3592  * src/scip/heur_oneopt.c for an example where a single Boolean parameter is added.
3593  *
3594  *
3595  * @section HEUR_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Primal Heuristic
3596  *
3597  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
3598  * an operational algorithm.
3599  * They are passed together with the primal heuristic itself to SCIP using SCIPincludeHeur() or SCIPincludeHeurBasic(),
3600  * see @ref HEUR_INTERFACE.
3601  *
3602  *
3603  * Primal heuristic plugins have only one fundamental callback method, namely the HEUREXEC method.
3604  * This method has to be implemented for every primal heuristic; the other callback methods are optional.
3605  * In the C++ wrapper class scip::ObjHeur, the scip_exec() method (which corresponds to the HEUREXEC callback) is a virtual
3606  * abstract member function. You have to implement it in order to be able to construct an object of your primal heuristic
3607  * class.
3608  *
3609  * Additional documentation for the callback methods can be found in type_heur.h.
3610  *
3611  * @subsection HEUREXEC
3612  *
3613  * The HEUREXEC callback is called at different positions during the node processing loop, see HEUR_TIMING. It should
3614  * search for feasible solutions and add them to the solution pool. For creating a new feasible solution, the
3615  * methods SCIPcreateSol() and SCIPsetSolVal() can be used. Afterwards, the solution can be added to the storage by
3616  * calling the method SCIPtrySolFree() (or SCIPtrySol() and SCIPfreeSol()).
3617  *
3618  * The HEUREXEC callback gets a SCIP pointer, a pointer to the heuristic itself, the current point in the
3619  * solve loop and a result pointer as input (see type_heur.h).
3620  *
3621  * The heuristic has to set the result pointer appropriately!
3622  * Therefore it has the following options:
3623  * - finding at least one feasible solution (result SCIP_FOUNDSOL)
3624  * - stating that the primal heuristic searched, but did not find a feasible solution (result SCIP_DIDNOTFIND)
3625  * - stating that the primal heuristic was skipped (result SCIP_DIDNOTRUN)
3626  * - stating that the primal heuristic was skipped, but should be called again (result SCIP_DELAYED).
3627  *
3628  *
3629  * @section HEUR_ADDITIONALCALLBACKS Additional Callback Methods of a Primal Heuristic
3630  *
3631  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3632  * implemented for most applications, they can be used, for example, to initialize and free private data.
3633  * Additional callbacks can either be passed directly with SCIPincludeHeur() to SCIP or via specific
3634  * <b>setter functions</b> after a call of SCIPincludeHeurBasic(), see also @ref HEUR_INTERFACE.
3635  *
3636  * @subsection HEURFREE
3637  *
3638  * If you are using primal heuristic data, you have to implement this method in order to free the primal heuristic data.
3639  * This can be done by the following procedure:
3640  *
3641  * @refsnippet{applications/Coloring/src/heur_init.c,SnippetHeurFreeInit}
3642  *
3643  * If you have allocated memory for fields in your primal heuristic data, remember to free this memory
3644  * before freeing the primal heuristic data itself.
3645  * If you are using the C++ wrapper class, this method is not available.
3646  * Instead, just use the destructor of your class to free the member variables of your class.
3647  *
3648  * @subsection HEURINIT
3649  *
3650  * The HEURINIT callback is executed after the problem is transformed.
3651  * The primal heuristic may, e.g., use this call to initialize its primal heuristic data.
3652  *
3653  * @subsection HEURCOPY
3654  *
3655  * The HEURCOPY callback is executed when a SCIP instance is copied, e.g. to
3656  * solve a sub-SCIP. By
3657  * defining this callback as
3658  * <code>NULL</code> the user disables the execution of the specified
3659  * heuristic for all copied SCIP instances. This may deteriorate the performance
3660  * of primal heuristics using sub-SCIPs.
3661  *
3662  * @subsection HEUREXIT
3663  *
3664  * The HEUREXIT callback is executed before the tDIVINGHEURransformed problem is freed.
3665  * In this method, the primal heuristic should free all resources that have been allocated for the solving process in
3666  * HEURINIT.
3667  *
3668  * @subsection HEURINITSOL
3669  *
3670  * The HEURINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3671  * begin. The primal heuristic may use this call to initialize its branch-and-bound specific data.
3672  *
3673  * @subsection HEUREXITSOL
3674  *
3675  * The HEUREXITSOL callback is executed before the branch-and-bound process is freed. The primal heuristic should use this
3676  * call to clean up its branch-and-bound data, which was allocated in HEURINITSOL.
3677  */
3678 
3679 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3680 
3681 /**@page DIVINGHEUR How to implement a diving heuristic
3682  *
3683  * Diving heuristics are an important addon to the branch-and-cut search. A diving heuristic explores a single probing
3684  * path down the search tree. In contrast to the regular search guided by branching rule(s) and the selected
3685  * node selector, the diving is performed in an auxiliary tree originating from the focus node of the main
3686  * search tree where the heuristic was called. The advantage of this approach is that many different scoring mechanisms
3687  * can be safely tried as diving heuristic and may probably lead to better solutions. SCIP has a lot of diving heuristics
3688  * included in its default plugin set.
3689  * \n
3690  *
3691  * Since SCIP version 3.2, the diving heuristics have been redesigned to contain mainly the scoring function used by the
3692  * heuristic. In order to implement a user-defined diving heuristic, it is possible to create one (or several)
3693  * divesets that control the scoring mechanism and add them to the primal heuristic. This has the advantage that
3694  * less code is necessary to create a working diving heuristic. The SCIP statistics now also display some interesting statistics
3695  * about every diveset together in the section 'Diving Statistics'.
3696  * \n
3697  *
3698  * This page contains the necessary steps to understand and include a diveset into ones primal diving heuristic plugin. As
3699  * a prerequisite, you should understand the basic implementation steps for a primal heuristic, see \ref HEUR.
3700  * In order to make use of divesets, they must be included _after_ the primal heuristic to which they should belong
3701  * has been included, by using SCIPincludeDiveset(). This will create the data structure for the diveset and
3702  * append it to the list of divesets belonging to the heuristic, which can be retrieved later together with their number
3703  * by using SCIPheurGetDivesets() and SCIPheurGetNDivesets(), respectively. No further memory allocation or deletion is needed;
3704  * As a member of the heuristic, SCIP automatically takes care of freeing the diveset when it is exiting.
3705  * \n
3706  *
3707  * Before the inclusion, one may think of adjusting the various properties that a diveset offers to control
3708  * the behavior of the algorithm. These are subject to the following section.
3709  * \n
3710  *
3711  * It is mandatory to implement the fundamental scoring callback of the diveset, which is explained in more detail
3712  * in Section \ref DIVING_FUNDAMENTALCALLBACKS.
3713  * \n
3714  *
3715  * Once the properties have been carefully adjusted and the scoring
3716  * has been defined, use the method SCIPperformGenericDivingAlgorithm() inside the execution callback (\ref HEUREXEC) of the primal
3717  * heuristic to which the diveset belongs, after checking possible preliminaries that may not be met at all times of the search.
3718  * \n
3719  *
3720  * For a code example, we refer to \ref heur_guideddiving.h, which guides the diving into the direction of the current incumbent solution.
3721  * Before it calls SCIPperformGenericDivingAlgorithm(), it checks whether an incumbent is available, and returns if there is none.
3722  *
3723  *
3724  * @section DIVING_PARAMETERS User parameters and properties for every diveset
3725  *
3726  * Every diveset controls the diving behavior through a set of user-defined parameters, which are explained in the following:
3727  *
3728  * \par MINRELDEPTH
3729  * the minimal relative depth (to the maximum depth explored during regular search) of the current focus node to start diving
3730  *
3731  * \par MAXRELDEPTH
3732  * the maximal relative depth (to the maximum depth explored during regular search) of the current focus node to start diving
3733  *
3734  * \par MAXLPITERQUOT
3735  * maximal fraction of diving LP iterations compared to node LP iterations that this dive controller may consume
3736  *
3737  * \par MAXLPITEROFS
3738  * an additional number of allowed LP iterations
3739  *
3740  * \par MAXDIVEUBQUOT
3741  * maximal quotient (curlowerbound - lowerbound)/(cutoffbound - lowerbound)
3742  * where diving is performed (0.0: no limit)
3743  *
3744  * \par MAXDIVEAVGQUOT
3745  * maximal quotient (curlowerbound - lowerbound)/(avglowerbound - lowerbound)
3746  * where diving is performed (0.0: no limit)
3747  *
3748  * \par MAXDIVEUBQUOTNOSOL
3749  * maximal UBQUOT when no solution was found yet (0.0: no limit)
3750  *
3751  * \par MAXDIVEAVGQUOTNOSOL
3752  * maximal AVGQUOT when no solution was found yet (0.0: no limit)
3753  *
3754  * \par BACKTRACK
3755  * use one level of backtracking if infeasibility is encountered?
3756  *
3757  * \par LPRESOLVEDOMCHGQUOT
3758  * parameter to control LP resolve dynamically based on this percentage of observed bound changes relative to all variables or
3759  * the LP branching candidates (integer variables with fractional solution values) from the last node where an LP has been solved.
3760  * This property has no effect when the LPSOLVEFREQ is set to 1.
3761  *
3762  * \par LPSOLVEFREQ
3763  * LP solve frequency for diveset, use a positive integer k to solve an LP at every k'th depth of the diving search (ie. 1 causes the
3764  * diveset to solve _all_ intermediate LPs) or 0 to only resolve the LP relaxation after propagation found at least a certain percentage
3765  * domain changes, see also the previous LPRESOLVEDOMCHGQUOT parameter.
3766  *
3767  * \par ONLYLPBRANCHCANDS
3768  * Set this property to TRUE if only LP branching candidates be considered for the execution of the diving algorithm instead of the slower but
3769  * more general constraint handler diving variable selection.
3770  *
3771  * \par DIVETYPES
3772  * bit mask that represents all supported dive types. Irrelevant if only LP branching candidates should be scored, otherwise, different
3773  * constraint handlers may ask the diveset if it supports their preferred divetype. See \ref type_heur.h for a list of
3774  * available dive types.
3775  *
3776  * @section DIVING_FUNDAMENTALCALLBACKS Fundamental callbacks of a diveset
3777  *
3778  * Only one callback is necessary to complete a diveset to guide the diving search performed:
3779  *
3780  * @subsection DIVESETGETSCORE
3781  *
3782  * The scoring callback expects a candidate variable and calculates a score value and a preferred direction. The selected
3783  * variable for diving will be one that _maximizes_ the score function provided by the diveset.
3784  * If the diveset should support more than one possible type of diving, it may use the divetype argument as a hint how
3785  * the caller of the score function (could be the diving algorithm itself or one of the constraint handlers that
3786  * implement diving variable selection) intends to perform the search.
3787  *
3788  * @section DIVING_FURTHERINFO Further information
3789  *
3790  * This is all there is to extend the SCIP set of diving heuristics by a new one. For further information, please see
3791  * diveset related methods in \ref type_heur.h, \ref pub_heur.h, \ref heuristics.h, and \ref heur_guideddiving.h or
3792  * other diving heuristics that implement diving through a diveset.
3793  */
3794 
3795 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3796 
3797 /**@page RELAX How to add relaxation handlers
3798  *
3799  * SCIP provides specific support for LP relaxations of constraint integer programs. In addition, relaxation handlers,
3800  * also called relaxators, can be used to include other relaxations, e.g. Lagrange relaxations or semidefinite
3801  * relaxations. The relaxation handler manages the necessary data structures and calls the relaxation solver to generate dual
3802  * bounds and primal solution candidates.
3803  * \n
3804  * However, the data to define a single relaxation must either be extracted by the relaxation handler itself (e.g., from
3805  * the user defined problem data, the LP information, or the integrality conditions), or be provided by the constraint
3806  * handlers. In the latter case, the constraint handlers have to be extended to support this specific relaxation.
3807  * \n
3808  *
3809  * We now explain how users can add their own relaxation handlers using the C interface. As an example, look into the NLP
3810  * relaxation handler of the \ref RELAXATOR_MAIN "Relaxator example" (examples/Relaxator/src/relax_nlp.c). It is very easy to
3811  * transfer the C explanation to C++: whenever a method should be implemented using the SCIP_DECL_RELAX... notion,
3812  * reimplement the corresponding virtual member function of the abstract scip::ObjRelax wrapper base class.
3813  *
3814  * Additional documentation for the callback methods of a relaxation handler can be found in the file type_relax.h.
3815  *
3816  * Here is what you have to do to implement a relaxation handler:
3817  * -# Copy the template files src/scip/relax_xyz.c and src/scip/relax_xyz.h into files named "relax_myrelaxator.c"
3818  * and "relax_myrelaxator.h".
3819  * \n
3820  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3821  * -# Use SCIPincludeRelaxMyrelaxator() in order to include the relaxation handler into your SCIP instance,
3822  * e.g, in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3823  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myrelaxator".
3824  * -# Adjust the properties of the relaxation handler (see \ref RELAX_PROPERTIES).
3825  * -# Define the relaxation handler data (see \ref RELAX_DATA). This is optional.
3826  * -# Implement the interface methods (see \ref RELAX_INTERFACE).
3827  * -# Implement the fundamental callback methods (see \ref RELAX_FUNDAMENTALCALLBACKS).
3828  * -# Implement the additional callback methods (see \ref RELAX_ADDITIONALCALLBACKS). This is optional.
3829  *
3830  *
3831  * @section RELAX_PROPERTIES Properties of a Relaxation Handler
3832  *
3833  * At the top of the new file "relax_myrelaxator.c" you can find the relaxation handler properties.
3834  * These are given as compiler defines.
3835  * In the C++ wrapper class, you have to provide the relaxation handler properties by calling the constructor
3836  * of the abstract base class scip::ObjRelax from within your constructor.
3837  * The properties you have to set have the following meaning:
3838  *
3839  * \par RELAX_NAME: the name of the relaxation handler.
3840  * This name is used in the interactive shell to address the relaxation handler.
3841  * Additionally, if you are searching for a relaxation handler with SCIPfindRelax(), this name is looked up.
3842  * Names have to be unique: no two relaxation handlers may have the same name.
3843  *
3844  * \par RELAX_DESC: the description of the relaxation handler.
3845  * This string is printed as a description of the relaxation handler in the interactive shell.
3846  *
3847  * \par RELAX_PRIORITY: the priority of the relaxation handler.
3848  * During each relaxation solving round, the included relaxation handlers and the
3849  * price-and-cut loop for solving the LP relaxation are called in a predefined order, which is given by the priorities
3850  * of the relaxation handlers.
3851  * First, the relaxation handlers with non-negative priority are called in the order of decreasing priority.
3852  * Next, the price-and-cut loop for solving the LP relaxation is executed.
3853  * Finally, the relaxation handlers with negative priority are called in the order of decreasing priority.
3854  * \n
3855  * Usually, you will have only one relaxation handler in your application and thus only have to decide whether it should
3856  * be called before or after solving the LP relaxation. For this decision you should consider the complexity of
3857  * the relaxation solving algorithm and the impact of the resulting solution: if your relaxation handler provides a fast
3858  * algorithm that usually has a high impact (i.e. the relaxation is a good approximation of the
3859  * feasible region of the subproblem and the solution severely improves the dual bound), it should have a non-negative
3860  * priority.
3861  * \n
3862  * Note that for certain applications, it is useful to disable the LP relaxation and only use your custom relaxation.
3863  * This can easily be achieved by setting the "lp/solvefreq" parameter to -1.
3864  *
3865  * \par RELAX_FREQ: the default frequency for solving the relaxation.
3866  * The frequency defines the depth levels at which the relaxation solving method \ref RELAXEXEC is called.
3867  * For example, a frequency of 7 means, that the relaxation solving callback is executed for subproblems that are in depth
3868  * 0, 7, 14, ... of the branching tree. A frequency of 0 means that the callback is only executed at the root node, i.e.,
3869  * only the relaxation of the root problem is solved. A frequency of -1 disables the relaxation handler.
3870  *
3871  * \par RELAX_INCLUDESLP: whether the whole lp is included in the relaxation.
3872  * This flag should be set to TRUE if all active LP-rows are included in the relaxation and every feasible solution produced
3873  * by the relaxator will satisfy all these LP-constraints. Only if this is set to TRUE, the solutions of this relaxator can
3874  * be enforced using the \ref CONSENFORELAX callback, meaning that they will be used as primal solutions if feasible and can
3875  * be separated or branched on. If this flag is set to FALSE, only the lowerbound computed by the relaxator will be used in
3876  * the solving process.
3877  *
3878  *
3879  * @section RELAX_DATA Relaxation Handler Data
3880  *
3881  * Below the header "Data structures" you can find a struct which is called "struct SCIP_RelaxData".
3882  * In this data structure, you can store the data of your relaxation handler. For example, you should store the adjustable
3883  * parameters of the relaxation handler in this data structure.
3884  * If you are using C++, you can add relaxation handler data as usual as object variables to your class.
3885  * \n
3886  * Defining relaxation handler data is optional. You can leave the struct empty.
3887  *
3888  *
3889  * @section RELAX_INTERFACE Interface Methods
3890  *
3891  * At the bottom of "relax_myrelaxator.c", you can find the interface method SCIPincludeRelaxMyrelaxator(),
3892  * which also appears in "relax_myrelaxator.h".
3893  * SCIPincludeRelaxMyrelaxator() is called by the user, if (s)he wants to include the relaxation handler,
3894  * i.e., if (s)he wants to use the relaxation handler in his/her application.
3895  *
3896  * This method only has to be adjusted slightly.
3897  * It is responsible for notifying SCIP of the presence of the relaxation handler. For this, you can either call
3898  * SCIPincludeRelax(),
3899  * or SCIPincludeRelaxBasic() since SCIP version 3.0. In the latter variant, \ref RELAX_ADDITIONALCALLBACKS "additional callbacks"
3900  * must be added via setter functions as, e.g., SCIPsetRelaxCopy(). We recommend this latter variant because
3901  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3902  * variant must be manually adjusted with every SCIP release containing new callbacks for relaxation handlers in order to compile.
3903  *
3904  * If you are using relaxation handler data, you have to allocate the memory for the data at this point.
3905  * You can do this by calling:
3906  * \code
3907  * SCIP_CALL( SCIPallocBlockMemory(scip, &relaxdata) );
3908  * \endcode
3909  * You also have to initialize the fields in struct SCIP_RelaxData afterwards.
3910  *
3911  * You may also add user parameters for your relaxation handler, see the method SCIPincludeConshdlrKnapsack() in
3912  * the \ref cons_knapsack.h "knapsack constraint handler" for an example of how to add user parameters.
3913  *
3914  *
3915  * @section RELAX_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Relaxation Handler
3916  *
3917  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
3918  * an operational algorithm.
3919  * They are passed together with the relaxation handler itself to SCIP using SCIPincludeRelax() or SCIPincludeRelaxBasic(),
3920  * see @ref RELAX_INTERFACE.
3921  *
3922  *
3923  * Relaxation handler plugins have only one fundamental callback method, namely the \ref RELAXEXEC method.
3924  * This method has to be implemented for every relaxation handler; the other callback methods are optional.
3925  * In the C++ wrapper class scip::ObjRelax, the scip_exec() method (which corresponds to the \ref RELAXEXEC callback) is a virtual
3926  * abstract member function.
3927  * You have to implement it in order to be able to construct an object of your relaxation handler class.
3928  *
3929  * Additional documentation for the callback methods can be found in type_relax.h.
3930  *
3931  * @subsection RELAXEXEC
3932  * The RELAXEXEC is called in each relaxation solving round. It should solve the current
3933  * subproblem's relaxation.
3934  *
3935  * Note that, like the LP relaxation, the relaxation handler should only operate on variables for which the corresponding
3936  * column exists in the transformed problem. Typical methods called by a relaxation handler are SCIPconstructLP() and SCIPflushLP() to
3937  * make sure that the LP of the current node is constructed and its data can be accessed via calls to SCIPgetLPRowsData()
3938  * and SCIPgetLPColsData(), and SCIPseparateSol() to call the cutting plane separators for a given primal solution.
3939  *
3940  * The lowerbound computed by the relaxation should be returned in the lowerbound pointer. The primal solution of the relaxation can
3941  * be stored inside the data structures of SCIP with <code>SCIPsetRelaxSolVal()</code> and <code>SCIPsetRelaxSolVals()</code>. If the
3942  * RELAX_INCLUDESLP flag is set to true, this solution will be enforced and, if feasible, added to the solution storage if the
3943  * lowerbound of this relaxator is the largest among all relaxators and the LP. You may also call SCIPtrySolFree() directly from the
3944  * relaxation handler to make sure that a solution is added to the solution storage if it is feasible, even if the relaxator does not
3945  * include the LP or another relaxator produced a stronger bound. After the relaxation round is finished, the best relaxation solution
3946  * can be accessed via <code>SCIPgetRelaxSolVal()</code>.
3947  * Furthermore, there is a list of external branching candidates, that can be filled by relaxation handlers and constraint handlers,
3948  * allowing branching rules to take these candidates as a guide on how to split the problem into subproblems. If the relaxation
3949  * solution is enforced, the integrality constraint handler will add external branching candidates for the relaxation solution
3950  * automatically, but the relaxation handler can also directly call <code>SCIPaddExternBranchCand()</code>.
3951  *
3952  * Usually, the RELAXEXEC callback only solves the relaxation and provides a lower (dual) bound through the corresponding pointer and
3953  * possibly a solution through <code>SCIPsetRelaxSolVal()</code> calls.
3954  * However, it may also produce domain reductions, add additional constraints or generate cutting planes. It has the
3955  * following options:
3956  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
3957  * - adding an additional constraint and stating that the relaxation handler should not be called again on the same
3958  * relaxation (result SCIP_CONSADDED)
3959  * - reducing a variable's domain and stating that the relaxation handler should not be called again on the same
3960  * relaxation (result SCIP_REDUCEDDOM)
3961  * - adding a cutting plane to the LP and stating that the relaxation handler should not be called again on the same
3962  * relaxation (result SCIP_SEPARATED)
3963  * - stating that the relaxation handler solved the relaxation and should not be called again on the same relaxation
3964  * (result SCIP_SUCCESS)
3965  * - interrupting the solving process to wait for additional input, e.g., cutting planes (result SCIP_SUSPENDED)
3966  * - stating that the separator was skipped (result SCIP_DIDNOTRUN).
3967  *
3968  * In the above criteria, "the same relaxation" means that the LP relaxation stayed unmodified. This means in particular
3969  * that no row has been added and no bounds have been modified. For example, changing the bounds of a variable will, as
3970  * long as it was a COLUMN variable, lead to a modification in the LP such that the relaxation handler is called again
3971  * after it returned with the result code SCIP_REDUCEDDOM. If the relaxation solution should be enforced, the relaxation
3972  * handler has to produce a new solution in this case which satisfies the updated LP. If a relaxation handler should only run
3973  * once per node to compute a lower bound, it should store the node of the last relaxation call itself and return
3974  * SCIP_DIDNOTRUN for subsequent calls in the same node.
3975  *
3976  *
3977  * @section RELAX_ADDITIONALCALLBACKS Additional Callback Methods of a Relaxation Handler
3978  *
3979  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3980  * implemented for most applications, they can be used, for example, to initialize and free private data.
3981  * Additional callbacks can either be passed directly with SCIPincludeRelax() to SCIP or via specific
3982  * <b>setter functions</b> after a call of SCIPincludeRelaxBasic(), see also @ref RELAX_INTERFACE.
3983  *
3984  * @subsection RELAXFREE
3985  *
3986  * If you are using relaxation handler data, you have to implement this method in order to free the relaxation handler
3987  * data. This can be done by the following procedure:
3988  *
3989  * @refsnippet{unittests/src/unittest-relax/relax_unittest.c,SnippetRelaxFreeUnittest}
3990  *
3991  * If you have allocated memory for fields in your relaxation handler data, remember to free this memory
3992  * before freeing the relaxation handler data itself.
3993  * If you are using the C++ wrapper class, this method is not available.
3994  * Instead, just use the destructor of your class to free the member variables of your class.
3995  *
3996  * @subsection RELAXINIT
3997  *
3998  * The RELAXINIT callback is executed after the problem is transformed.
3999  * The relaxation handler may, e.g., use this call to initialize its relaxation handler data.
4000  *
4001  * @subsection RELAXCOPY
4002  *
4003  * The RELAXCOPY callback is executed when a SCIP instance is copied, e.g. to
4004  * solve a sub-SCIP. By
4005  * defining this callback as
4006  * <code>NULL</code> the user disables the execution of the specified
4007  * relaxation handler for all copied SCIP instances. This may deteriorate the performance
4008  * of primal heuristics using sub-SCIPs.
4009  *
4010  * @subsection RELAXEXIT
4011  *
4012  * The RELAXEXIT callback is executed before the transformed problem is freed.
4013  * In this method, the relaxation handler should free all resources that have been allocated for the solving process in
4014  * RELAXINIT.
4015  *
4016  * @subsection RELAXINITSOL
4017  *
4018  * The RELAXINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
4019  * begin. The relaxation handler may use this call to initialize its branch-and-bound specific data.
4020  *
4021  * @subsection REALXEXITSOL
4022  *
4023  * The RELAXEXITSOL callback is executed before the branch-and-bound process is freed.
4024  * The relaxation handler should use this call to clean up its branch-and-bound data.
4025  */
4026 
4027 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4028 
4029 /**@page READER How to add file readers
4030  *
4031  * Mainly, file readers are called to parse an input file and generate a constraint integer programming model. They
4032  * create constraints and variables and activate variable pricers if necessary. However, they can also be called, for
4033  * example, to parse an input file containing information about a primal solution or fixing of variables. Besides that
4034  * it is possible to use some of them for writing (exporting) the problem in a specific format. \n A complete list of
4035  * all file readers contained in this release can be found \ref FILEREADERS "here".
4036  *
4037  * Since a file reader is also responsible for writing a file, the user may
4038  * ask why the readers have not the name "filehandler". This name would
4039  * represent this plugin much better than the used one.
4040  * \n
4041  * The used name "readers" is historically grown. In the beginning of SCIP
4042  * there was no need to write/export problems. Therefore, the the plugin
4043  * name "readers" was best fitting for this plugin since only reading was essential.
4044  * It turned out, however, that it is quite nice to write/export certain subproblem during
4045  * the solving process mainly for debugging. Therefore, a writing callback
4046  * was added to the "readers" plugin.
4047  *
4048  * We now explain how users can add their own file readers.
4049  * Take the file reader for MIPs in IBM's Mathematical Programming System format (src/scip/reader_mps.c) as an example.
4050  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjReader wrapper
4051  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_READER... callback methods.
4052  *
4053  * Additional documentation for the callback methods of a file reader can be found in the file type_reader.h.
4054  *
4055  * Here is what you have to do to implement a file reader named "myreader" in C:
4056  * -# Copy the template files src/scip/reader_xyz.c and src/scip/reader_xyz.h into files named
4057  * "reader_myreader.c" and "reader_myreader.h".
4058  * \n
4059  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4060  * -# Use SCIPincludeReaderMyreader() in order to include the file reader into your SCIP instance,
4061  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4062  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myreader".
4063  * -# Adjust the \ref READER_PROPERTIES "properties of the file reader".
4064  * -# Define the \ref READER_DATA "file reader data". This is optional.
4065  * -# Implement the \ref READER_INTERFACE "interface methods".
4066  * -# Implement the \ref READER_FUNDAMENTALCALLBACKS "fundamental callback methods".
4067  * -# Implement the \ref READER_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4068  *
4069  *
4070  * @section READER_PROPERTIES Properties of a File Reader
4071  *
4072  * At the top of the new file "reader_myreader.c" you can find the file reader properties.
4073  * These are given as compiler defines.
4074  * In the C++ wrapper class, you have to provide the file reader properties by calling the constructor
4075  * of the abstract base class scip::ObjReader from within your constructor.
4076  * The properties you have to set have the following meaning:
4077  *
4078  * \par READER_NAME: the name of the file reader.
4079  * This name is used in the interactive shell to address the file reader.
4080  * Additionally, if you are searching for a file reader with SCIPfindReader(), this name is looked up.
4081  * Names have to be unique: no two file readers may have the same name.
4082  *
4083  * \par READER_DESC: the description of the file reader.
4084  * This string is printed as a description of the file reader in the interactive shell.
4085  *
4086  * \par READER_EXTENSION: the file name extension of the file reader.
4087  * Each file reader is hooked to a single file name extension. It is automatically called if the user wants to read in a
4088  * file of corresponding name. The extensions of the different file readers have to be unique.
4089  * Note that the additional extension '.gz', '.z', or '.Z' (indicating a gzip compressed file) are ignored for assigning
4090  * an input file to a reader.
4091  * \n
4092  * It is not possible to hook up a (single) file reader with more than one file extension.
4093  * It is, however, not necessary to implement the same (parsing/writing) methods more than once, if you want to
4094  * support several file extension with the same parser. To do so look at the files reader_lp.c
4095  * and reader_rlp.c. Both support the LP format.
4096  *
4097  *
4098  * @section READER_DATA File Reader Data
4099  *
4100  * Below the header "Data structures" you can find a struct which is called "struct SCIP_ReaderData".
4101  * In this data structure, you can store the data of your file reader. For example, you should store the adjustable
4102  * parameters of the file reader in this data structure.
4103  * If you are using C++, you can add file reader data as usual as object variables to your class.
4104  * \n
4105  * Defining file reader data is optional. You can leave the struct empty.
4106  *
4107  *
4108  * @section READER_INTERFACE Interface Methods
4109  *
4110  * At the bottom of "reader_myreader.c", you can find the interface method SCIPincludeReaderMyreader(),
4111  * which also appears in "reader_myreader.h".
4112  * SCIPincludeReaderMyreader() is called by the user, if (s)he wants to include the reader,
4113  * i.e., if (s)he wants to use the reader in his/her application.
4114  *
4115  * This method only has to be adjusted slightly.
4116  * It is responsible for notifying SCIP of the presence of the reader. For this, you can either call
4117  * SCIPincludeReader(),
4118  * or SCIPincludeReaderBasic() since SCIP version 3.0. In the latter variant, \ref READER_ADDITIONALCALLBACKS "additional callbacks"
4119  * must be added via setter functions as, e.g., SCIPsetReaderCopy(). We recommend this latter variant because
4120  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
4121  * variant must be manually adjusted with every SCIP release containing new callbacks for readers in order to compile.
4122  *
4123  * If you are using file reader data, you have to allocate the memory for the data at this point.
4124  * You can do this by calling:
4125  * \code
4126  * SCIP_CALL( SCIPallocBlockMemory(scip, &readerdata) );
4127  * \endcode
4128  * You also have to initialize the fields in struct SCIP_ReaderData afterwards.
4129  *
4130  * You may also add user parameters for your file reader, see the method SCIPincludeReaderLp() in
4131  * src/scip/reader_lp.c for an example.
4132  *
4133  *
4134  * @section READER_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a File Reader
4135  *
4136  * File reader plugins have no fundamental callback methods. This is due to
4137  * the fact that a file reader can be used for reading and/or writing a
4138  * file. A file reader is only useful if the reader method \ref READERREAD
4139  * and/or the writing method \ref READERWRITE is implemented. One of these
4140  * methods should be implemented for every file reader; the other callback
4141  * methods \ref READERCOPY and \ref READERFREE are optional. In the C++ wrapper class scip::ObjReader, the
4142  * scip_read() and scip_write() methods (which corresponds to the \ref
4143  * READERREAD and \ref READERWRITE callback) are virtual member
4144  * functions. At least one of them should be implemented.
4145  *
4146  * Additional documentation for the callback methods can be found in type_reader.h.
4147  *
4148  *
4149  * @section READER_ADDITIONALCALLBACKS Additional Callback Methods of a File Reader
4150  *
4151  * Additional callbacks can either be passed directly with SCIPincludeReader() to SCIP or via specific
4152  * <b>setter functions</b> after a call of SCIPincludeReaderBasic(), see also @ref READER_INTERFACE.
4153  *
4154  *
4155  * File reader plugins contain only additional callback methods, namely the methods \ref READERREAD,
4156  * \ref READERWRITE, \ref READERFREE, and \ref READERCOPY. Therefore, these are not needed to be implemented. However,
4157  * at least \ref READERREAD and/or \ref READERWRITE should be implemented (see notes
4158  * \ref READER_FUNDAMENTALCALLBACKS "above").
4159  *
4160  *
4161  * @subsection READERREAD
4162  *
4163  * The READERREAD callback is called when the user invokes SCIP to read in a file with file name extension
4164  * corresponding to the READER_EXTENSION property of the file reader. This is usually triggered by a call to the method
4165  * SCIPreadProb() or by an interactive shell command.
4166  * The READERREAD callback should parse the input file and perform the desired action, which usually means
4167  * generating a constraint integer programming model, adding a primal solution, fixing variables
4168  * in an existing model.
4169  * \n
4170  * Typical methods called by a file reader that is used to read/generate constraint
4171  * integer programming models are, for example,
4172  *
4173  * - creating an empty problem: SCIPcreateProb()
4174  * - creating the variables: SCIPcreateVar(), SCIPchgVarType(), SCIPchgVarLb(), SCIPchgVarUb(), SCIPaddVar(), and
4175  * SCIPreleaseVar()
4176  * - modifying the objective function: SCIPchgVarObj() and SCIPsetObjsense().
4177  * - creating the constraints: SCIPcreateConsLinear(), SCIPaddCoefLinear(), SCIPchgLhsLinear(), SCIPchgRhsLinear(),
4178  * SCIPaddCons(), and SCIPreleaseCons()
4179  *
4180  * Primal solutions can only be created for the transformed problem. Therefore, the user has to call SCIPtransformProb()
4181  * before (s)he reads in the file containing the solution and adds it to the solution pool via the method SCIPreadSol().
4182  *
4183  *
4184  * @subsection READERWRITE
4185  *
4186  * The READERWRITE callback is called when the user invokes SCIP to write a problem (original or transformed)
4187  * in the format the reader supports. This is only possible if this callback is implemented. To write the problem
4188  * all necessary information is given through the parameters of this callback method (see type_reader.h). This
4189  * information should be used to output the problem in the requested format. This callback method is usually
4190  * triggered by the call of the methods SCIPwriteOrigProblem(), SCIPwriteTransProblem(), SCIPprintOrigProblem(),
4191  * or SCIPprintTransProblem().
4192  * \n
4193  * A typical method called by a file reader which is used to write/export a constraint
4194  * integer programming model is SCIPinfoMessage(). This method outputs a given string into a file
4195  * or into stdout.
4196  * \n
4197  * For an example we refer to the writing method of the MPS reader (see reader_mps.c).
4198  *
4199  *
4200  * @subsection READERCOPY
4201  *
4202  * The READERCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
4203  * callback as <code>NULL</code> the user disables the execution of the specified reader for all copied SCIP
4204  * instances. The question might arise why to copy that plugin. In case of debugging it is nice to be able to
4205  * write/display the copied instances. Since the reader is in charge of that, you might want to copy the plugin. Below
4206  * you see a standard implementation.
4207  *
4208  * @refsnippet{src/scip/reader_mps.c,SnippetReaderCopyMps}
4209  *
4210  * @subsection READERFREE
4211  *
4212  * If you are using file reader data, you have to implement this method in order to free the file reader data.
4213  * This can be done by the following procedure:
4214  *
4215  * @refsnippet{src/scip/reader_mps.c,SnippetReaderFreeMps}
4216  *
4217  * If you have allocated memory for fields in your file reader data, remember to free this memory
4218  * before freeing the file reader data itself.
4219  * If you are using the C++ wrapper class, this method is not available.
4220  * Instead, just use the destructor of your class to free the member variables of your class.
4221  *
4222  */
4223 
4224 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4225 
4226 /**@page DIALOG How to add dialogs
4227  *
4228  * SCIP comes with a command line shell which allows the user to read in problem instances, modify the solver's
4229  * parameters, initiate the optimization and display certain statistics and solution information. This shell consists
4230  * of dialogs, which are organized as a tree in SCIP. A node of this tree which is not a leaf represents a menu in
4231  * the shell and the children of this node correspond to the entries of this menu (which can again be menus). All
4232  * different dialogs are managed by a dialog handler, which, in particular, is responsible for executing the dialog
4233  * corresponding to the user's command in the shell. The concept of a dialog handler is different to that
4234  * of a constraint handler, which is used to manage objects of the same structure, see \ref CONS. In particular, SCIP
4235  * features only one dialog handler (dialog_default.h), whereas there may exist different constraint handlers.
4236  * \n
4237  * A complete list of all dialogs contained in this release can be found \ref DIALOGS "here".
4238  *
4239  * We now explain how users can extend the interactive shell by adding their own dialog.
4240  * We give the explanation for creating your own source file for each additional dialog. Of course, you can collect
4241  * different dialogs in one source file. Take src/scip/dialog_default.c, where all default dialog plugins are collected, as an
4242  * example.
4243  * As all other default plugins, the default dialog plugin and the template dialog are written in C. C++ users can easily
4244  * adapt the code by using the scip::ObjDialog wrapper base class and implement the scip_...() virtual methods instead of the
4245  * SCIP_DECL_DIALOG... callback methods.
4246  *
4247  * Additional documentation for the callback methods of a dialog can be found in the file type_dialog.h.
4248  *
4249  * Here is what you have to do to add a dialog (assuming your dialog is named "mydialog"):
4250  * -# Copy the template files src/scip/dialog_xyz.c and src/scip/dialog_xyz.h into files named "dialog_mydialog.c"
4251  * and "dialog_mydialog.h".
4252  * \n
4253  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4254  * -# Use SCIPincludeDialogMydialog() in order to include the dialog handler into your SCIP instance,
4255  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4256  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mydialog".
4257  * -# Adjust the \ref DIALOG_PROPERTIES "properties of the dialog".
4258  * -# Define the \ref DIALOG_DATA "dialog data". This is optional.
4259  * -# Implement the \ref DIALOG_INTERFACE "interface methods".
4260  * -# Implement the \ref DIALOG_FUNDAMENTALCALLBACKS "fundamental callback methods".
4261  * -# Implement the \ref DIALOG_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4262  *
4263  *
4264  * @section DIALOG_PROPERTIES Properties of a Dialog
4265  *
4266  * At the top of the new file "dialog_mydialog.c" you can find the dialog properties.
4267  * These are given as compiler defines.
4268  * In the C++ wrapper class, you have to provide the dialog properties by calling the constructor
4269  * of the abstract base class scip::ObjDialog from within your constructor.
4270  * The properties you have to set have the following meaning:
4271  *
4272  * \par DIALOG_NAME: the name of the dialog.
4273  * In the interactive shell, this name appears as the command name of the dialog in the parent dialog.
4274  * Additionally, if you are searching an entry in a menu with SCIPdialogFindEntry(), this name is looked up.
4275  * Names within one menu have to be unique: no two dialogs in the same menu may have the same name.
4276  *
4277  * \par DIALOG_DESC: the description of the dialog.
4278  * This string is printed as a description of the dialog in the interactive shell if the additional
4279  * callback method \ref DIALOGDESC is not implemented.
4280  *
4281  * \par DIALOG_ISSUBMENU: whether the dialog is a (sub)menu.
4282  * This parameter states whether the dialog is a menu in the interactive shell, i.e., is the parent of further
4283  * dialogs.
4284  *
4285  *
4286  * @section DIALOG_DATA Dialog Data
4287  *
4288  * Below the header "Data structures" you can find a struct which is called "struct SCIP_DialogData".
4289  * In this data structure, you can store the data of your dialog.
4290  * If you are using C++, you can add dialog data as usual as object variables to your class.
4291  * \n
4292  * Defining dialog data is optional. You can leave the struct empty.
4293  *
4294  *
4295  * @section DIALOG_INTERFACE Interface Methods
4296  *
4297  * At the bottom of "dialog_mydialog.c" you can find the interface method SCIPincludeDialogMydialog(), which also appears
4298  * in "dialog_mydialog.h".
4299  * \n
4300  * This method only has to be adjusted slightly.
4301  * It is responsible for notifying SCIP of the presence of the dialog, which can be done by the following lines of code:
4302  *
4303  * @refsnippet{src/scip/dialog_xyz.c,SnippetDialogAddXyz}
4304  *
4305  * Here "parentdialog" has to be an existing dialog which is defined to be a menu (see DIALOG_ISSUBMENU), e.g.,
4306  * the default root dialog. The method SCIPgetRootDialog() returns the root dialog.
4307  *
4308  * The interface method is called by the user, if (s)he wants to include the dialog, i.e., if (s)he wants to use the dialog in
4309  * his/her application.
4310  * Note that in order to be able to link the new dialog to an existing default dialog
4311  * (except the root dialog) it has to be included <b>after the
4312  * default dialogs plugin</b>, i.e., the SCIPincludeDialogMydialog() call has to occur after the
4313  * SCIPincludeDialogDefault() call. The SCIPincludeDialogDefault() method is called from within the SCIPincludeDefaultPlugins()
4314  * method. Therefore, it suffices to include your dialog plugins after you have called SCIPincludeDefaultPlugins().
4315  * In case you want to add a dialog to the <b>root dialog</b>, you just use the following
4316  * lines of code to get/create the root dialog.
4317  *
4318  * \code
4319  * SCIP_DIALOG* root;
4320  *
4321  * root = SCIPgetRootDialog(scip);
4322  * if( root == NULL )
4323  * {
4324  * SCIP_CALL( SCIPcreateRootDialog(scip, &root) );
4325  * }
4326  * assert( root != NULL );
4327  * \endcode
4328  *
4329  * Therefore, in this case you do not have to worry about the calls of
4330  * SCIPincludeDialogDefault() and SCIPincludeDefaultPlugins() .
4331  *
4332  * If you are using dialog data, you have to allocate the memory for the data at this point.
4333  * You can do this by calling:
4334  * \code
4335  * SCIP_CALL( SCIPallocBlockMemory(scip, &dialogdata) );
4336  * \endcode
4337  * You also have to initialize the fields in struct SCIP_DialogData afterwards.
4338  *
4339  * Consider the following example. The user wants to add a "drawgraph" command to the root menu of SCIP.
4340  * (S)he copies the "dialog_xyz.c" and "dialog_xyz.h" files into files "dialog_drawgraph.c" and "dialog_drawgraph.h", respectively.
4341  * Then, (s)he puts the following code into the SCIPincludeDialogDrawgraph() method, compare SCIPincludeDialogDefault() in
4342  * src/scip/dialog_default.c:
4343  * \code
4344  * SCIP_RETCODE SCIPincludeDialogDrawgraph(
4345  * SCIP* scip
4346  * )
4347  * {
4348  * SCIP_DIALOG* root;
4349  * SCIP_DIALOG* dialog;
4350  *
4351  * root = SCIPgetRootDialog(scip);
4352  * if( root == NULL )
4353  * {
4354  * SCIP_CALL( SCIPcreateRootDialog(scip, &root) );
4355  * }
4356  * assert( root != NULL );
4357  *
4358  * if( !SCIPdialogHasEntry(root, "drawgraph") )
4359  * {
4360  * SCIP_CALL( SCIPcreateDialog(scip, &dialog, SCIPdialogExecDrawgraph, NULL, NULL,
4361  * "drawgraph", "draws the graph for the current problem instance", FALSE, NULL) );
4362  * SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
4363  * SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
4364  * }
4365  *
4366  * return SCIP_OKAY;
4367  * }
4368  * \endcode
4369  *
4370  * Using this code, it is even possible to call SCIPincludeDialogDrawgraph() before including the default dialog plugins,
4371  * and you can also call it multiple times without causing inconsistencies in the dialog structure.
4372  *
4373  *
4374  * @section DIALOG_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Dialog
4375  *
4376  * Dialogs have only one fundamental callback method, namely the \ref DIALOGEXEC method.
4377  * This method has to be implemented for every dialog; the other callback methods are optional.
4378  * In the C++ wrapper class scip::ObjDialog, the scip_exec() method (which corresponds to the \ref DIALOGEXEC callback) is a virtual
4379  * abstract member function.
4380  * You have to implement it in order to be able to construct an object of your dialog class.
4381  *
4382  * Additional documentation for the callback methods can be found in type_dialog.h.
4383  *
4384  * @subsection DIALOGEXEC
4385  *
4386  * The DIALOGEXEC method is invoked, if the user selected the dialog's command name in the parent's menu. It should
4387  * execute what is stated in DIALOG_DESC, e.g., the display constraint handlers dialog should display information about
4388  * the constraint handlers included in SCIP, see src/scip/dialog_default.c.
4389  *
4390  * For typical methods called by the execution method, have a look at src/scip/dialog_default.c.
4391  *
4392  * The callback has to return which dialog should be processed next. This can be, for example, the root dialog
4393  * (SCIPdialoghdlrGetRoot()), the parent dialog (SCIPdialogGetParent()) or NULL, which stands for closing the interactive
4394  * shell.
4395  *
4396  *
4397  * @section DIALOG_ADDITIONALCALLBACKS Additional Callback Methods of a Dialog
4398  *
4399  * The additional callback methods do not need to be implemented in every case.
4400  * They can be used, for example, to free private data.
4401  *
4402  * @subsection DIALOGFREE
4403  *
4404  * If you are using dialog data, you have to implement this method in order to free the dialog data.
4405  * This can be done by the following procedure:
4406  * \code
4407  * static
4408  * SCIP_DECL_DIALOGFREE(dialogFreeMydialog)
4409  * {
4410  * SCIP_DIALOGDATA* dialogdata;
4411  *
4412  * dialogdata = SCIPdialogGetData(dialog);
4413  * assert(dialogdata != NULL);
4414  *
4415  * SCIPfreeMemory(scip, &dialogdata);
4416  *
4417  * SCIPdialogSetData(dialog, NULL);
4418  *
4419  * return SCIP_OKAY;
4420  * }
4421  * \endcode
4422  * If you have allocated memory for fields in your dialog data, remember to free this memory
4423  * before freeing the dialog data itself.
4424  * If you are using the C++ wrapper class, this method is not available.
4425  * Instead, just use the destructor of your class to free the member variables of your class.
4426  *
4427  * @subsection DIALOGDESC
4428  *
4429  * This method is called when the help menu of the parent is displayed. It should output (usually a single line of)
4430  * information describing the meaning of the dialog.
4431  * \n
4432  * If this callback is not implemented, the description string of the dialog (DIALOG_DESC) is displayed instead.
4433  *
4434  * @subsection DIALOGCOPY
4435  *
4436  * The DIALOGCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
4437  * callback as <code>NULL</code> the user disables the execution of this dialog for all copied SCIP instances. In
4438  * general there is no need to copy any dialog since it is most unlikely to start the interactive shell of the copied
4439  * instances.
4440  *
4441  */
4442 
4443 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4444 
4445 /**@page DISP How to add display columns
4446  *
4447  * While solving a constraint integer program, SCIP displays status information in a column-like fashion. The current
4448  * number of processed branching tree nodes, the solving time, and the relative gap between primal and dual bound are
4449  * examples of such display columns. There already exists a wide variety of display columns which can be activated or
4450  * deactivated on demand, see src/scip/disp_default.c. Additionally, the user can implement his/her own display columns
4451  * in order to track problem or algorithm specific values.
4452  * \n
4453  * A complete list of all displays contained in this release can be found \ref DISPLAYS "here".
4454  *
4455  * We now explain users can add their own display columns.
4456  * We give the explanation for creating your own source file for each additional display column. Of course, you can collect
4457  * different additional display columns in one source file.
4458  * Take src/scip/disp_default.c, where all default display columns are collected, as an example.
4459  * As all other default plugins, the default display column plugins and the display column template are written in C.
4460  * C++ users can easily adapt the code by using the scip::ObjDisp wrapper base class and implement the scip_...() virtual methods
4461  * instead of the SCIP_DECL_DISP... callback methods.
4462  *
4463  *
4464  * Additional documentation for the callback methods of a display column can be found in the file type_disp.h.
4465  *
4466  * Here is what you have to do to implement a display column (assuming your display column is named "mydisplaycolumn"):
4467  * -# Copy the template files src/scip/disp_xyz.c and src/scip/disp_xyz.h into files named "disp_mydisplaycolumn.c"
4468  * and "disp_mydisplaycolumn.h".
4469  \n
4470  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4471  * -# Use SCIPincludeDispMydisplaycolumn() in order to include the display column into your SCIP instance,
4472  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4473  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mydisplaycolumn".
4474  * -# Adjust the \ref DISP_PROPERTIES "properties of the display column".
4475  * -# Define the \ref DISP_DATA "display column data". This is optional.
4476  * -# Implement the \ref DISP_INTERFACE "interface methods".
4477  * -# Implement the \ref DISP_FUNDAMENTALCALLBACKS "fundamental callback methods".
4478  * -# Implement the \ref DISP_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4479  *
4480  *
4481  * @section DISP_PROPERTIES Properties of a Display Column
4482  *
4483  * At the top of the new file "disp_mydisplaycolumn.c" you can find the display column properties.
4484  * These are given as compiler defines.
4485  * In the C++ wrapper class, you have to provide the display column properties by calling the constructor
4486  * of the abstract base class scip::ObjDisp from within your constructor.
4487  * The properties you have to set have the following meaning:
4488  *
4489  * \par DISP_NAME: the name of the display column.
4490  * This name is used in the interactive shell to address the display column.
4491  * Additionally, if you are searching for a display column with SCIPfindDisp(), this name is looked up.
4492  * Names have to be unique: no two display columns may have the same name.
4493  *
4494  * \par DISP_DESC: the description of the display column.
4495  * This string is printed as a description of the display column in the interactive shell.
4496  *
4497  * \par DISP_HEADER: the header of the display column.
4498  * This string is printed as the header of the display column in the status information display.
4499  *
4500  * \par DISP_WIDTH: the width of the display column.
4501  * This parameter defines the width (number of characters) of the display column. The value of the parameter has to be
4502  * greater than or equal to the number of characters in the header string.
4503  *
4504  * \par DISP_PRIORITY: the priority of the display column.
4505  * The total width of status information lines is bounded by the parameter "display width". The display columns actually contained
4506  * in the status information display are selected in decreasing order of their priority. Furthermore, the user can force
4507  * columns to be displayed or not to be displayed in the status information display. For that, (s)he has to switch the value
4508  * of the display column's parameter "active" from "auto" (its default value) to "on" or "off", respectively.
4509  *
4510  * \par DISP_POSITION: the relative position of the display column.
4511  * In the status information display, the display columns are arranged from left to right in increasing order of their
4512  * relative position.
4513  *
4514  * \par DISP_STRIPLINE: the default for whether the display column should be separated with a line from its right neighbor.
4515  * This parameter states whether the display column should be separated with the string "|" from its right neighbor. In so
4516  * doing, the clearness of the status information display may improve.
4517  *
4518  * @section DISP_DATA Display Column Data
4519  *
4520  * Below the header "Data structures" you can find a struct which is called "struct SCIP_DispData".
4521  * In this data structure, you can store the data of your display column. For example, you should store the adjustable
4522  * parameters of the display column in this data structure.
4523  * If you are using C++, you can add display column data as usual as object variables to your class.
4524  * \n
4525  * Defining display column data is optional. You can leave the struct empty.
4526  *
4527  *
4528  * @section DISP_INTERFACE Interface Methods
4529  *
4530  * At the bottom of "disp_mydisplaycolumn.c" you can find the interface method SCIPincludeDispMydisplaycolumn(), which also
4531  * appears in "disp_mydisplaycolumn.h".
4532  * \n
4533  * This method only has to be adjusted slightly.
4534  * It is responsible for notifying SCIP of the presence of the display column by calling the method
4535  * SCIPincludeDisp().
4536  *
4537  * The interface method is called by the user, if (s)he wants to include the display column, i.e., if (s)he wants to use the display column in his
4538  * application.
4539  *
4540  * If you are using display column data, you have to allocate the memory for the data at this point.
4541  * You can do this by calling:
4542  * \code
4543  * SCIP_CALL( SCIPallocBlockMemory(scip, &dispdata) );
4544  * \endcode
4545  * You also have to initialize the fields in struct SCIP_DispData afterwards.
4546  *
4547  * Although this is very uncommon, you may also add user parameters for your display column, see the method
4548  * SCIPincludeConshdlrKnapsack() in the \ref cons_knapsack.h "knapsack constraint handler" for an example.
4549  *
4550  *
4551  * @section DISP_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Display Column
4552  *
4553  * Display column plugins have only one fundamental callback method, namely the \ref DISPOUTPUT method.
4554  * This method has to be implemented for every display column; the other callback methods are optional.
4555  * In the C++ wrapper class scip::ObjDisp, the scip_output() method (which corresponds to the \ref DISPOUTPUT callback) is a virtual
4556  * abstract member function.
4557  * You have to implement it in order to be able to construct an object of your display column class.
4558  *
4559  * Additional documentation for the callback methods can be found in type_disp.h.
4560  *
4561  * @subsection DISPOUTPUT
4562  *
4563  * The DISPOUTPUT callback is called after each pricing loop during node processing and after a node has been processed.
4564  * In addition, at the root node, the callback is executed after each iteration of the price-and-cut loop.
4565  * It should write the display column information for the current node to a given output file stream.
4566  *
4567  * Typical methods called by a display column are, for example, SCIPdispLongint(), SCIPdispInt(), SCIPdispTime(), and
4568  * SCIPinfoMessage().
4569  *
4570  *
4571  * @section DISP_ADDITIONALCALLBACKS Additional Callback Methods of a Display Column
4572  *
4573  * The additional callback methods do not need to be implemented in every case.
4574  * They can be used, for example, to initialize and free private data.
4575  *
4576  * @subsection DISPCOPY
4577  *
4578  * The DISPCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this callback
4579  * as <code>NULL</code> the user disables the execution of the specified column. In general it is probably not needed to
4580  * implement that callback since the output of the copied instance is usually suppressed. In the other case or for
4581  * debugging the callback should be implement.
4582  *
4583  *
4584  * @subsection DISPFREE
4585  *
4586  * If you are using display column data, you have to implement this method in order to free the display column data.
4587  * This can be done by the following procedure:
4588  * \code
4589  * static
4590  * SCIP_DECL_DISPFREE(dispFreeMydisplaycolumn)
4591  * {
4592  * SCIP_DISPDATA* dispdata;
4593  *
4594  * dispdata = SCIPdispGetData(disp);
4595  * assert(dispdata != NULL);
4596  *
4597  * SCIPfreeMemory(scip, &dispdata);
4598  *
4599  * SCIPdispSetData(disp, NULL);
4600  *
4601  * return SCIP_OKAY;
4602  * }
4603  * \endcode
4604  * If you have allocated memory for fields in your display column data, remember to free this memory
4605  * before freeing the display column data itself.
4606  * If you are using the C++ wrapper class, this method is not available.
4607  * Instead, just use the destructor of your class to free the member variables of your class.
4608  *
4609  * @subsection DISPINIT
4610  *
4611  * The DISPINIT callback is executed after the problem is transformed.
4612  * The display column may, e.g., use this call to initialize its display column data.
4613  *
4614  * @subsection DISPEXIT
4615  *
4616  * The DISPEXIT callback is executed before the transformed problem is freed.
4617  * In this method, the display column should free all resources that have been allocated for the solving process in
4618  * \ref DISPINIT.
4619  *
4620  * @subsection DISPINITSOL
4621  *
4622  * The DISPINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
4623  * begin. The display column may use this call to initialize its branch-and-bound specific data.
4624  *
4625  * @subsection DISPEXITSOL
4626  *
4627  * The DISPEXITSOL callback is executed before the branch-and-bound process is freed. The display column should use this
4628  * call to clean up its branch-and-bound data specific data.
4629  */
4630 
4631 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4632 
4633 /**@page EVENT How to add event handler
4634  *
4635  * While solving a constraint integer program, SCIP drops thousands of events such as SCIP_EVENTTYPE_VARFIXED (a
4636  * complete list of all events is given in type_event.h). These events can be caught and used to do something after a
4637  * certain event happens. Events can be used to speed up the solution process. For example, the set partitioning
4638  * constraint is only worth propagating if one of the involved variables is fixed. This can be detected by
4639  * catching the event SCIP_EVENTTYPE_VARFIXED. To be able to catch an event it is necessary to write an event handler
4640  * which defines what to do after a certain event was caught.
4641  *
4642  * We now explain how users can add their own event handlers. We give the explanation for creating your own
4643  * source file for each additional event handler. Of course, you can collect different event handlers in one source file
4644  * or you can put the event handler directly into the constraint handler. In a \ref EVENTUSAGE "second step" we discuss
4645  * the usage of an event handler. This means how to catch and drop events. \ref EVENTTYPES "Finally", we give some notes on the existing
4646  * types of events.
4647  *
4648  * Take src/scip/cons_logior.c, where the event handler is directly included into the constraint handler. As all other
4649  * default plugins, the event handlers are written in C. C++ users can easily adapt the code by using the scip::ObjEventhdlr
4650  * wrapper base class and implement the scip_...() virtual methods instead of the SCIP_DECL_EVENT... callback methods.
4651  *
4652  * Additional documentation for the callback methods of an event handler can be found in the file type_event.h. There is
4653  * also an example written in C which deals with an event handler. You find this example in the directory
4654  * "examples/Eventhdlr/". An C++ example can be found within the TSP project (examples/TSP/src/EventhdlrNewSol.cpp).
4655  *
4656  * Here is what you have to do to implement an event handler (assuming your event handler is named "bestsol"):
4657  * -# Copy the template files src/scip/event_xyz.c and src/scip/event_xyz.h into files named "event_bestsol.c"
4658  * and "event_bestsol.h".
4659  \n
4660  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4661  * -# Use SCIPincludeEventBestsol() in order to include the event handler into your SCIP instance,
4662  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Eventhdlr example).
4663  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "bestsol".
4664  * -# Adjust the \ref EVENTHDLR_PROPERTIES "properties of the event handler".
4665  * -# Implement the \ref EVENT_INTERFACE "interface methods".
4666  * -# Implement the \ref EVENT_FUNDAMENTALCALLBACKS "fundamental callback methods".
4667  * -# Implement the \ref EVENT_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4668  *
4669  *
4670  * @section EVENTHDLR_PROPERTIES Properties of a Event Handler
4671  *
4672  * At the top of the new file "event_bestsol.c" you can find the event handler properties.
4673  * These are given as compiler defines.
4674  * In the C++ wrapper class, you have to provide the event handler properties by calling the constructor
4675  * of the abstract base class scip::ObjEventhdlr from within your constructor.
4676  * The properties you have to set have the following meaning:
4677  *
4678  * \par EVENT_NAME: the name of the event handler.
4679  * This name has to be unique with respect to all other event handlers. If you are searching for an event handler with
4680  * SCIPfindEventhdlr(), this name is looked up.
4681  *
4682  * \par EVENT_DESC: the description of the event handler.
4683  * This string is printed as a description of the event handler.
4684  *
4685  * @section EVENTHDLR_DATA Event Handler Data
4686  *
4687  * Below the header "Data structures" you can find a struct which is called "struct SCIP_EventhdlrData".
4688  * In this data structure, you can store the data of your event handler. For example, you should store the adjustable
4689  * parameters of the event handler in this data structure.
4690  * If you are using C++, you can add event handler data as usual as object variables to your class.
4691  * \n
4692  * Defining event handler data is optional. You can leave the struct empty.
4693  *
4694  *
4695  * @section EVENT_INTERFACE Interface Methods
4696  *
4697  * At the bottom of "event_bestsol.c", you can find the interface method SCIPincludeEventBestsol(),
4698  * which also appears in "event_bestsol.h".
4699  * SCIPincludeEventBestsol() is called by the user, if (s)he wants to include the event handler,
4700  * i.e., if (s)he wants to use the event handler in his/her application.
4701  *
4702  * This method only has to be adjusted slightly.
4703  * It is responsible for notifying SCIP of the presence of the event handler. For this, you can either call
4704  * SCIPincludeEventhdlr(),
4705  * or SCIPincludeEventhdlrBasic() since SCIP version 3.0. In the latter variant, \ref EVENT_ADDITIONALCALLBACKS "additional callbacks"
4706  * must be added via setter functions as, e.g., SCIPsetReaderCopy(). We recommend this latter variant because
4707  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
4708  * variant must be manually adjusted with every SCIP release containing new callbacks for event handlers in order to compile.
4709  *
4710  * If you are using event handler data, you have to allocate the memory for the data at this point.
4711  * You can do this by calling:
4712  * \code
4713  * SCIP_CALL( SCIPallocBlockMemory(scip, &eventhdlrdata) );
4714  * \endcode
4715  * You also have to initialize the fields in struct SCIP_EventhdlrData afterwards.
4716  *
4717  * Although this is very uncommon, you may also add user parameters for your event handler, see the method
4718  * SCIPincludeConshdlrKnapsack() in the \ref cons_knapsack.h "knapsack constraint handler" for an example.
4719  *
4720  *
4721  * @section EVENT_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Event Handler
4722  *
4723  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
4724  * an operational algorithm.
4725  * They are passed together with the event handler itself to SCIP using SCIPincludeEventhdlr() or SCIPincludeEventhdlrBasic(),
4726  * see @ref EVENT_INTERFACE.
4727  *
4728  *
4729  * Event handler plugins have only one fundamental callback method, namely the \ref EVENTEXEC method. This method has
4730  * to be implemented for every event handler; the other callback methods are optional. In the C++ wrapper class
4731  * scip::ObjEventhdlr, the scip_exec() method (which corresponds to the \ref EVENTEXEC callback) is a virtual abstract member
4732  * function. You have to implement it in order to be able to construct an object of your event handler class.
4733  *
4734  * Additional documentation for the callback methods can be found in type_event.h.
4735  *
4736  * @subsection EVENTEXEC
4737  *
4738  * The EVENTEXEC callback is called after the requested event happened. Then the event handler can do some action in
4739  * reaction to the event.
4740  *
4741  * Typical the execution method sets a parameter to TRUE to indicate later in solving process that something happened
4742  * which should be analyzed further. In the \ref cons_knapsack.h "knapsack constraint handler" you find such a typical
4743  * example.
4744  *
4745  * @section EVENT_ADDITIONALCALLBACKS Additional Callback Methods of a Event Handler
4746  *
4747  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
4748  * implemented for most applications, they can be used, for example, to initialize and free private data.
4749  * Additional callbacks can either be passed directly with SCIPincludeEventhdlr() to SCIP or via specific
4750  * <b>setter functions</b> after a call of SCIPincludeEventhdlrBasic(), see also @ref EVENT_INTERFACE.
4751  *
4752  * @subsection EVENTCOPY
4753  *
4754  * The EVENTCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
4755  * callback as <code>NULL</code> the user disables the execution of the specified event handler for all copied SCIP
4756  * instances. Note that in most cases the event handler in the copied instance will be initialize by those objects (such
4757  * as constraint handlers or propagators) which need this event handler (see \ref cons_knapsack.h). In these cases the copy
4758  * callback can be ignored. In case of general events, such as a new best solution being found
4759  * (SCIP_EVENTTYPE_BESTSOLFOUND), you might want to implement that callback. The event handler example which you find
4760  * in the directory "examples/Eventhdlr/" uses that callback.
4761  *
4762  * @refsnippet{src/scip/event_softtimelimit.c,SnippetEventCopySofttimelimit}
4763  *
4764  * @subsection EVENTFREE
4765  *
4766  * If you are using event handler data, you have to implement this method in order to free the event handler data.
4767  * This can be done by the following procedure:
4768  *
4769  * @refsnippet{src/scip/event_softtimelimit.c,SnippetEventFreeSofttimelimit}
4770  *
4771  * If you have allocated memory for fields in your event handler data, remember to free this memory
4772  * before freeing the event handler data itself.
4773  * If you are using the C++ wrapper class, this method is not available.
4774  * Instead, just use the destructor of your class to free the member variables of your class.
4775  *
4776  *
4777  * @subsection EVENTINIT
4778  *
4779  * The EVENTINIT callback is executed after the problem is transformed.
4780  * The event handler may, e.g., use this call to initialize its event handler data.
4781  *
4782  * @subsection EVENTEXIT
4783  *
4784  * The EVENTEXIT callback is executed before the transformed problem is freed.
4785  * In this method, the event handler should free all resources that have been allocated for the solving process in
4786  * \ref EVENTINIT.
4787  *
4788  * @subsection EVENTINITSOL
4789  *
4790  * The EVENTINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
4791  * begin. The event handler may use this call to initialize its branch-and-bound specific data.
4792  *
4793  * @subsection EVENTEXITSOL
4794  *
4795  * The EVENTEXITSOL callback is executed before the branch-and-bound process is freed. The event handler should use this
4796  * call to clean up its branch-and-bound data specific data.
4797  *
4798  * @section EVENTUSAGE Catching and Dropping Events
4799  *
4800  * After you have implemented the event handler, you have to tell SCIP for which events this event handler should be
4801  * used. This can be a general events, such as <code>SCIP_EVENTTYPE_BESTSOLFOUND</code>, or a variable event which is the most common
4802  * way.
4803  *
4804  * In case of a general (not variable) event you use the function SCIPcatchEvent() to attach to an event and
4805  * SCIPdropEvent() to release this event later.
4806  *
4807  * \code
4808  * SCIP_CALL( SCIPcatchEvent( scip, SCIP_EVENTTYPE_BESTSOLFOUND, eventhdlr, NULL, NULL) );
4809  * \endcode
4810  *
4811  * \code
4812  * SCIP_CALL( SCIPdropEvent( scip, SCIP_EVENTTYPE_BESTSOLFOUND, eventhdlr, NULL, NULL) );
4813  * \endcode
4814  *
4815  * If you want trigger some variable event, you use the method SCIPcatchVarEvent() to attach the variable event and
4816  * SCIPdropVarEvent() to drop it later.
4817  *
4818  * \code
4819  * SCIP_CALL( SCIPcatchVarEvent( scip, var, SCIP_EVENTTYPE_VARFIXED, eventhdlr, NULL, NULL) );
4820  * \endcode
4821  *
4822  * \code
4823  * SCIP_CALL( SCIPdropVarEvent( scip, var, SCIP_EVENTTYPE_VARFIXED, eventhdlr, NULL, NULL) );
4824  * \endcode
4825  *
4826  * @section EVENTTYPES Event types
4827  *
4828  * All available events are listed in type_event.h. There are atomic events such as <code>SCIP_EVENTTYPE_VARFIXED</code>
4829  * and combined events such as <code>SCIP_EVENTTYPE_VARCHANGED</code>. The events are encoded via bit masks. Each atomic
4830  * event has a unique power of two. This enables combination of the atomic events.
4831  *
4832  * SCIP only throws atomic events. However, an event handler might be interested in bunch of events. Through the
4833  * underlying bit masks it is possible to combine the atomic events. For example, <code>SCIP_EVENTTYPE_VARCHANGED</code>
4834  * is an event which combines the events <code>SCIP_EVENTTYPE_VARFIXED</code>, <code>SCIP_EVENTTYPE_VARUNLOCKED</code>,
4835  * <code>SCIP_EVENTTYPE_OBJCHANGED</code>, <code>SCIP_EVENTTYPE_GBDCHANGED</code>,
4836  * <code>SCIP_EVENTTYPE_DOMCHANGED</code>, and <code>SCIP_EVENTTYPE_IMPLADDED</code>.
4837  *
4838  * \code
4839  * #define SCIP_EVENTTYPE_VARCHANGED (SCIP_EVENTTYPE_VARFIXED | SCIP_EVENTTYPE_VARUNLOCKED | SCIP_EVENTTYPE_OBJCHANGED
4840  * | SCIP_EVENTTYPE_GBDCHANGED | SCIP_EVENTTYPE_DOMCHANGED | SCIP_EVENTTYPE_IMPLADDED)
4841  * \endcode
4842  *
4843  * Depending on the event type, the event offers different information. The methods which can be used to gain
4844  * access to this information are given in pub_event.h.
4845  *
4846  */
4847 
4848 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4849 
4850 /**@page NLPI How to add interfaces to nonlinear programming solvers
4851  *
4852  * NLPIs are used to interface a solver for nonlinear programs (NLP).
4853  * It is used, e.g., to solve convex relaxations of the problem or to find locally optimal solutions of
4854  * nonlinear relaxations or subproblems.
4855  * The NLPI has been designed such that it can be used independently from SCIP.
4856  *
4857  * While the NLPI itself corresponds to the solver interface, the NLPIPROBLEM corresponds to the
4858  * (solver specific) representation of a concrete nonlinear program.
4859  * An NLP is specified as a set of indexed variables with variable bounds, an objective function,
4860  * and a set of constraints, where each constraint is specified as a function which is restricted to lie
4861  * between given left and right hand sides (possibly infinite).
4862  * A function consists of a linear, quadratic, and general nonlinear part.
4863  * The linear and quadratic parts are specified via variable indices and coefficients, while the
4864  * general nonlinear part is specified via an expression tree.
4865  * That is, the user of the NLPI does not provide function evaluation callbacks but an algebraic representation of the NLP.
4866  * Interfaces for solvers that require function evaluations can make use of the NLPIORACLE, which
4867  * provides a set of methods to compute functions values, gradients, Jacobians, and Hessians for a given NLP.
4868  * See the interface to Ipopt for an example on how to use the NLPIORACLE.
4869  *
4870  * A complete list of all NLPIs contained in this release can be found \ref NLPIS "here".
4871  *
4872  * We now explain how users can add their own NLP solver interface.
4873  * Take the interface to Ipopt (src/nlpi/nlpi_ipopt.cpp) as an example.
4874  * Unlike most other plugins, it is written in C++.
4875  * Additional documentation for the callback methods of an NLPI, in particular for their input parameters,
4876  * can be found in the file type_nlpi.h.
4877  *
4878  * Here is what you have to do to implement an NLPI:
4879  * -# Copy the template files src/nlpi/nlpi_xyz.c and src/nlpi/nlpi_xyz.h into files named "nlpi_mynlpi.c"
4880  * and "nlpi_mynlpi.h".
4881  * \n
4882  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4883  * -# Use SCIPcreateNlpSolverMynlpi() in order to include the NLPI into your SCIP instance,
4884  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4885  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mynlpi".
4886  * -# Adjust the properties of the nlpi (see \ref NLPI_PROPERTIES).
4887  * -# Define the NLPI and NLPIPROBLEM data (see \ref NLPI_DATA).
4888  * -# Implement the interface methods (see \ref NLPI_INTERFACE).
4889  * -# Implement the fundamental callback methods (see \ref NLPI_FUNDAMENTALCALLBACKS).
4890  *
4891  *
4892  * @section NLPI_PROPERTIES Properties of an NLPI
4893  *
4894  * At the top of the new file "nlpi_mynlpi.c", you can find the NLPI properties.
4895  * These are given as compiler defines.
4896  * The properties you have to set have the following meaning:
4897  *
4898  * \par NLPI_NAME: the name of the NLP solver interface.
4899  * This name is used in the interactive shell to address the NLPI.
4900  * Additionally, if you are searching for an NLPI with SCIPfindNLPI(), this name is looked up.
4901  * Names have to be unique: no two NLPIs may have the same name.
4902  *
4903  * \par NLPI_DESC: the description of the NLPI.
4904  * This string is printed as a description of the NLPI in the interactive shell.
4905  *
4906  * \par NLPI_PRIORITY: the priority of the NLPI.
4907  * If an NLP has to be solved, an NLP solver has to be selected.
4908  * By default, the solver with the NLPI with highest priority is selected.
4909  * The priority of an NLPI should be set according to performance of the solver:
4910  * solvers that provide fast algorithms that are usually successful on a wide range of problems should have a high priority.
4911  * An easy way to list the priorities of all NLPIs is to type "display nlpis" in the interactive shell of SCIP.
4912  *
4913  * @section NLPI_DATA NLPI Data
4914  *
4915  * Below the header "Data structures" you can find structs which are called "struct SCIP_NlpiData" and "struct SCIP_NlpiProblem".
4916  * In this data structure, you can store the data of your solver interface and of a specific NLP problem.
4917  * For example, you could store a pointer to the block memory data structure in the SCIP_NlpiData data structure
4918  * and store a pointer to an NLPIoracle in the SCIP_NlpiProblem data structure.
4919  *
4920  * @section NLPI_INTERFACE Interface Methods
4921  *
4922  * At the bottom of "nlpi_mynlpi.c", you can find the interface method SCIPcreateNlpSolverXyz(),
4923  * which also appears in "nlpi_mynlpi.h".
4924  * \n
4925  * This method only has to be adjusted slightly.
4926  * It is responsible for creating an NLPI that contains all properties and callback methods of your
4927  * solver interface by calling the method SCIPnlpiCreate().
4928  * SCIPcreateNlpSolverXyz() is called by the user (e.g., SCIP), if (s)he wants to use this solver interface in his/her application.
4929  *
4930  * If you are using NLPI data, you have to allocate the memory for the data at this point.
4931  * You can do this by calling:
4932  * \code
4933  * SCIP_CALL( SCIPallocBlockMemory(scip, &nlpidata) );
4934  * \endcode
4935  * You also have to initialize the fields in struct SCIP_NlpiData afterwards. For freeing the
4936  * NLPI data, see \ref NLPIFREE.
4937  *
4938  *
4939  * @section NLPI_FUNDAMENTALCALLBACKS Fundamental Callback Methods of an NLPI
4940  *
4941  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
4942  * an operational algorithm. Currently, all NLPI callbacks are fundamental.
4943  *
4944  * Additional documentation of the callback methods, in particular to their input parameters,
4945  * can be found in type_nlpi.h.
4946  *
4947  * @subsection NLPICOPY
4948  *
4949  * The NLPICOPY callback is executed if the plugin should be copied, e.g., when a SCIP instance is copied.
4950  *
4951  * @subsection NLPIFREE
4952  *
4953  * The NLPIFREE callback is executed if the NLP solver interface data structure should be freed, e.g., when a SCIP instance is freed.
4954  *
4955  * @subsection NLPIGETSOLVERPOINTER
4956  *
4957  * The NLPIGETSOLVERPOINTER callback can be used to pass a pointer to a solver specific data structure to the user.
4958  *
4959  * @subsection NLPICREATEPROBLEM
4960  *
4961  * The NLPICREATEPROBLEM callback is executed if a particular NLP problem is to be created.
4962  * The callback method should initialize a SCIP_NlpiProblem struct here that corresponds to an empty NLP.
4963  *
4964  * @subsection NLPIFREEPROBLEM
4965  *
4966  * The NLPIFREEPROBLEMPOINTER callback is executed if a particular NLP problem is to be freed.
4967  * The callback method should free a SCIP_NlpiProblem struct here.
4968  *
4969  * @subsection NLPIGETPROBLEMPOINTER
4970  *
4971  * The NLPIGETPROBLEMPOINTER callback can be used to pass a pointer to a solver specific data structure of the NLP to the user.
4972  *
4973  * @subsection NLPIADDVARS
4974  *
4975  * The NLPIADDVARS callback is executed if a set of variables with lower and upper bounds and names should be added to a particular NLP.
4976  * The callback method must add the new variables behind the previously added variables, if any.
4977  * If NULL is given for the lower bounds arguments, -infinity is assumed as lower bound for each new variable.
4978  * If NULL is given for the upper bounds arguments, +infinity is assumed as upper bound for each new variable.
4979  * It is also permitted to use NULL for the names argument.
4980  *
4981  * @subsection NLPIADDCONSTRAINTS
4982  *
4983  * The NLPIADDCONSTRAINTS callback is executed if a set of constraints should be added to a particular NLP.
4984  * Constraints are specified by providing left and right hand sides, linear and quadratic coefficients, expression trees, and constraint names.
4985  * All of these arguments are optional, giving NULL for left hand sides corresponds to -infinity, giving NULL for right hand sides corresponds to +infinity.
4986  *
4987  * @subsection NLPISETOBJECTIVE
4988  *
4989  * The NLPISETOBJECTIVE callback is executed to set the objective function of a particular NLP.
4990  *
4991  * @subsection NLPICHGVARBOUNDS
4992  *
4993  * The NLPICHGVARBOUNDS callback is executed to change the bounds on a set of variables of an NLP.
4994  *
4995  * @subsection NLPICHGCONSSIDES
4996  *
4997  * The NLPICHGCONSSIDES callback is executed to change the sides on a set of constraints of an NLP.
4998  *
4999  * @subsection NLPIDELVARSET
5000  *
5001  * The NLPIDELVARSET callback is executed to delete a set of variables from an NLP.
5002  * The caller provides an array in which for each variable it is marked whether it should be deleted.
5003  * In the same array, the method should return the new position of each variable in the NLP, or -1 if it was deleted.
5004  *
5005  * @subsection NLPIDELCONSSET
5006  *
5007  * The NLPIDELCONSSET callback is executed to delete a set of constraints from an NLP.
5008  * The caller provides an array in which for each constraint it is marked whether it should be deleted.
5009  * In the same array, the method should return the new position of each constraint in the NLP, or -1 if it was deleted.
5010  *
5011  * @subsection NLPICHGLINEARCOEFS
5012  *
5013  * The NLPICHGLINEARCOEFS callback is executed to change the coefficients in the linear part of the objective function or a constraint of an NLP.
5014  *
5015  * @subsection NLPICHGQUADCOEFS
5016  *
5017  * The NLPICHGQUADCOEFS callback is executed to change the coefficients in the quadratic part of the objective function or a constraint of an NLP.
5018  *
5019  * @subsection NLPICHGEXPRTREE
5020  *
5021  * The NLPICHGEXPRTREE callback is executed to replace the expression tree of the objective function or a constraint of an NLP.
5022  *
5023  * @subsection NLPICHGNONLINCOEF
5024  *
5025  * The NLPICHGNONLINCOEF callback is executed to change a single parameter in the (parametrized) expression tree of the objective function or a constraint of an NLP.
5026  *
5027  * @subsection NLPICHGOBJCONSTANT
5028  *
5029  * The NLPICHGOBJCONSTANT callback is executed to change the constant offset of the objective function of an NLP.
5030  *
5031  * @subsection NLPISETINITIALGUESS
5032  *
5033  * The NLPISETINITIALGUESS callback is executed to provide primal and dual initial values for the variables and constraints of an NLP.
5034  * For a local solver, these values can be used as a starting point for the search.
5035  * It is possible to pass a NULL pointer for any of the arguments (primal values of variables, dual values of variable bounds, dual values of constraints).
5036  * In this case, the solver should clear previously set starting values and setup its own starting point.
5037  *
5038  * @subsection NLPISOLVE
5039  *
5040  * The NLPISOLVE callback is executed when an NLP should be solved.
5041  * The solver may use the initial guess provided by \ref NLPISETINITIALGUESS as starting point.
5042  * The status of the solving process and solution can be requested by
5043  * \ref NLPIGETSOLSTAT, \ref NLPIGETTERMSTAT, \ref NLPIGETSOLUTION, and \ref NLPIGETSTATISTICS.
5044  *
5045  * @subsection NLPIGETSOLSTAT
5046  *
5047  * The NLPIGETSOLSTAT callback can be used to request the solution status (solved, infeasible, ...) after an NLP has been solved.
5048  *
5049  * @subsection NLPIGETTERMSTAT
5050  *
5051  * The NLPIGETTERMSTAT callback can be used to request the termination reason (normal, iteration limit, ...) after an NLP has been solved.
5052  *
5053  * @subsection NLPIGETSOLUTION
5054  *
5055  * The NLPIGETSOLUTION callback can be used to request the primal and dual solution values after an NLP solve.
5056  * The method should pass pointers to arrays of variable values to the caller.
5057  * It is possible to return only primal values for the variables, but no values for the dual variables, e.g., if a solver does not compute such values.
5058  *
5059  * @subsection NLPIGETSTATISTICS
5060  *
5061  * The NLPIGETSTATISTICS callback can be used to request the statistical values (number of iterations, time, ...) after an NLP solve.
5062  * The method should fill the provided NLPSTATISTICS data structure.
5063  *
5064  * <!-- NLPIGETWARMSTARTSIZE, NLPIGETWARMSTARTMEMO, NLPISETWARMSTARTMEMO are not documented,
5065  since they are currently not used, not implemented, and likely to change with a next version. -->
5066  *
5067  * @subsection NLPIGETINTPAR
5068  *
5069  * The NLPIGETINTPAR callback can be used to request the value of an integer valued NLP parameter.
5070  *
5071  * @subsection NLPISETINTPAR
5072  *
5073  * The NLPISETINTPAR callback is executed to set the value of an integer valued NLP parameter.
5074  *
5075  * @subsection NLPIGETREALPAR
5076  *
5077  * The NLPIGETREALPAR callback can be used to request the value of a real valued NLP parameter.
5078  *
5079  * @subsection NLPISETREALPAR
5080  *
5081  * The NLPISETREALPAR callback is executed to set the value of a real valued NLP parameter.
5082  *
5083  * @subsection NLPIGETSTRINGPAR
5084  *
5085  * The NLPIGETSTRINGPAR callback can be used to request the value of a string valued NLP parameter.
5086  *
5087  * @subsection NLPISETSTRINGPAR
5088  *
5089  * The NLPISETSTRINGPAR callback is executed to set the value of a string valued NLP parameter.
5090  */
5091 
5092 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5093 
5094 /**@page EXPRINT How to add interfaces to expression interpreters
5095  *
5096  * An expression interpreter is a tool to compute point-wise and interval-wise the function values, gradients, and
5097  * derivatives of algebraic expressions which are given in the form of an expression tree.
5098  * It is used, e.g., by an NLP solver interface to compute Jacobians and Hessians for the solver.
5099  *
5100  * The expression interpreter interface in SCIP has been implemented similar to those of the LP solver interface (LPI).
5101  * For one binary, exactly one expression interpreter has to be linked.
5102  * The expression interpreter API has been designed such that it can be used independently from SCIP.
5103  *
5104  * A complete list of all expression interpreters contained in this release can be found \ref EXPRINTS "here".
5105  *
5106  * We now explain how users can add their own expression interpreters.
5107  * Take the interface to CppAD (\ref exprinterpret_cppad.cpp) as an example.
5108  * Unlike most other plugins, it is written in C++.
5109  *
5110  * Additional documentation for the callback methods of an expression interpreter, in particular for their input parameters,
5111  * can be found in the file \ref exprinterpret.h
5112  *
5113  * Here is what you have to do to implement an expression interpreter:
5114  * -# Copy the file \ref exprinterpret_none.c into a file named "exprinterpreti_myexprinterpret.c".
5115  * \n
5116  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
5117  * -# Open the new files with a text editor.
5118  * -# Define the expression interpreter data (see \ref EXPRINT_DATA).
5119  * -# Implement the interface methods (see \ref EXPRINT_INTERFACE).
5120  *
5121  *
5122  * @section EXPRINT_DATA Expression Interpreter Data
5123  *
5124  * In "struct SCIP_ExprInt", you can store the general data of your expression interpreter.
5125  * For example, you could store a pointer to the block memory data structure.
5126  *
5127  * @section EXPRINT_INTERFACE Interface Methods
5128  *
5129  * The expression interpreter has to implement a set of interface method.
5130  * In your "exprinterpret_myexprinterpret.c", these methods are mostly dummy methods that return error codes.
5131  *
5132  * @subsection SCIPexprintGetName
5133  *
5134  * The SCIPexprintGetName method should return the name of the expression interpreter.
5135  *
5136  * @subsection SCIPexprintGetDesc
5137  *
5138  * The SCIPexprintGetDesc method should return a short description of the expression interpreter, e.g., the name of the developer of the code.
5139  *
5140  * @subsection SCIPexprintGetCapability
5141  *
5142  * The SCIPexprintGetCapability method should return a bitmask that indicates the capabilities of the expression interpreter,
5143  * i.e., whether it can evaluate gradients, Hessians, or do interval arithmetic.
5144  *
5145  * @subsection SCIPexprintCreate
5146  *
5147  * The SCIPexprintCreate method is called to create an expression interpreter data structure.
5148  * The method should initialize a "struct SCIP_ExprInt" here.
5149  *
5150  * @subsection SCIPexprintFree
5151  *
5152  * The SCIPexprintFree method is called to free an expression interpreter data structure.
5153  * The method should free a "struct SCIP_ExprInt" here.
5154  *
5155  * @subsection SCIPexprintCompile
5156  *
5157  * The SCIPexprintCompile method is called to initialize the data structures that are required to evaluate
5158  * a particular expression tree.
5159  * The expression interpreter can store data that is particular to a given expression tree in the tree by using
5160  * SCIPexprtreeSetInterpreterData().
5161  *
5162  * @subsection SCIPexprintFreeData
5163  *
5164  * The SCIPexprintFreeData method is called when an expression tree is freed.
5165  * The expression interpreter should free the given data structure.
5166  *
5167  * @subsection SCIPexprintNewParametrization
5168  *
5169  * The SCIPexprintNewParametrization method is called when the values of the parameters in a parametrized expression tree have changed.
5170  *
5171  * @subsection SCIPexprintEval
5172  *
5173  * The SCIPexprintEval method is called when the value of an expression represented by an expression tree should be computed for a point.
5174  *
5175  * @subsection SCIPexprintEvalInt
5176  *
5177  * The SCIPexprintEvalInt method is called when an interval that contains the range of an expression represented by an expression tree with respect to intervals for the variables should be computed.
5178  *
5179  * @subsection SCIPexprintGrad
5180  *
5181  * The SCIPexprintGrad method is called when the gradient of an expression represented by an expression tree should be computed for a point.
5182  *
5183  * @subsection SCIPexprintGradInt
5184  *
5185  * The SCIPexprintGradInt method is called when an interval vector that contains the range of the gradients of an expression represented by an expression tree with respect to intervals for the variables should be computed.
5186  *
5187  * @subsection SCIPexprintHessianSparsityDense
5188  *
5189  * The SCIPexprintHessianSparsityDense method is called when the sparsity structure of the Hessian matrix should be computed and returned in dense form.
5190  *
5191  * @subsection SCIPexprintHessianDense
5192  *
5193  * The SCIPexprintHessianDense method is called when the Hessian of an expression represented by an expression tree should be computed for a point.
5194  */
5195 
5196 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5197 
5198 /**@page CONF How to use conflict analysis
5199  *
5200  * Conflict analysis is a way to automatically use the information obtained from infeasible nodes
5201  * in the branch-and-bound tree.
5202  *
5203  * Once a node is declared infeasible, SCIP automatically tries to infer a constraint that explains the reason for the
5204  * infeasibility, in order to avoid similar situations later in the search. This explanation essentially consists of a
5205  * constraint stating that at least one of its variables should have a bound different from the current infeasible node,
5206  * because the current setting led to infeasibility. Clearly, all variables that are fixed in the current infeasible
5207  * node would yield such a constraint (since this leads to infeasibility). The key point rather is to infer a "small"
5208  * constraint that does the same job. SCIP handles this by several heuristics. For this, SCIP sets up a
5209  * so-called (directed) conflict graph. The nodes in this graph correspond to bound changes of variables and an arc (@a
5210  * u, @a v) means that the bound change corresponding to @a v is based on the bound change of @a u. In general, a node
5211  * will have several ingoing arcs which represent all bound changes that have been used to infer (propagate) the bound
5212  * change in question. The graph also contains source nodes for each bound that has been changed during branching and an
5213  * artificial target node representing the conflict, i.e., the infeasibility. Essentially, SCIP heuristically constructs
5214  * a cut in this graph that involves few "branching nodes". For details on the techniques that SCIP uses,
5215  * we refer to the paper @par
5216  * Tobias Achterberg, Conflict Analysis in Mixed Integer Programming@n
5217  * Discrete Optimization, 4, 4-20 (2007)
5218  *
5219  * For conflict analysis to work well, the author of a \ref CONS "Constraint Handler" or a
5220  * \ref PROP "Propagator" has to implement three kinds of functionality:
5221  *
5222  * -# If one detects infeasibility, one should initiate conflict analysis, see \ref INITCONFS "below".
5223  * -# During propagation, one should call the right functions to fix variables.
5224  * -# One should implement the <em>so-called reverse propagation</em>.
5225  *
5226  * If this functionality is not implemented, SCIP will still work correctly, but cannot use the information of the constraint
5227  * handler or the propagator for conflict analysis. In this case, each bound reduction performed by the constraint
5228  * handler/propagator will be treated as if it had been a branching decision.
5229  *
5230  * @section INITCONFS Initiating Conflict Analysis
5231  *
5232  * If one detects infeasibility within propagation, one should do the following:
5233  * -# Call SCIPinitConflictAnalysis().
5234  * -# Inform SCIP about the variable bounds that are the reason for the detection of infeasibility
5235  * via the functions SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), or
5236  * SCIPaddConflictBinvar(). If there is more than one valid explanation of infeasibility, either one can be used.
5237  * Typically, smaller explanations tend to be better.
5238  * -# Call SCIPanalyzeConflict() from a propagator or SCIPanalyzeConflictCons() from a constraint
5239  * handler.
5240  *
5241  * This functionality allows SCIP to set up the conflict graph and perform a conflict analysis.
5242  *
5243  * @section Propagation
5244  *
5245  * When propagating variable domains, SCIP needs to be informed that the deduced variable bounds should be
5246  * used in conflict analysis. This can be done by the functions SCIPinferVarLbCons(),
5247  * SCIPinferVarUbCons(), and SCIPinferBinvarCons() for constraint handlers and SCIPinferVarLbProp(),
5248  * SCIPinferVarUbProp(), and SCIPinferBinvarProp() for propagators. You can pass one integer of
5249  * information that should indicate the reason of the propagation and can be used in reverse
5250  * propagation, see the next section.
5251  *
5252  * @section RESPROP Reverse Propagation
5253  *
5254  * Reverse Propagation is used to build up the conflict graph. Essentially, it provides an algorithm to detect the arcs
5255  * leading to a node in the conflict graph, i.e., the bound changes responsible for the new bound change deduced during
5256  * propagation. Reverse Propagation needs to be implemented in the RESPROP callback functions of
5257  * \ref CONSRESPROP "constraint handlers" or \ref PROPRESPROP "propagators".
5258  * These callbacks receive the following information: the variable which is under investigation (@p
5259  * infervar), the corresponding bound change (@p bdchgidx, @p boundtype), and the integer (@p inferinfo) that has been
5260  * supplied during propagation.
5261  *
5262  * One can use SCIPvarGetUbAtIndex() or SCIPvarGetLbAtIndex() to detect the bounds before or after the propagation that
5263  * should be investigated. Then the bounds that were involved should be passed to SCIP via SCIPaddConflictLb() and
5264  * SCIPaddConflictUb(). If there is more than one valid explanation of infeasibility, either one can be used.
5265  * Typically, smaller explanations tend to be better.
5266  *
5267  * Details and (more) examples are given in Sections @ref CONSRESPROP and @ref PROPRESPROP.
5268  *
5269  *
5270  * @section Example
5271  *
5272  * Consider the constraint handler @p cons_linearordering.c in the
5273  * \ref LOP_MAIN "linear ordering example"
5274  * (see @p example/LOP directory). This constraint handler propagates the equations \f$x_{ij} + x_{ji} =
5275  * 1\f$ and triangle inequalities \f$x_{ij} + x_{jk} + x_{ki} \leq 2\f$.
5276  *
5277  * When propagating the equation and <code>vars[i][j]</code> is fixed to 1, the constraint handler uses
5278  * \code
5279  * SCIP_CALL( SCIPinferBinvarCons(scip, vars[j][i], FALSE, cons, i*n + j, &infeasible, &tightened) );
5280  * \endcode
5281  * Thus, variable <code>vars[j][i]</code> is fixed to 0 (@p FALSE), and it passes <code>i*n + j </code> as @p inferinfo.
5282  *
5283  * When it propagates the triangle inequality and both <code>vars[i][j]</code> and <code>vars[j][k]</code>
5284  * are fixed to 1, the constraint handler uses
5285  * \code
5286  * SCIP_CALL( SCIPinferBinvarCons(scip, vars[k][i], FALSE, cons, n*n + i*n*n + j*n + k, &infeasible, &tightened) );
5287  * \endcode
5288  * Thus, in this case, variable <code>vars[k][i]</code> is fixed to 0 and <code>n*n + i*n*n + j*n + k</code> is
5289  * passed as <code>inferinfo</code>.
5290  *
5291  * In reverse propagation, the two cases can be distinguished by @p inferinfo: if it is less than @p n*n,
5292  * we deal with an equation, otherwise with a triangle inequality. The constraint handler can then extract the
5293  * indices @p i, @p j (and @p k in the second case) from inferinfo.
5294  *
5295  * In the first case, it has to distinguish whether <code>vars[i][j]</code> is fixed to 0 or 1 &ndash;
5296  * by calling SCIPaddConflictLb()
5297  * or SCIPaddConflictUb(), respectively, with variable <code>vars[j][i]</code>. In the second case, it is clear that the only
5298  * possible propagation is to fix <code>vars[i][j]</code> to 0 when both <code>vars[k][i]</code> and <code>vars[j][k]</code>
5299  * are fixed to 1. It then calls
5300  * SCIPaddConflictLb() for both <code>vars[k][i]</code> and <code>vars[j][k]</code>.
5301  */
5302 
5303 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5304 
5305 /**@page REOPT How to use reoptimization
5306  *
5307  * The reoptimization feature of SCIP can be used to solve a sequence of optimization problems \f$(P_{i})_{i \in I}\f$ with
5308  * \f[
5309  * (P_i) \quad \min \{ c_i^T x \;|\; A^ix \geq b^i,\; x_{j} \in \mathbb{Z}\;\forall j \in \mathcal{I} \}
5310  * \f]
5311  * such that between two problems \f$P_i\f$ and \f$P_{i+1}\f$ the space of solutions gets restricted and/or the objective
5312  * fuction changes. To use reoptimization the user has to change the parameter <code>reoptimization/enable</code> to
5313  * <code>TRUE</code> before the solving process of the first problem of the sequence starts, i.e., in stage
5314  * <code>SCIP_STAGE_INIT</code> or <code>SCIP_STAGE_PROBLEM</code>. This can be done via the interactive shell or by
5315  * calling SCIPenableReoptimization(). In both cases SCIP changes some parameters and fixes them:
5316  * -# disable conflict analysis based on dual information
5317  * -# set the limit <code>maxorigsol</code> of stored solutions to zero because this is handled by a special solution tree provided
5318  * by the reoptimization feature itself
5319  * -# disable restarts (<code>presolving/maxrestarts = 0</code>)
5320  * -# disable multi-aggegations (<code>presolving/donotmultaggr = TRUE</code>)
5321  * -# disable dual reductions within presolvers and propagators (<code>misc/allowdualreds = FALSE</code>)
5322  * -# disable propagation with current cutoff bound (<code>misc/allowobjprop = FALSE</code>)
5323  *
5324  * In contrast to the presolving and propagating methods that are using dual information, performing strong branching is
5325  * allowed. The bound tightenings resulting from strong branching are handeled in a special way. After changing the objective
5326  * function and solving the modified problem the feasible region that was pruned by strong branching will be reconstructed
5327  * within the tree.
5328  *
5329  * If the reoptimization feature is enabled SCIP tries to reuse the search tree, especially the search frontier at the end
5330  * of the solving process, to speed up the solving process of the following problems. Therefore, the current release
5331  * provides the branching rule <code>branch_nodereopt</code> to reconstruct the tree. SCIP triggers a restart of the
5332  * reoptimization, i.e., solving the problem from scratch, if
5333  *
5334  * -# the stored search tree is too large,
5335  * -# the objective functions changed too much, or
5336  * -# the last \f$n\f$ optimal solution are updated solution of previous runs.
5337  *
5338  * The thresholds to trigger a restart can be set by the user:
5339  *
5340  * -# <code>reoptimization/maxsavednodes</code>
5341  * -# <code>reoptimization/delay</code>
5342  * -# <code>reoptimization/forceheurrestart</code>
5343  *
5344  * Before SCIP discards all the stored information and solves the problem from scratch it tries to compress the search
5345  * tree. Therefore, the current release provides compression heuristics that try to find a good and much smaller
5346  * representation of the current search tree.
5347  *
5348  * After a problem in the sequence of optimization problems was solved, the objective function can be changed in two ways:
5349  * -# Using the provided reader <code>reader_diff</code> the objective function can be changed via using the interactive
5350  * shell
5351  * \code
5352  * SCIP> read new_obj.diff
5353  * \endcode
5354  * or by calling SCIPreadDiff().
5355  * -# The objective function can be changed within the code. Therefore, the transformed problem needs to be freed by
5356  * calling SCIPfreeReoptSolve(). Afterwards, the new objective function can be installed by calling
5357  * SCIPchgReoptObjective().
5358  *
5359  * After changing the objective function the modified problem can be solved as usal.
5360  *
5361  * \note Currently, the compression heuristics used between two successive reoptimization runs only support pure binary
5362  * and mixed binary programs.
5363  *
5364  * For more information on reoptimization we refer to@par
5365  * Jakob Witzig@n
5366  * Reoptimization Techniques in MIP Solvers@n
5367  * Master's Thesis, Technical University of Berlin, 2014.
5368  */
5369 
5370 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5371 
5372 /**@page CONCSCIP How to use the concurrent solving mode
5373  *
5374  * @section Overview
5375  *
5376  * In \SCIP 4.0 a new feature has been added that allows to run multiple \SCIP instances with different settings
5377  * on one problem in parallel. To use this feature \SCIP has to be compiled with an additional make option to
5378  * enable the threading functionality (e.g. TPI=tny, see \ref MAKE).
5379  * Then, a concurrent solve can be started by using the <code>concurrentopt</code> command instead of the <code>optimize</code> command
5380  * in the \SCIP shell, or by calling the interface function SCIPsolveParallel().
5381  * To configure the behavior of the concurrent solving mode there are new parameters in the category <code>concurrent/</code>
5382  * and <code>parallel/</code> which will be explained here shortly.
5383  *
5384  * @section CONTROLNTHREADS Controlling the number of threads
5385  *
5386  * The parameters <code>parallel/maxnthreads</code> and <code>parallel/minnthreads</code> can be used to configure the number of threads
5387  * that sould be used for solving. \SCIP will try to use the configured maximum number of threads. If the
5388  * problem that is currently read is too large \SCIP will automatically use fewer threads, but never
5389  * go below the configured minimum number of threads.
5390  *
5391  * @section USEEMPHSETTINGS Using emphasis settings
5392  *
5393  * The parameters <code>concurrent/scip.../prefprio</code> configure which concurrent solvers should be used.
5394  * The concurrent solver <code>scip</code> will use the same settings as the \SCIP instance configured by the user.
5395  * The other concurrent solvers, e.g. <code>scip-feas</code>, will load the corresponding emphasis setting.
5396  * The behavior of the prefprio parameter is as follows: If it is set to 1.0 for <code>scip-feas</code> and
5397  * <code>scip-opti</code>, and to 0.0 for every other concurrent solver, then the threads will be evenly
5398  * distributed between the two types <code>scip-feas</code> and <code>scip-opti</code>. An example: if 4 threads are used each of these concurrent
5399  * solvers will use 2 threads. If the <code>prefprio</code> for one solver is set to 0.33 and the other is set to 1.0, then the former will use 1 thread
5400  * and the latter will use 3 threads of the 4 available threads.
5401  *
5402  * @section CUSTOMCONCSOLVERS Running custom solvers
5403  *
5404  * To use custom settings for the concurrent solvers there is the parameter <code>concurrent/paramsetprefix</code>. If custom parameters
5405  * should be loaded by the concurrent solvers, then it must point to the folder where they are located (including a path separator at the end).
5406  * The parameter settings must be named after the concurrent solvers, e.g. if only the concurrent solver <code>scip</code> is used
5407  * they should be named <code>scip-1</code>, <code>scip-2</code>, <code>scip-3</code>. When different types of concurrent solvers are used the counter
5408  * starts at one for each of them, e.g. <code>scip-1</code> and <code>scip-feas-1</code>.
5409  */
5410 
5411 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5412 
5413 /**@page OBJ Creating, capturing, releasing, and adding data objects
5414  *
5415  * Data objects (variables, constraints, rows, ... ) are subject to reference counting
5416  * to avoid expensive copying operations. This concept is similar to smart pointers.
5417  * Creating such an object (e.g., by calling SCIPcreateVar()) will set the
5418  * reference counter to one. Capturing an object (e.g., by calling SCIPcaptureVar()) increases the reference counter,
5419  * releasing it (e.g., by calling SCIPreleaseVar()) decreases the counter. If the reference counter gets zero, the
5420  * object will be destroyed automatically.
5421  *
5422  * Remember that a created data object is automatically captured. If the user
5423  * doesn't need the object anymore, (s)he has to call the object's release method.
5424  *
5425  * When a data object is added to SCIP (e.g., by calling SCIPaddVar()) , it is captured again, such that a
5426  * release call does not destroy the object. If SCIP doesn't need the object
5427  * anymore, it is automatically released.
5428  *
5429  * E.g., if the user calls
5430  * \code
5431  * SCIPcreateVar(); // reference counter 1
5432  * SCIPaddVar(); // reference counter 2
5433  * SCIPreleaseVar(); // reference counter 1
5434  * \endcode
5435  * the reference counter will be 1 afterwards, and the variable will be destroyed, if SCIP frees the problem.
5436  * If the user wants to use this variable, e.g. for extracting statistics after SCIP was finished, the user must not call
5437  * SCIPreleaseVar() right after adding the variable, but before terminating the program.
5438  */
5439 
5440 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5441 
5442 /**@page PARAM How to add additional user parameters
5443  *
5444  * Users may add their own parameters to SCIP by calling SCIPaddXyzParam(). Using
5445  * this method, there are two possibilities for where to store the actual parameter value:
5446  * - If the given valueptr is NULL, SCIP stores the parameter value internally, and
5447  * the user can only access the value with the SCIPgetXyzParam() and
5448  * SCIPsetXyzParam() calls.
5449  * - If the given valueptr is not NULL, SCIP stores the parameter value at the given
5450  * address, and the user can directly manipulate the value at this address.
5451  * (S)he has to be careful with memory management in string parameters: when the
5452  * SCIPaddStringParam() method is called, the given address must hold a char*
5453  * pointer with value NULL. The default value is then copied into this pointer,
5454  * allocating memory with BMSallocMemoryArray(). If the parameter is changed, the
5455  * old string is freed with BMSfreeMemoryArray() and the new one is copied to a new
5456  * memory area allocated with BMSallocMemoryArray(). When the parameter is freed,
5457  * the memory is freed with BMSfreeMemoryArray().
5458  * The user should not interfere with this internal memory management. Accessing
5459  * the string parameter through the given valueptr is okay as long as it does not
5460  * involve reallocating memory for the string.
5461  *
5462  * In some cases, it is necessary to keep track of changes in a parameter.
5463  * If this is the case, the user can define a method by the PARAMCHGD callback and use this method as
5464  * the @c paramchgd parameter of the @c SCIPaddXyzParam() method, also giving a pointer to the data, which is
5465  * needed in this method, as @c paramdata. If this method is not NULL, it is called every time
5466  * the value of the parameter is changed.
5467  */
5468 
5469 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5470 
5471 /**@page MEMORY Using the memory functions of SCIP
5472  *
5473  * SCIP provides three ways for allocating memory:
5474  * -# <b>block memory:</b> efficient handling of memory blocks of similar small sizes
5475  * -# <b>buffer memory:</b> efficient handling of memory that needs to locally be allocated and freed
5476  * -# <b>standard memory:</b> access to standard malloc/free
5477  *
5478  * <em>Whenever possible, the first two should be used, because of reasons detailed below.</em>
5479  *
5480  * In the following, we provide a brief description of these methods. We refer the reader to the dissertation of Tobias
5481  * Achterberg for more details. We also present best practice models.
5482  *
5483  * @section MEMBACK Background
5484  *
5485  * The main goals for providing such particular methods are:
5486  * - <em>Accounting:</em> Using its own functions, SCIP knows the total size of memory allocated internally and can change its
5487  * behavior: for instance, it can change to "memory saving mode" (using depth first search (DFS) and possibly do a garbage
5488  * collection). It also allows for keeping a memory limit.
5489  * - <em>Speed:</em> SCIP often needs to allocate a very large number of small blocks of similar sizes (often powers of
5490  * two). Depending on the operating system and compiler, the methods implemented in SCIP can be faster, since blocks
5491  * of the same size are grouped together. Especially at the end of the 1990ies the standard malloc/free methods were
5492  * quite ineffective. The experiments of Tobias Achterberg in 2007 show a speed improvement of 11 % when using block
5493  * memory.
5494  * - <em>Efficiency:</em> Since blocks are groups in sizes, the blocks do not need to store their sizes within each
5495  * block. In comparison, standard malloc/free stores the size using one word for each memory chunk. The price to pay
5496  * is that one needs to pass the size to the methods that free a block. In any case, the methods in SCIP can save
5497  * memory. Moreover, buffer memory is stored in similar places and not spread out, which also might help cache.
5498  * - <em>Debugging:</em> All of the possibilities provide methods to detect memory leaks. Together with tools like
5499  * valgrind, this can be quite effective in avoiding such problems.
5500  *
5501  * @n
5502  * @section BLKMEM Block memory
5503  *
5504  * SCIP offers its own block memory handling, which allows efficient handling of smaller blocks of memory in cases in
5505  * which many blocks of the same (small) size appear. This is adequate for branch-and-cut codes in which small blocks
5506  * of the same size are allocated and freed very often (for data structures used to store rows or branch-and-bound
5507  * nodes). Actually, most blocks allocated within SCIP have small sizes like 8, 16, 30, 32, 64. The idea is simple:
5508  * There is a separate list of memory blocks for each interesting small size. When allocating memory, the list is
5509  * checked for a free spot in the list; if no such spot exists, the list is enlarged. Freeing just sets the block to be
5510  * available. Very large blocks are handled separately. See the dissertation of Tobias Achterberg for more details.
5511  *
5512  * One important comment is that freeing block memory requires the size of the block in order to find the right list.
5513  *
5514  * The most important functions are
5515  * - SCIPallocBlockMemory(), SCIPallocBlockMemoryArray() to allocate memory
5516  * - SCIPfreeBlockMemory(), SCIPfreeBlockMemoryArray() to free memory
5517  *
5518  * An example code is:
5519  * \code
5520  * SCIP_RETCODE dosomething(
5521  * SCIP* scip
5522  * )
5523  * {
5524  * int nvars;
5525  * int* array;
5526  *
5527  * nvars = SCIPgetNVars(scip);
5528  * SCIP_CALL( SCIPallocBlockMemoryArray(scip, &array, nvars) );
5529  *
5530  * do something ...
5531  *
5532  * SCIPfreeBlockMemoryArray(scip, &array, nvars);
5533  * }
5534  * \endcode
5535  * @n
5536  *
5537  * @section BUFMEM Buffer memory
5538  *
5539  * @subsection BUFMEMSTD Standard Buffer Memory
5540  *
5541  * In addition to block memory, SCIP offers buffer memory. This should be used if memory is locally used within a
5542  * function and freed within the same function. For this purpose, SCIP has a list of memory buffers that are reused for
5543  * this purpose. In this way, a very efficient allocation/freeing is possible.
5544  *
5545  * Note that the buffers are organized in a stack, i.e., freeing buffers in reverse order of allocation is faster.
5546  *
5547  * The most important functions are
5548  * - SCIPallocBuffer(), SCIPallocBufferArray() to allocate memory,
5549  * - SCIPfreeBuffer(), SCIPfreeBufferArray() to free memory.
5550  *
5551  * @subsection BUFMEMCLEAN Clean Buffer Memory
5552  *
5553  * SCIP 3.2 introduced a new type of buffer memory, the <em>clean buffer</em>. It provides memory which is initialized to zero
5554  * and requires the user to reset the memory to zero before freeing it. This can be used at performance-critical
5555  * places where only few nonzeros are added to a dense array and removing these nonzeros individually is much faster
5556  * than clearing the whole array. Similar to the normal buffer array, the clean buffer should be used for temporary memory
5557  * allocated and freed within the same function.
5558  *
5559  * The most important functions are
5560  * - SCIPallocCleanBufferArray() to allocate memory,
5561  * - SCIPfreeCleanBufferArray() to free memory.
5562  *
5563  * @n
5564  * @section STDMEM Standard memory
5565  *
5566  * SCIP provides an access to the standard C functions @c malloc and @c free with the additional feature of tracking
5567  * memory in debug mode. In this way, memory leaks can be easily detected. This feature is automatically activated in
5568  * debug mode.
5569  *
5570  * The most important functions are
5571  * - SCIPallocMemory(), SCIPallocMemoryArray() to allocate memory,
5572  * - SCIPfreeMemory(), SCIPfreeMemoryArray() to free memory.
5573  *
5574  * @n
5575  * @section MEMBESTPRACTICE Best Practice of Using Memory Functions
5576  *
5577  * Since allocating and freeing memory is very crucial for the speed and memory consumption of a program, it is
5578  * important to keep the following notes and recommendations in mind.
5579  *
5580  * @subsection GEN General Notes
5581  *
5582  * The following holds for all three types of memory functions:
5583  * - In debug mode, the arguments are checked for overly large allocations (usually arising from a bug). Note that all
5584  * arguments are converted to unsigned values of type @c size_t, such that negative sizes are converted into very
5585  * large values.
5586  * - The functions always allocate at least one byte and return non-NULL pointers if memory is available. In particular,
5587  * freeing is always possible.
5588  * - The freeing methods set the pointer to the memory to NULL.
5589  * - Debugging can be supported by using the compiler flags @p NOBLKMEM=true, @p NOBUFMEM=true, @p NOBLKBUFMEM=true
5590  * that turn off the usage of block memory, buffer memory, as well as block and buffer memory, respectively. Since,
5591  * the internal block and buffer memory is freed at the end (leaving no memory leaks), turning them off allows tools
5592  * like valgrind to find memory leaks.
5593  * - Moreover, additional checks can be turned on by defining @p CHECKMEM in memory.c.
5594  *
5595  * @n
5596  * @subsection DOS Things to do ...
5597  *
5598  * - Use buffer memory if your memory chunk can be allocated and freed within the same function.
5599  * - Use buffer and block memory wherever possible, because of the reasons explained above.
5600  * - Free memory in the reverse order in which it was allocated! For block and buffer memory this @b significantly
5601  * speeds up the code.
5602  * - Use as few memory allocations/freeing operations as possible, since these functions take a significant amount of time.
5603  *
5604  * @n
5605  * @subsection DONTS Things to avoid ...
5606  *
5607  * - Avoid the usage of standard memory, since SCIP is unaware of the size used in such blocks.
5608  * - Avoid reallocation with only slightly increased size, rather use a geometrically growing
5609  * size allocation. SCIPcalcMemGrowSize() is one way to calculate new sizes.
5610  * - Be careful with buffer memory reallocation: For single buffers, the memory is reallocated (using malloc); since
5611  * the actual space might be larger than what was needed at allocation time, reallocation sometimes comes without
5612  * extra cost. Note that reallocating block memory in most cases implies moving memory arround.
5613  */
5614 
5615 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5616 
5617 /**@page DEBUG Debugging
5618  *
5619  * If you need to debug your own code that uses SCIP, here are some tips and tricks:
5620  *
5621  * - Use <b>asserts</b> in your code to show preconditions for the parameters, invariants and postconditions.
5622  * Assertions are boolean expressions which inevitably have to evaluate to <code>TRUE</code>. Consider the
5623  * following example:
5624  *
5625  * @refsnippet{src/scip/cons_linear.c,SnippetDebugAssertions}
5626  *
5627  * As you can see, both pointers and integers are checked for valid values at the beginning of the
5628  * function <code>consdataCatchEvent()</code>. This is particularly important for, e.g., array indices like
5629  * the variable <code>pos</code> in this example, where using the <code>consdata->nvars[pos]</code>
5630  * pointer could result in unexspected behaviour
5631  * if the asserted precondition on <code>pos</code> were not matched and <pos> were an arbitrary index
5632  * outside the array range.
5633  *
5634  * - In order to activate assertions, use the <b>Debug mode</b> by compiling SCIP via
5635  * \code
5636  * make OPT=dbg
5637  * \endcode and run the code. See \ref MAKE for further information about compiler options for SCIP.
5638  *
5639  * - Spending only little extra time on
5640  * asserting preconditions saves most of the time spent on debugging!
5641  *
5642  * - Turn on <b>additional debug output</b> by adding the line
5643  * \code
5644  * #define SCIP_DEBUG
5645  * \endcode
5646  * at the top of SCIP files you want to analyze. This will output messages included in the code using
5647  * <code>SCIPdebugMsg(scip, ...)</code> (or <code>SCIPdebugMessage()</code>), see \ref EXAMPLE_1.
5648  * We recommend to also use <code>SCIPdebugMsg(scip, ...)</code> in your own code for being able to activate
5649  * debug output in the same way.
5650  * - If available on your system, we recommend to use a debugger like <code>gdb</code>
5651  * to trace all function calls on the stack,
5652  * display values of certain expressions, manually break the running code, and so forth.
5653  * - If available on your system, you can use software like <a href="http://valgrind.org">valgrind</a> to check for uninitialized
5654  * values or segmentation faults.
5655  * - For checking the usage of SCIP memory, you can use
5656  * <code>SCIPprintMemoryDiagnostic()</code>. This outputs memory that is currently in use,
5657  * which can be useful after a <code>SCIPfree()</code> call.
5658  * - If there are memory leaks for which you cannot detect the origin, you can remake your code with the option NOBLKBUFMEM=true
5659  * (do not forget to clean your code before with <code>make OPT=... LPS=... clean</code>). After that valgrind (or similar) helps
5660  * to detect leaked memory.
5661  * - If your code cuts off a feasible solution, but you do not know which component is responsible,
5662  * you can define <code>SCIP_DEBUG_SOLUTION</code> in the file <code>debug.h</code> to be a filename
5663  * containing a solution in SCIP format (see \ref EXAMPLE_2).
5664  * This solution is then read and it is checked for every cut, whether the solution violates the cut.
5665  *
5666  * @section EXAMPLE_1 How to activate debug messages
5667  * For example, if we include a <code>\#define SCIP_DEBUG</code> at the top of \ref heur_oneopt.h, recompile SCIP
5668  * in DBG mode, and run the SCIP interactive shell to solve p0033.mps from the
5669  * <a href="http://miplib.zib.de/miplib3/miplib.html">MIPLIB 3.0</a> , we get some output like:
5670  *
5671  * \include debugexamples/example1.txt
5672  *
5673  * @section EXAMPLE_2 How to add a debug solution
5674  *
5675  * Continuing the example above, we finish the solving process.
5676  * The optimal solution can now be written to a file:
5677  * \include debugexamples/example2_1.txt
5678  *
5679  * If we afterwards use
5680  * <code>\#define SCIP_DEBUG_SOLUTION "check/p0033.sol"</code> in debug.h, recompile and run SCIP,
5681  * it will output:
5682  * \include debugexamples/example2_2.txt
5683  * Further debug output would only appear, if the solution was cut off in the solving process.
5684  * Of course, this is not the case! Hopefully...otherwise, please send a bug report ;-)
5685  */
5686 
5687 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5688 
5689 /**@page TEST How to run automated tests with SCIP
5690  *
5691  * SCIP comes along with a set of useful tools that allow to perform automated tests. The
5692  * following is a step-by-step guide from setting up the test environment for evaluation and
5693  * customization of test runs.
5694  *
5695  *
5696  * @section SETUP Setting up the test environment
5697  *
5698  * At first you should create a file listing all problem instances that should be part of the test.
5699  * This file has to be located in the the directory <code>scip/check/testset/</code>
5700  * and has to have the file extension <code>.test</code>, e.g., <code>testrun.test</code>,
5701  * in order to be found by the <code>scip/check/check.sh</code> script.
5702  * \n
5703  * All test problems can be listed in the <code>test</code>-file by a relative path,
5704  * e.g., <code>../../problems/instance1.lp</code> or absolute path, e.g., <code>/home/problems/instance2.mps</code>
5705  * in this file. Only one problem should be listed on every line (since the command <code>cat</code> is used to parse this file).
5706  * Note that these problems have to be readable for SCIP in order to solve them.
5707  * However, you can use different file formats.
5708  *
5709  * Optionally, you can provide a solution file in the <code>scip/check/testset/</code> directory containing
5710  * known information about the feasibility and the best known objective values for the test instances.
5711  * SCIP can use these values to verify the results. The file has to have the same basename as the
5712  * <code>.test</code>-file, i.e., in our case <code>testrun.solu</code>. One line can only contain
5713  * information about one test instance. A line has to start with the type of information given:
5714  *
5715  * - <code>=opt=</code> stating that a problem name with an optimal objective value follows
5716  * - <code>=best=</code> stating that a problem name with a best know objective value follows
5717  * - <code>=inf=</code> stating that a problem name follows which is infeasible
5718  *
5719  * With these information types you can encode for an instance named <code>instance1.lp</code> the following
5720  * information:
5721  * - The instance has a known optimal (objective) value of 10.
5722  * \code
5723  * =opt= instance1 10
5724  * \endcode
5725  * - The instance has a best known solution with objective value 15.
5726  * \code
5727  * =best= instance1 15
5728  * \endcode
5729  * - The instance is feasible (but has no objective function or we don't know a solution value)
5730  * \code
5731  * =feas= instance1
5732  * \endcode
5733  * - The instance is infeasible.
5734  * \code
5735  * =inf= instance1
5736  * \endcode
5737  *
5738  * If you don't know whether the instance is feasible or not (so the status is unknown),
5739  * you can omit the instance in the <code>solu</code>-file or write
5740  * \code
5741  * =unkn= instance1
5742  * \endcode
5743  *
5744  * <b>Note that in all lines the file extension of the file name is omitted.</b>
5745  * \n
5746  * See the files <code>scip/check/testset/short.test</code> and <code>scip/check/testset/short.solu</code>
5747  * for an example of a <code>test</code>-file and its corresponding <code>solu</code>-file.
5748  *
5749  *
5750  *
5751  * @section STARTING Starting a test run
5752  *
5753  *
5754  * \code
5755  * make TEST=testrun test
5756  * \endcode
5757  *
5758  * in the SCIP root directory. Note that <code>testrun</code> is exactly the basename of our
5759  * <code>test</code>-file (<code>testrun.test</code>). This will cause SCIP to solve our test instances
5760  * one after another and to create various output files (see \ref EVAL).
5761  *
5762  *
5763  * @section EVAL Evaluating a test run
5764  *
5765  * During computation, SCIP automatically creates the directory <code>scip/check/results/</code>
5766  * (if it does not already exist) and stores the following output files there.
5767  *
5768  * \arg <code>*.out</code> - output of <code>stdout</code>
5769  * \arg <code>*.err</code> - output of <code>stderr</code>
5770  * \arg <code>*.set</code> - copy of the used settings file
5771  *
5772  * \arg <code>*.res</code> - ASCII table containing a summary of the computational results
5773  * \arg <code>*.tex</code> - TeX table containing a summary of the computational results
5774  * \arg <code>*.pav</code> - <a href="http://www.gamsworld.org/performance/paver/">PAVER</a> output
5775  *
5776  * The last three files in the above list, i.e., the files containing a summary of the computational results,
5777  * can also be generated manually. Therefore the user has to call the <code>evalcheck.sh</code> script in the
5778  * @c check directory with the corresponding @c out file as argument. For example, this may be useful if the user stopped the
5779  * test before it was finished, in which case the last three files will not be automatically generated by SCIP.
5780  *
5781  * The last column of the ASCII summary table contains the solver status. We distinguish the following statuses: (in order of priority)
5782  *
5783  * \arg abort: solver broke before returning solution
5784  * \arg fail: solver cut off a known feasible solution (value of the <code>solu</code>-file is beyond the dual bound;
5785  * especially if problem is claimed to be solved but solution is not the optimal solution)
5786  * <b>or</b> if a final solution check revealed a violation of one of the original constraints.
5787  * \arg ok: solver solved problem with the value in solu-file
5788  * \arg solved: solver solved problem which has no (optimal) value in solu-file (since we here cannot detect the direction
5789  * of optimization, it is possible that a solver claims an optimal solution which contradicts a known feasible solution)
5790  * \arg better: solver found solution better than known best solution (or no solution was noted in the <code>solu</code>-file so far)
5791  * \arg gaplimit, sollimit: solver reached gaplimit or limit of number of solutions (at present: only in SCIP)
5792  * \arg timeout: solver reached any other limit (like time or nodes)
5793  * \arg unknown: otherwise
5794  *
5795  * Additionally the <code>evalcheck.sh</code> script can generate a <code>solu</code>-file by calling
5796  * \code
5797  * ./evalcheck.sh writesolufile=1 NEWSOLUFILE=<solu-file> <out-file>
5798  * \endcode
5799  * where <code><solu-file></code> denotes the filename of the new file where the solutions shall be
5800  * (and <code><out-file></code> denotes the output (<code>.out</code>) files to evaluate).
5801  *
5802  * Another feature can be enabled by calling:
5803  * \code
5804  * ./evalcheck.sh printsoltimes=1 ...
5805  * \endcode
5806  * The output has two additional columns containing the solving time until the first and the best solution was found.
5807  *
5808  *
5809  * @b Note: The @em basename of all these files is the same and has the following structure
5810  * which allows us to reconstruct the test run:
5811  *
5812  * \code
5813  * check.<test name>.<binary>.<machine name>.<setting name>
5814  * \endcode
5815  *
5816  * \arg <<code>test name</code>> indicates the name of the the test file, e.g., <code>testrun</code>
5817  * \arg <<code>binary</code>> defines the used binary, e.g., <code>scip-3.2.0.linux.x86_64.gnu.opt.spx</code>
5818  * \arg <<code>machine name</code>> tells the name of the machine, e.g., <code>mycomputer</code>
5819  * \arg <<code>setting name</code>> denotes the name of the used settings, e.g., <code>default</code>
5820  * means the (SCIP) default settings were used
5821  *
5822  * Using the examples out of the previous listing the six file names would have the name:
5823  *
5824  * \code
5825  * check.testrun.scip-1.1.0.linux.x86.gnu.opt.spx.mycomputer.default.<out,err,set,res,tex,pav>
5826  * \endcode
5827  *
5828  *
5829  * @section USING Using customized setting files
5830  *
5831  * It is possible to use customized settings files for the test run instead of testing SCIP with default settings.
5832  * These have to be placed in the directory <code>scip/settings/</code>.
5833  *
5834  * @b Note: Several common user parameters such as, e.g., the time limit and node limit parameters,
5835  * <b>cannot</b> be controlled by the settings file, whose specifications would be overwritten
5836  * by optional command line arguments to the <code>make test</code> command, see @ref ADVANCED
5837  * for a list of available advanced testing options that have to be specified from the command line.
5838  *
5839  * @b Note: Accessing settings files in subfolders of the @c settings directory is currently not supported.
5840  *
5841  * To run SCIP with a custom settings file, say for example <code>fast.set</code>, we call
5842  *
5843  * \code
5844  * make TEST=testrun SETTINGS=fast test
5845  * \endcode
5846  *
5847  * in the SCIP root directory. It is possible to enter a list of settings files as a double-quoted,
5848  * comma-separated list of settings names as <code>fast</code> above, i.e. <code>SETTINGS="fast,medium,slow"</code>
5849  * will invoke the solution process for every instance with the three settings <code>fast.set, medium.set, slow.set</code>
5850  * before continuing with the next instance from the <code>.test</code>-file. This may come in handy if the
5851  * whole test runs for a longer time and partial results are already available.
5852  *
5853  *
5854  * @section ADVANCED Advanced options
5855  *
5856  * We can further customize the test run by specifying the following options in the <code>make</code> call:
5857  *
5858  * \arg <code>CONTINUE</code> - continue the test run if it was previously aborted [default: "false"]
5859  * \arg <code>DISPFREQ</code> - display frequency of the output [default: 10000]
5860  * \arg <code>FEASTOL</code> - LP feasibility tolerance for constraints [default: "default"]
5861  * \arg <code>LOCK</code> - should the test run be locked to prevent other machines from performing the same test run [default: "false"]
5862  * \arg <code>MAXJOBS=n</code> - run tests on 'n' cores in parallel. Note that several instances are solved in parallel, but
5863  * only one thread is used per job (parallelization is not that easy) [default: 1]
5864  * \arg <code>MEM</code> - memory limit in MB [default: 6144]
5865  * \arg <code>NODES</code> - node limit [default: 2100000000]
5866  * \arg <code>TIME</code> - time limit for each test instance in seconds [default: 3600]
5867  * \arg <code>SETCUTOFF</code> - if set to '1', an optimal solution value (from the <code>.solu</code>-file) is used as objective limit [default: 0]
5868  * \arg <code>THREADS</code> - the number of threads used for solving LPs, if the linked LP solver supports multithreading [default: 1]
5869  * \arg <code>VALGRIND</code> - run valgrind on the SCIP binary; errors and memory leaks found by valgrind are reported as fails [default: "false"]
5870  *
5871  *
5872  * @section COMPARE Comparing test runs for different settings
5873  *
5874  * Often test runs are performed on the basis of different settings. In this case, it is useful to
5875  * have a performance comparison. For this purpose, we can use the <code>allcmpres.sh</code> script in
5876  * the @c check directory.
5877  *
5878  * Suppose, we performed our test run with two different settings, say <code>fast.set</code> and
5879  * <code>slow.set</code>. Assuming that all other parameters (including the SCIP binary), were the same,
5880  * we may have the following <code>res</code>-files in the directory <code>scip/check/results/</code>
5881  *
5882  * \code
5883  * check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.fast.res
5884  * check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.slow.res
5885  * \endcode
5886  *
5887  * For a comparison of both computations, we simply call
5888  *
5889  * \code
5890  * allcmpres.sh results/check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.fast.res \
5891  * results/check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.slow.res
5892  * \endcode
5893  *
5894  * in the @c check directory. This produces an ASCII table on the console that provide a detailed
5895  * performance comparison of both test runs. Note that the first <code>res</code>-file serves as reference
5896  * computation. The following list explains the output.
5897  * (The term "solver" can be considered as the combination of SCIP with a specific setting file.)
5898  *
5899  * \arg <code>Nodes</code> - Number of processed branch-and-bound nodes.
5900  * \arg <code>Time</code> - Computation time in seconds.
5901  * \arg <code>F</code> - If no feasible solution was found, then '#', empty otherwise.
5902  * \arg <code>NodQ</code> - Equals Nodes(i) / Nodes(0), where 'i' denotes the current solver and '0' stands for the reference solver.
5903  * \arg <code>TimQ</code> - Equals Time(i) / Time(0).
5904  * \arg <code>bounds check</code> - Status of the primal and dual bound check.
5905  *
5906  * \arg <code>proc</code> - Number of instances processed.
5907  * \arg <code>eval</code> - Number of instances evaluated (bounds check = "ok", i.e., solved to optimality
5908  * within the time and memory limit and result is correct). Only these instances are used in the calculation
5909  * of the mean values.
5910  * \arg <code>fail</code> - Number of instances with bounds check = "fail".
5911  * \arg <code>time</code> - Number of instances with timeout.
5912  * \arg <code>solv</code> - Number of instances correctly solved within the time limit.
5913  * \arg <code>wins</code> - Number of instances on which the solver won (i.e., the
5914  * solver was at most 10% slower than the fastest solver OR had the best
5915  * primal bound in case the instance was not solved by any solver within
5916  * the time limit).
5917  * \arg <code>bett</code> - Number of instances on which the solver was better than the
5918  * reference solver (i.e., more than 10% faster).
5919  * \arg <code>wors</code> - Number of instances on which the solver was worse than the
5920  * reference solver (i.e., more than 10% slower).
5921  * \arg <code>bobj</code> - Number of instances on which the solver had a better primal
5922  * bound than the reference solver (i.e., a difference larger than 10%).
5923  * \arg <code>wobj</code> - Number of instances on which the solver had a worse primal
5924  * bound than the reference solver (i.e., a difference larger than 10%).
5925  * \arg <code>feas</code> - Number of instances for which a feasible solution was found.
5926  * \arg <code>gnodes</code> - Geometric mean of the processed nodes over all evaluated instances.
5927  * \arg <code>shnodes</code> - Shifted geometric mean of the processed nodes over all evaluated instances.
5928  * \arg <code>gnodesQ</code> - Equals nodes(i) / nodes(0), where 'i' denotes the current
5929  * solver and '0' stands for the reference solver.
5930  * \arg <code>shnodesQ</code> - Equals shnodes(i) / shnodes(0).
5931  * \arg <code>gtime</code> - Geometric mean of the computation time over all evaluated instances.
5932  * \arg <code>shtime</code> - Shifted geometric mean of the computation time over all evaluated instances.
5933  * \arg <code>gtimeQ</code> - Equals time(i) / time(0).
5934  * \arg <code>shtimeQ</code> - Equals shtime(i) / shtime(0).
5935  * \arg <code>score</code> - N/A
5936  *
5937  * \arg <code>all</code> - All solvers.
5938  * \arg <code>optimal auto settings</code> - Theoretical result for a solver that performed 'best of all' for every instance.
5939  * \arg <code>diff</code> - Solvers with instances that differ from the reference solver in the number of
5940  * processed nodes or in the total number of simplex iterations.
5941  * \arg <code>equal</code> - Solvers with instances whose number of processed nodes and total number of
5942  * simplex iterations is equal to the reference solver (including a 10% tolerance) and where no timeout
5943  * occured.
5944  * \arg <code>all optimal</code> - Solvers with instances that could be solved to optimality by
5945  * <em>all</em> solvers; in particular, no timeout occurred.
5946  *
5947  * Since this large amount of information is not always needed, one can generate a narrower table by calling:
5948  * \code
5949  * allcmpres.sh short=1 ...
5950  * \endcode
5951  * where <code>NodQ</code>, <code>TimQ</code> and the additional comparison tables are omitted.
5952  *
5953  * If the <code>res</code>-files were generated with the parameter <code>printsoltimes=1</code>
5954  * we can enable the same feature here as well by calling:
5955  * \code
5956  * allcmpres.sh printsoltimes=1 ...
5957  * \endcode
5958  * As in the evaluation, the output contains the two additional columns of the solving time until the first and the best solution was found.
5959  *
5960  * @section STATISTICS Statistical tests
5961  *
5962  * The \c allcmpres script also performs two statistical tests for comparing different settings: For deciding whether
5963  * more feasible solutions have been found or more instances have been solved to optimality or not, we use a McNemar
5964  * test. For comparing the running time and number of nodes, we use a variant of the Wilcoxon signed rank test. A
5965  * detailed explanation can be found in the PhD thesis of Timo Berthold (Heuristic algorithms in global MINLP solvers).
5966  *
5967  * @subsection McNemar McNemar test
5968  *
5969  * Assume that we compare two settings \c S1 and \c S2 with respect to the number of instances solved to optimality
5970  * within the timelimit. The null hypothesis would be "Both settings lead to an equal number of instances being solved
5971  * to optimality", which we would like to disprove. Let \f$n_1\f$ be the number of instances solved by setting \c S1
5972  * but not by \c S2, and let \f$n_2\f$ be the number of instances solved by setting \c S2 but not by \c S1. The
5973  * McNemar test statistic is
5974  * \f[
5975  * \chi^2 = \frac{(n_1 - n_2)^2}{n_1 + n_2}.
5976  * \f]
5977  * Under the null hypothesis, \f$\chi^2\f$ is chi-squared distributed with one degree of freedom. This allows to compute
5978  * a \f$p\f$-value as the probability for obtaining a similar or even more extreme result under the null hypothesis.
5979  * More explicitly, \c allcmpres uses the following evaluation:
5980  * - \f$0.05 < p\f$: The null hypothesis is accepted (marked by "X").
5981  * - \f$0.005 < p \leq 0.05\f$: The null hypothesis might be false (marked by "!").
5982  * - \f$0.0005 < p \leq 0.005\f$: The null hypothesis can be false (marked by "!!").
5983  * - \f$p \leq 0.0005\f$: The null hypothesis is very likely false (marked by "!!!").
5984  *
5985  * As an example consider the following output:
5986  * \code
5987  * McNemar (feas) x2 0.0000, 0.05 < p X
5988  * McNemar (opt) x2 6.0000, p ~ (0.005, 0.05] !
5989  * \endcode
5990  * Here, \c x2 represents \f$\chi^2\f$.
5991  *
5992  * In this case, the test with respect to the number of found feasible solutions is irrelevant, since their number is
5993  * equal. In particular, the null hypothesis gets accepted (i.e., there is no difference in the settings - this is
5994  * marked by "X").
5995  *
5996  * With respect to the number of instances solved to optimality within the timelimit, we have that \f$0.005 < p <=
5997  * 0.05\f$ (marked by <tt>p ~ (0.005, 0.05)</tt>). Thus, there is some evidence that the null hypothesis is false, i.e., the
5998  * settings perform differently; this is marked by "!". In the concrete case, we have 230 instances, all of which are
5999  * solved by setting \c S2, but only 224 by setting \c S1.
6000  *
6001  * @subsection Wilcoxon Wilcoxon signed rank test
6002  *
6003  * Assume that we compare two settings \c S1 and \c S2 with respect to their solution times (within the time limit). We
6004  * generate a sorted list of the ratios of the run times, where ratios that are (absolutely or relatively) within 1\%
6005  * of 1.0 are discarded, and ratios between 0.0 and 0.99 are replaced with their negative inverse in order to
6006  * obtain a symmetric distribution for the ratios around the origin.
6007  * We then assign ranks 1 to \c N to the remaining \c N data points in nondecreasing
6008  * order of their absolute ratio. This yields two groups \c G1
6009  * and \c G2 depending on whether the ratios are smaller than -1.0 or larger than 1.0 (\c G1 contains the instances for which
6010  * setting \c S1 is faster). Then the sums of the ranks in groups \c G1 and \c G2 are computed, yielding values \c R1
6011  * and \c R2, respectively.
6012  *
6013  * The Wilcoxon test statistic is then
6014  * \f[
6015  * z = \frac{\min(R1, R2) - \frac{N(N+1)}{4}}{\sqrt{\frac{N(N+1)(2N+1)}{24}}},
6016  * \f]
6017  * which we assume to be (approximately) normally distributed (with zero mean) and allows to compute the probability
6018  * \f$p\f$ that one setting is faster than the other. (Note that for \f$N \leq 60\f$, we apply a correction by
6019  * subtracting 0.5 from the numerator).
6020  *
6021  * As an example consider the following output:
6022  * \code
6023  * Wilcoxon (time) z -0.1285, 0.05 <= p X
6024  * Wilcoxon (nodes) z -11.9154, p < 0.0005 !!!
6025  * \endcode
6026  * While the \f$z\f$-value is close to zero for the run time, it is extremely negative regarding the solving nodes. This latter
6027  * tendency for the number of nodes is significant on a 0.05 % level, i.e., the probability \f$p\f$ that setting \c S1 uses more
6028  * nodes than setting \c S2 is negligible (this null hypothesis is rejected - marked by "!!!").
6029  *
6030  * However, the null hypothesis is not rejected with respect to the run time. In the concrete case, setting \c S1 has a
6031  * shifted geometric mean of its run times (over 230 instances) of 248.5, for \c S2 it is 217.6. This makes a ratio of
6032  * 0.88. Still - the null hypothesis is not rejected.
6033  *
6034  * @section SOLVER Testing and Evaluating using GAMS
6035  *
6036  * Analogously to the target <code>test</code> there is another target to run automated tests with <a href="http://www.gams.com/">gams</a>
6037  * \code
6038  * make testgams GAMSSOLVER=xyz
6039  * \endcode
6040  * For this target, the option GAMSSOLVER has to be given to specify the name of a GAMS solver to run, e.g. GAMSSOLVER=SCIP.
6041  * Additional advanced options specific to this target are:
6042  * GAMS to specify the GAMS executable (default: gams),
6043  * GAP to specify a gap limit (default: 0.0),
6044  * CLIENTTMPDIR to specify a directory where GAMS should put its scratch files (default: /tmp),
6045  * CONVERTSCIP to specify a SCIP which can be used to convert non-gams files into gams format (default: bin/scip, if existing; set to "no" to disable conversion).
6046  * The following options are NOT supported (and ignored): DISPFREQ, FEASTOL, LOCK.
6047  * A memory limit (MEM option) is only passed as workspace option to GAMS, but not enforced via ulimit (it's up to the solver to regard and obey the limit).
6048  *
6049  * Note: This works only if the referred programs are installed globally on your machine.
6050  *
6051  * The above options like <code>TIME</code> are also available for gams.
6052  *
6053  * After the testrun there should be an <code>.out</code>, an <code>.err</code> and a <code>.res</code> file
6054  * with the same basename as described above.
6055  *
6056  * Furthermore you can also use the script <code>allcmpres.sh</code> for comparing results.
6057  *
6058  */
6059 
6060 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6061 
6062 /**@page CHG1 Interface changes between SCIP 0.9 and SCIP 1.0
6063  *
6064  * @section CHGPARAM New parameters
6065  *
6066  * - All functions SCIP<datatype>Param() got a new parameter "isadvanced".
6067  * \n
6068  * This does not influence the performance of SCIP, but the position of the parameter in the settings menu.
6069  * Hence, if you do not care about this, you can assign any value to it.
6070  * You should add the corresponding flag to the SCIP<datatype>Param() calls in your own source code.
6071  *
6072  */
6073 
6074 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6075 
6076 /**@page CHG2 Interface changes between SCIP 1.0 and SCIP 1.1
6077  *
6078  * - SCIPcreateChild() has a new last parameter giving an estimate for value of best feasible solution in the subtree to
6079  * be created. One possibility is to use SCIPgetLocalOrigEstimate() for this value.
6080  *
6081  * - The callback \ref CONSCHECK in the constraint handlers now has a new parameter <code>printreason</code> that tells
6082  * a constraint handler to output the reason for a possible infeasibility of the solution to be checked using
6083  * SCIPinfoMessage(). Have a look at one of the constraint handlers implemented in SCIP to see how it works. This
6084  * methodology makes it possible to output the reason of a violation in human readable form, for instance, for the check
6085  * at the end of a SCIP run, where the obtained best solution is checked against the original formulation.\n This change
6086  * often has little effect on C-implementations, since this parameter can be safely ignored with respect to the
6087  * correctness of the code. The corresponding C++ method scip::ObjConshdlr::scip_check(), however, has to be extended
6088  * and will not compile otherwise.
6089  *
6090  * - SCIPcheckSolOrig() is restructured. The last two parameters have changed. They are now bools indicating
6091  * whether the reason for the violation should be printed to the standard output and whether all violations should be
6092  * printed. This reflects the changes in the constraint handlers above, which allow the automation of the feasibility
6093  * test. The pointers to store the constraint handler or constraint are not needed anymore.
6094  *
6095  * - New parameters "extension" and "genericnames" in SCIPprintTransProblem(), SCIPprintOrigProblem(),
6096  * SCIPwriteOrigProblem(), and SCIPwriteTransProblem() defining the requested format or NULL for default CIP format
6097  * and using generic names for the variables and constraints. Examples are
6098  * - <code>SCIPprintTransProblem(scip, NULL, NULL, TRUE)</code> displays the transformed problem in CIP format with
6099  * generic variables and constraint names
6100  * - <code>SCIPprintOrigProblem(scip, NULL, "lp", FALSE)</code> displays the original problem in LP format with
6101  * original variables and constraint names.
6102  *
6103  * - New callback method SCIP_DECL_READERWRITE(x) in type_reader.h; this method is called to write a problem to file
6104  * stream in the format the reader stands for; useful for writing the transformed problem in LP or MPS format. Hence,
6105  * also SCIPincludeReader() has changed.
6106  *
6107  * - New parameter "conshdlrname" in SCIPincludeLinconsUpgrade().
6108  *
6109  * - Added user pointer to callback methods of hash table, see pub_misc.h.
6110  *
6111  * - New parameter "extension" in SCIPreadProb(), defining a desired file format or NULL if file extension should be used.
6112  */
6113 
6114 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6115 
6116 /**@page CHG3 Interface changes between SCIP 1.1 and SCIP 1.2
6117  *
6118  *
6119  * @section CHGCALLBACKS New and changed callbacks
6120  *
6121  * - The callback SCIP_DECL_PRICERREDCOST(x) in the \ref PRICER "pricers" has two new parameters:
6122  * - A <code>result</code> pointer determines whether the pricer guarantees that there exist no more variables. This allows for early branching.
6123  * - A pointer for providing a lower bound.
6124  *
6125  * - The \ref CONS "constraint handlers" have two new callback methods (see type_cons.h for more details).
6126  * - SCIP_DECL_CONSCOPY(x) - this method can be used to copy a constraint.
6127  * - SCIP_DECL_CONSPARSE(x) - this method can be used to parse a constraint in CIP format.
6128  *
6129  * @section CHGINTERFUNC New parameters in interface methods
6130  *
6131  * - SCIPcalcMIR() in scip.h has two new parameter "mksetcoefsvalid" and "sol". The parameter "mksetcoefsvalid" stores
6132  * whether the coefficients of the mixed knapsack set ("mksetcoefs") computed in SCIPlpCalcMIR() are valid. If the mixed knapsack constraint obtained after aggregating LP rows
6133  * is empty or contains too many nonzero elements the generation of the <b>c-MIR cut</b> is aborted in SCIPlpCalcMIR() and "mksetcoefs" is not valid.
6134  * The input parameter "sol" can be used to separate a solution different from the LP solution.
6135  *
6136  * - SCIPgetVarClosestVlb() and SCIPgetVarClosestVub() in scip.h have a new parameter "sol". It can be used to obtain the <b>closest variable bound</b> w.r.t. a solution different from the LP solution.
6137  *
6138  * @section MISCELLANEOUS Miscellaneous
6139  *
6140  * - A significant change for <b>C++ users</b> is that all include files of SCIP
6141  * automatically detect C++ mode, i.e., no <code>extern "C"</code> is needed anymore.
6142  *
6143  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6144  */
6145 
6146 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6147 
6148 /**@page CHG4 Interface changes between SCIP 1.2 and SCIP 2.0
6149  *
6150  *
6151  * @section CHGCALLBACKS4 New and changed callbacks
6152  *
6153  *
6154  * - <b>Copying a SCIP instance</b>:
6155  * <br>
6156  * <br>
6157  * - All plugins, like \ref BRANCH "branching rules" and \ref HEUR "primal heuristics", have a new callback method (see, e.g.,
6158  * type_branch.h and type_heur.h for more details):
6159  * - SCIP_DECL_BRANCHCOPY(x), SCIP_DECL_HEURCOPY(x) etc.
6160  * - When copying a SCIP instance, these methods are called to copy the plugins.
6161  * <br>
6162  * <br>
6163  * - Constraint handlers have two new callback methods. One for copying the constraint handler plugins
6164  * SCIP_DECL_CONSHDLRCOPY() and the other for copying a constraint itself, SCIP_DECL_CONSCOPY().
6165  * <br>
6166  * <br>
6167  * - Variables have a new callback method (see type_var.h for more details):
6168  * - SCIP_DECL_VARCOPY(x) - When copying a SCIP instance, this method is called to copy the variables' data.
6169  * <br>
6170  * <br>
6171  * - The main problem has a new callback method (see type_prob.h for more details):
6172  * - SCIP_DECL_PROBCOPY(x) - When copying a SCIP instance, this method is called to copy the problem's data.
6173  * <br>
6174  * <br>
6175  * - The argument success in SCIP_DECL_CONSCOPY has been renamed to valid.
6176  *
6177  * - <b>Branching on externally given candidates</b>:
6178  * <br>
6179  * <br>
6180  * - The \ref BRANCH "branching rules" have a second new callback method (see type_branch.h for more details):
6181  * - SCIP_DECL_BRANCHEXECEXT(x) - This method can be used to branch on external branching candidates,
6182  * which can be added by a user's "relaxation handler" or "constraint handler" plugin, calling <code>SCIPaddExternBranchCand()</code>.
6183  *
6184  * - <b>Restarts</b>:
6185  * <br>
6186  * <br>
6187  * - The callback SCIP_DECL_PROBEXITSOL(x) in the main problem has one new parameter (see type_prob.h for more details):
6188  * - The parameter <code>restart</code> is <code>TRUE</code> if the callback method was triggered by a restart.
6189  *
6190  *
6191  * <br>
6192  * @section CHGINTERFUNC4 Changed interface methods
6193  *
6194  * - <b>Copying a SCIP instance</b>:
6195  * <br>
6196  * <br>
6197  * - Every new callback method resulted in a new parameter of the include function for the corresponding plugin,
6198  * e.g., SCIPincludeBranchrule() has two new parameters <code>SCIP_DECL_BRANCHCOPY((*branchcopy))</code> and
6199  * <code>SCIP_DECL_BRANCHEXECREL((*branchexecrel))</code>. In the same fashion, the new callbacks
6200  * SCIP_DECL_VARCOPY and SCIP_DECL_PROBCOPY led to new parameters in SCIPcreateVar() and SCIPcreateProb() in
6201  * scip.c, respectively.
6202  * <br><br>
6203  * - SCIPincludeHeur() and SCIPincludeSepa() in \ref scip.h, as well as scip::ObjSepa() and scip::ObjHeur(), have a new parameter:
6204  * - <code>usessubscip</code> - It can be used to inform SCIP that the heuristic/separator to be included uses a secondary SCIP instance.
6205  * <br><br>
6206  * - SCIPapplyRens() in \ref heur_rens.h has a new parameter <code>uselprows</code>. It can be used to switch from LP rows
6207  * to constraints as basis of the sub-SCIP constructed in the RENS heuristic.
6208  * <br>
6209  * <br>
6210  * - W.r.t. to copy and the C++ wrapper classes there are two new classes. These are <code>ObjCloneable</code> and
6211  * <code>ObjProbCloneable</code>. The constraint handlers and variables pricers are derived from
6212  * <code>ObjProbCloneable</code> and all other plugin are derived from <code>ObjCloneable</code>. Both
6213  * classes implement the function <code>iscloneable()</code> which return whether a plugin is clone
6214  * able or not. Besides that
6215  * each class has a function named <code>clone()</code> which differ in their signature.
6216  * See objcloneable.h, objprobcloneable.h, and the TSP example for more details.
6217  *
6218  * - <b>Branching</b>:
6219  * <br><br>
6220  * - The method SCIPgetVarStrongbranch() has been replaced by two methods SCIPgetVarStrongbranchFrac() and
6221  * SCIPgetVarStrongbranchInt().
6222  * <br><br>
6223  * - The methods SCIPgetVarPseudocost() and SCIPgetVarPseudocostCurrentRun() in \ref scip.h now return the pseudocost value of
6224  * one branching direction, scaled to a unit interval. The former versions of SCIPgetVarPseudocost() and
6225  * SCIPgetVarPseudocostCurrentRun() are now called SCIPgetVarPseudocostVal() and SCIPgetVarPseudocostValCurrentRun(), respectively.
6226  * <br>
6227  * <br>
6228  * - The methods SCIPgetVarConflictScore() and SCIPgetVarConflictScoreCurrentRun() in \ref scip.h are now called
6229  * SCIPgetVarVSIDS() and SCIPgetVarVSIDSCurrentRun(), respectively.
6230  * <br><br>
6231  * - The methods SCIPvarGetNInferences(), SCIPvarGetNInferencesCurrentRun(), SCIPvarGetNCutoffs(), and
6232  * SCIPvarGetNCutoffsCurrentRun() are now called SCIPvarGetInferenceSum(), SCIPvarGetInferenceSumCurrentRun(),
6233  * SCIPvarGetCutoffSum(), and SCIPvarGetCutoffSumCurrentRun(), respectively. Furthermore, they now return
6234  * <code>SCIP_Real</code> instead of <code>SCIP_Longint</code> values.
6235  *
6236  * - <b>Others</b>:
6237  * <br><br>
6238  * - SCIPcutGenerationHeuristicCmir() in \ref sepa_cmir.h has three new parameters:
6239  * - <code>maxmksetcoefs</code> - If the mixed knapsack constraint obtained after aggregating LP rows contains more
6240  * than <code>maxmksetcoefs</code> nonzero coefficients the generation of the <b>c-MIR cut</b> is aborted.
6241  * - <code>delta</code> - It can be used to obtain the scaling factor which leads to the best c-MIR cut found within
6242  * the cut generation heuristic. If a <code>NULL</code> pointer is passed, the corresponding c-MIR cut will already be
6243  * added to SCIP by SCIPcutGenerationHeuristicCmir(). Otherwise, the user can generate the cut and add it to SCIP
6244  * on demand afterwards.
6245  * - <code>deltavalid</code> - In case, the user wants to know the best scaling factor, i.e., <code>delta</code> passed is not <code>NULL</code>,
6246  * <code>deltavalid</code> will be <code>TRUE</code> if the stored scaling factor <code>delta</code> will lead to a violated c-MIR cut.
6247  * <br>
6248  * <br>
6249  * - All functions for setting <b>user parameters</b> of different types like SCIPparamSetBool(), SCIPparamSetChar(),
6250  * SCIPparamSetInt(), SCIPparamSetLongint(), and SCIPparamSetString() in pub_paramset.h have a new parameter:
6251  * - <code>quiet</code> - It prevents any output during the assign to a new value.
6252  *
6253  * <br>
6254  * @section MISCELLANEOUS4 Miscellaneous
6255  *
6256  * - The NLPI library is now a separate library that is required when linking against the SCIP library.
6257  * This requires changes to Makefiles that use SCIP, see the \ref RELEASENOTES "Release notes" for more details.
6258  *
6259  * - We do not distinguish between <b>block memory</b> for the original and the transformed problem anymore. The same
6260  * block memory is now used in both problem stages.
6261  *
6262  * - The usage of <b>strong branching</b> changed. Now, SCIPstartStrongbranch() and SCIPendStrongbranch() must be
6263  * called before and after strong branching, respectively.
6264  *
6265  * - All <b>C++</b> objects and constructors have a SCIP pointer, now.
6266  *
6267  * - The <b>predefined setting files</b> like "settings/cuts/off.set,aggressive.set,fast.set" have been replaced by
6268  * interface methods like SCIPsetHeuristics(), SCIPsetPresolving(), SCIPsetSeparating(), and SCIPsetEmphasis() in
6269  * \ref scip.h and by user dialogs in the interactive shell like
6270  * <br>
6271  * <br>
6272  * <code>SCIP&gt; set {heuristics|presolving|separating} emphasis {aggressive|fast|off}</code>
6273  * <br>
6274  * <br>
6275  * or
6276  * <br>
6277  * <br>
6278  * <code>SCIP&gt; set emphasis {counter|cpsolver|easycip|feasibility|hardlp|optimality}</code>
6279  *
6280  *
6281  * <br>
6282  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6283  */
6284 
6285 /* - SCIP now has "lazy bounds", which are useful for column generation - see @ref PRICER_REMARKS "pricer remarks" for an explanation.
6286  *
6287  * - SCIP has rudimentary support to solve quadratic nonlinear integer programs - see \ref cons_quadratic.h.
6288  *
6289  * - There are LP-interfaces to QSopt and Gurobi (rudimentary).
6290  *
6291  * - SCIP can now handle indicator constraints (reading (from LP, ZIMPL), writing, solving, ...) - see \ref cons_indicator.h.
6292  *
6293  * - One can now do "early branching" useful for column generation.
6294  *
6295  * - Can now run a black-box lexicographic dual simplex algorithm.
6296  */
6297 
6298  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6299  /**@page CHG5 Interface changes between SCIP 2.0 and SCIP 2.1
6300  *
6301  *
6302  * @section CHGCALLBACKS5 New and changed callbacks
6303  *
6304  * - <b>Presolving</b>:
6305  * <br>
6306  * <br>
6307  * - The new parameters "nnewaddconss" and "naddconss" were added to the constraint handler callback method SCIP_DECL_CONSPRESOL()
6308  * and the presolver callback method SCIP_DECL_PRESOLEXEC(). These parameters were also added to corresponding C++ wrapper class methods.
6309  * - Propagators are now also called in during presolving, this is supported by the new callback methods SCIP_DECL_PROPINITPRE(),
6310  * SCIP_DECL_PROPEXITPRE(), and SCIP_DECL_PROPPRESOL().
6311  * - New parameters "isunbounded" and "isinfeasible" for presolving initialization (SCIP_DECL_CONSINITPRE(),
6312  * SCIP_DECL_PRESOLINITPRE(), SCIP_DECL_PROPINITPRE()) and presolving deinitialization (SCIP_DECL_CONSEXITPRE(),
6313  * SCIP_DECL_PRESOLEXITPRE(), SCIP_DECL_PROPEXITPRE()) callbacks of presolvers,
6314  * constraint handlers and propagators, telling the callback whether the problem was already declared to be
6315  * unbounded or infeasible. This allows to avoid expensive steps in these methods in case the problem is already
6316  * solved, anyway.
6317  * <br>
6318  * <br>
6319  * <DIV class="note">
6320  * Note, that the C++ methods
6321  * - scip::ObjConshdlr::scip_presol() corresponding to SCIP_DECL_CONSPRESOL()
6322  * - scip::ObjConshdlr::scip_initpre() corresponding to SCIP_DECL_CONSINITPRE()
6323  * - scip::ObjPresol::scip_initpre() corresponding to SCIP_DECL_PRESOLINITPRE()
6324  * - scip::ObjProp::scip_initpre() corresponding to SCIP_DECL_PROPINITPRE()
6325  * - scip::ObjConshdlr::scip_exitpre() corresponding to SCIP_DECL_CONSEXITPRE()
6326  * - scip::ObjPresol::scip_exitpre() corresponding to SCIP_DECL_PRESOLEXITPRE()
6327  * - scip::ObjProp::scip_exitpre() corresponding to and SCIP_DECL_PROPEXITPRE()
6328  * .
6329  * are virtual functions. That means, if you are not adding the new parameters, your code will still compile, but these methods are not executed.
6330  * </DIV>
6331  *
6332  * - <b>Constraint Handler</b>:
6333  * <br>
6334  * <br>
6335  * - The new constraint handler callback SCIP_DECL_CONSDELVARS() is called after variables were marked for deletion.
6336  * This method is optional and only of interest if you are using SCIP as a branch-and-price framework. That means,
6337  * you are generating new variables during the search. If you are not doing that just define the function pointer
6338  * to be NULL.
6339  * <br>
6340  * If this method gets implemented you should iterate over all constraints of the constraint handler and delete all
6341  * variables that were marked for deletion by SCIPdelVar().
6342  *
6343  * - <b>Problem Data</b>:
6344  * <br>
6345  * <br>
6346  * - The method SCIPcopyProb() and the callback SCIP_DECL_PROBCOPY() got a new parameter "global" to indicate whether the global problem or a local version is copied.
6347  *
6348  * - <b>Conflict Analysis</b>:
6349  * <br>
6350  * <br>
6351  * - Added parameter "separate" to conflict handler callback method SCIP_DECL_CONFLICTEXEC() that defines whether the conflict constraint should be separated or not.
6352  *
6353  * - <b>NLP Solver Interface</b>:
6354  * <br>
6355  * <br>
6356  * - The callbacks SCIP_DECL_NLPIGETSOLUTION() and SCIP_DECL_NLPISETINITIALGUESS() got new parameters to get/set values of dual variables.
6357  * - The callback SCIP_DECL_NLPICOPY() now passes the block memory of the target SCIP as an additional parameter.
6358  *
6359  * <br>
6360  * @section CHGINTERFUNC5 Changed interface methods
6361  *
6362  * - <b>Writing and Parsing constraints</b>:
6363  * <br>
6364  * <br>
6365  * - The methods SCIPwriteVarName(), SCIPwriteVarsList(), and SCIPwriteVarsLinearsum() got a new boolean parameter "type"
6366  * that indicates whether the variable type should be written or not.
6367  * - The method SCIPwriteVarsList() got additionally a new parameter "delimiter" that defines the character which is used for delimitation.
6368  * - The methods SCIPparseVarName() and SCIPparseVarsList() got a new output parameter "endptr" that is filled with the position where the parsing stopped.
6369  *
6370  * - <b>Plugin management</b>:
6371  * <br>
6372  * <br>
6373  * - SCIPincludeProp() got additional parameters to set the timing mask of the propagator and the new callbacks and parameters related to calling the propagator in presolving.
6374  * - SCIPincludeConshdlr() got additional parameters to set the variable deletion callback function and the timing mask for propagation.
6375  *
6376  * - <b>Constraint Handlers</b>:
6377  * <br>
6378  * <br>
6379  * - Method SCIPseparateRelaxedKnapsack() in knapsack constraint handler got new parameter "cutoff", which is a pointer to store whether a cutoff was found.
6380  * - Method SCIPincludeQuadconsUpgrade() of quadratic constraint handler got new parameter "active" to indicate whether the upgrading method is active by default.
6381  *
6382  * - <b>Nonlinear expressions, relaxation, and solver interface</b>:
6383  * <br>
6384  * <br>
6385  * - The methods SCIPexprtreeEvalSol(), SCIPexprtreeEvalIntLocalBounds(), and SCIPexprtreeEvalIntGlobalBounds() have been renamed to SCIPevalExprtreeSol(),
6386  * SCIPevalExprtreeLocalBounds(), and SCIPevalExprtreeGlobalBounds() and are now located in scip.h.
6387  * - Various types and functions dealing with polynomial expressions have been renamed to use the proper terms "monomial" and "polynomial".
6388  * - The methods SCIPnlpGetObjective(), SCIPnlpGetSolVals(), and SCIPnlpGetVarSolVal() have been removed, use SCIPgetNLPObjval(), SCIPvarGetNLPSol()
6389  * and SCIPcreateNLPSol() to retrieve NLP solution values instead.
6390  * - Removed methods SCIPmarkRequireNLP() and SCIPisNLPRequired(), because the NLP is now always constructed if nonlinearities are present.
6391  * - SCIPgetNLP() has been removed and NLP-methods from pub_nlp.h have been moved to scip.h, which resulted in some renamings, too.
6392  * - The functions SCIPnlpiGetSolution() and SCIPnlpiSetInitialGuess() got additional arguments to get/set dual values.
6393  * - The method SCIPgetNLPI() got a new parameter "nlpiproblem", which is a pointer to store the NLP solver interface problem.
6394  *
6395  * - <b>Others</b>:
6396  * <br>
6397  * <br>
6398  * - SCIPgetVarCopy() got a new parameter "success" that will be FALSE if method is called after problem creation stage and no hash map is given or no image for
6399  * the given variable is contained in the given hash map.
6400  * - Removed method SCIPreadSol(); call solution reading via SCIPreadProb() which calls the solution reader for .sol files.
6401  * - SCIPchgVarType() got an extra boolean parameter to store if infeasibility is recognized while upgrading a variable from continuous type to an integer type.
6402  * - SCIPdelVar() got a new parameter "deleted", which stores whether the variable was successfully marked to be deleted.
6403  * - SCIPcalcNodeselPriority() got a new parameter "branchdir", which defines the type of branching that was performed: upwards, downwards, or fixed.
6404  * - The parameters "timelimit" and "memorylimit" were removed from SCIPapplyRens().
6405  *
6406  * <br>
6407  * @section MISCELLANEOUS5 Miscellaneous
6408  *
6409  * - The result value SCIP_NEWROUND has been added, it allows a separator/constraint handler to start a new separation round
6410  * (without previous calls to other separators/conshdlrs).
6411  * - All timing flags are now defined type_timing.h.
6412  * - The variable deletion event is now a variable specific event and not global, anymore.
6413  * - The emphasis setting types now distinguish between plugin-type specific parameter settings (default, aggressive, fast, off), which are changed by
6414  * SCIPsetHeuristics/Presolving/Separating(), and global emphasis settings (default, cpsolver, easycip, feasibility, hardlp, optimality, counter),
6415  * which can be set using SCIPsetEmphasis().
6416  *
6417  * <br>
6418  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6419  */
6420 
6421  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6422  /**@page CHG6 Interface changes between SCIP 2.1 and SCIP 3.0
6423  *
6424  *
6425  * @section CHGCALLBACKS6 New and changed callbacks
6426  *
6427  * - <b>Conflict Analysis</b>:
6428  * <br>
6429  * <br>
6430  * - Added parameter "relaxedbds" to conflict handler callback method SCIP_DECL_CONFLICTEXEC(). This array contains
6431  * bounds which are sufficient to create a valid conflict
6432  *
6433  * - <b>Constraint Handler</b>:
6434  * <br>
6435  * <br>
6436  * - New optional callback methods in constraint handlers: SCIP_DECL_CONSGETVARS and SCIP_DECL_CONSGETNVARS.
6437  * These callbacks, if implemented, should return an array of all variables and the number of all variables used
6438  * by the given constraint, respectively. (This method might, e.g., be called by a presolver)
6439  * - Added a propagation timing parameter "proptiming" to SCIP_DECL_CONSPROP(), giving the current timing at which
6440  * this method is called
6441  * - Added a parameter 'restart' to the SCIP_DECL_CONSEXITSOL() callback method, indicating whether this call was
6442  * triggered by a restart.
6443  * - Added a parameter 'relaxedbd' to SCIP_DECL_CONSRESPROP() callback method. If explaining a given bound change
6444  * (index), it is sufficient to explain the reason for reaching the 'relaxedbd' value, see above
6445  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_CONSINITPRE() and
6446  * SCIP_DECL_CONSEXITPRE() callback methods. It is not allowed to determine unboundedness or infeasibility in
6447  * these callbacks, anymore.
6448  *
6449  * - <b>Message Handler</b>:
6450  * <br>
6451  * <br>
6452  * - New callback method SCIP_DECL_MESSAGEHDLRFREE() which is called when the message handler is freed.
6453  * - The old callback method SCIP_DECL_MESSAGEERROR() was replaced by the callback method SCIP_DECL_ERRORPRINTING().
6454  *
6455  * - <b>Presolving</b>:
6456  * <br>
6457  * <br>
6458  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_PRESOLINITPRE() and
6459  * SCIP_DECL_PRESOLSEXITPRE(). It is not allowed to determine unboundedness or infeasibility in these
6460  * callbacks, anymore.
6461  *
6462  * - <b>Propagator</b>:
6463  * <br>
6464  * <br>
6465  * - Added a propagation timing parameter "proptiming" to SCIP_DECL_PROPEXEC(), giving the
6466  * current timing at which this method is called.
6467  * - Added a parameter 'restart' to SCIP_DECL_PROPEXITSOL() callback method, indicating whether this call was
6468  * triggered by a restart.
6469  * - Added a parameter 'relaxedbd' to SCIP_DECL_PROPRESPROP() callback method. If explaining a given bound change
6470  * (index), it is sufficient to explain the reason for reaching the 'relaxedbd' value.
6471  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_PROPINITPRE() and
6472  * SCIP_DECL_PROPEXITPRE() callback methods. It is not allowed to determined unboundedness or infeasibility in
6473  * these callbacks, anymore.
6474  *
6475  * - <b>NLP Solver Interface</b>:
6476  * <br>
6477  * <br>
6478  * - New NLPI callback SCIP_DECL_NLPISETMESSAGEHDLR() to set message handler in NLP solver interfaces.
6479  *
6480  * <br>
6481  * @section CHGINTERFUNC6 Changed interface methods
6482  *
6483  * - <b>Plugin management</b>:
6484  * <br>
6485  * <br>
6486  * - Added basic include methods for almost all plugin types, e.g., SCIPincludeConshdlrBasic();
6487  * these methods should make the usage easier, sparing out optional callbacks and parameters.
6488  * - To extend the basic functionalities, there are setter method to add
6489  * optional callbacks. For example SCIPsetConshdlrParse(), SCIPsetPropCopy() or SCIPsetHeurInitsol().
6490  *
6491  * - <b>Constraint Handlers</b>:
6492  * <br>
6493  * <br>
6494  * - Added basic creation methods for all constraints types, e.g., SCIPcreateConsBasicLinear(); these methods should make the usage easier,
6495  * sparing out optional callbacks and parameters.
6496  * - New methods SCIPgetConsVars() and SCIPgetConsNVars() (corresponding callbacks need to be implemented, see above)
6497  *
6498  * - <b>Problem</b>:
6499  * <br>
6500  * <br>
6501  * - Added basic creation methods SCIPcreateVarBasic() and SCIPcreateProbBasic() and setter functions
6502  * - Added method SCIPisPresolveFinished() which returns whether the presolving process would be stopped after the
6503  * current presolving round, given no further reductions will be found.
6504  * - Forbid problem modifications in SCIP_STAGE_{INIT,EXIT}PRESOLVE (see pre-conditions for corresponding methods in scip.h).
6505  *
6506  * - <b>Variable usage</b>:
6507  * <br>
6508  * <br>
6509  * - Renamed SCIPvarGetBestBound() to SCIPvarGetBestBoundLocal(), SCIPvarGetWorstBound() to
6510  * SCIPvarGetWorstBoundLocal() and added new methods SCIPvarGetBestBoundGlobal() and SCIPvarGetWorstBoundGlobal().
6511  * - Method SCIPvarGetProbvarSum() is not public anymore, use SCIPgetProbvarSum() instead.
6512  * - Replaced method SCIPvarGetRootRedcost() by SCIPvarGetBestRootRedcost().
6513  *
6514  * - <b>Message Handler</b>:
6515  * <br>
6516  * <br>
6517  * - Changed the message handler system within SCIP heavily such that it is thread-safe. SCIPcreateMessagehdlr() in
6518  * scip.{c,h} was replaced by SCIPmessagehdlrCreate() in pub_message.h/message.c with a changed parameter list.
6519  * - Error messages (SCIPerrorMessage()) are not handled via the message handler anymore; per default the error
6520  * message is written to stderr.
6521  *
6522  * - <b>Separation</b>:
6523  * <br>
6524  * <br>
6525  * - New functions SCIPcreateEmptyRowCons(), SCIPcreateEmptyRowSepa(), SCIPcreateRowCons(), and SCIPcreateRowSepa()
6526  * that allow to set the originating constraint handler or separator of a row respectively; this is, for instance,
6527  * needed for statistics on the number of applied cuts. If rows are created outside a constraint handler or separator
6528  * use SCIPcreateRowUnspec() and SCIPcreateEmptyRowUnspec(). The use of SCIPcreateEmptyRow() and SCIPcreateRow() is
6529  * deprecated.
6530  * - New functions SCIProwGetOrigintype(), SCIProwGetOriginCons(), and SCIProwGetOriginSepa() to obtain the originator
6531  * that created a row.
6532  *
6533  * - <b>LP interface</b>:
6534  * <br>
6535  * <br>
6536  * - SCIPlpiCreate() got a new parameter 'messagehdlr'.
6537  * - SoPlex LPI supports setting of SCIP_LPPAR_DUALFEASTOL when using SoPlex version 1.6.0.5 and higher.
6538  *
6539  * - <b>Nonlinear expressions, relaxation, and solver interface</b>:
6540  * <br>
6541  * <br>
6542  * - Renamed SCIPmarkNonlinearitiesPresent() to SCIPenableNLP() and SCIPhasNonlinearitiesPresent() to
6543  * SCIPisNLPEnabled().
6544  * - Method SCIPexprtreeRemoveFixedVars() is not public anymore.
6545  *
6546  * - <b>Counting</b>:
6547  * <br>
6548  * <br>
6549  * - Changed the counting system within SCIP heavily. SPARSESOLUTION was renamed to SCIP_SPARSESOL. New method for
6550  * SCIP_SPARSESOL usage, SCIPsparseSolCreate(), SCIPsparseSolFree(), SCIPsparseSolGetVars(),
6551  * SCIPsparseSolGetNVars(), SCIPsparseSolGetLbs(), SCIPsparseSolGetUbs() in (pub_)misc.{c,h}.
6552  * - Renamed SCIPgetCountedSparseSolutions() to SCIPgetCountedSparseSols() in cons_countsols.{c,h}.
6553  *
6554  * <br>
6555  * @section MISCELLANEOUS6 Miscellaneous
6556  *
6557  * - Replaced SCIPparamSet*() by SCIPchg*Param() (where * is either Bool, Int, Longint, Real, Char, or String).
6558  * - New parameter in SCIPcopy() and SCIPcopyPlugins() to indicate whether the message handler from the source SCIP
6559  * should be passed to the target SCIP (only the pointer is copied and the usage counter of the message handler is
6560  * increased).
6561  * - SCIPprintCons() does not print termination symbol ";\n" anymore; if wanted, use SCIPinfoMessage() to print
6562  * ";\n" manually
6563  * - All objscip *.h file now use the default SCIP interface macros.
6564  * - The methods SCIPsortedvecInsert*() have an additional parameter which can be used to receive the position where
6565  * the new element was inserted.
6566  * - New macro SCIPdebugPrintCons() to print constraint only if SCIP_DEBUG flag is set.
6567  *
6568  * <br>
6569  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
6570  */
6571 
6572  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6573  /**@page CHG7 Interface changes between SCIP 3.0 and SCIP 3.1
6574  *
6575  *
6576  * @section CHGCALLBACKS7 New and changed callbacks
6577  *
6578  * - <b>Branching Rules</b>:
6579  * <br>
6580  * <br>
6581  * - new possible return value "SCIP_DIDNOTFIND" for SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), and
6582  * SCIP_DECL_BRANCHEXECEXT() callbacks to state that the branching rule searched, but did not find a branching.
6583  *
6584  * - <b>Domain Propagation</b>:
6585  * <br>
6586  * <br>
6587  * - added parameter "nmarkedconss" to SCIP_DECL_CONSPROP() callback which gives the number of constraints marked
6588  * for propagation (these constraints are listed first in the conss array given as parameter).
6589  *
6590  * - <b>Message Handler</b>:
6591  * <br>
6592  * <br>
6593  * - New generic messagehandler output callback method SCIP_DECL_MESSAGEOUTPUTFUNC().
6594  * - Removed parameter "msglength" from callback method SCIP_DECL_ERRORPRINTING().
6595  *
6596  * - <b>Variable Pricers</b>:
6597  * <br>
6598  * <br>
6599  * - Added parameter "stopearly" to callback method SCIP_DECL_PRICERREDCOST(). This boolean pointer should be used
6600  * by the pricer to state whether early branching should be performed, even if new variables were added in the
6601  * current pricing round.
6602  *
6603  * - <b>Primal Heuristics</b>:
6604  * <br>
6605  * <br>
6606  * - Added parameter "nodeinfeasible" to SCIP_DECL_HEUREXEC() callback which states whether the current subproblem
6607  * was already detected to be infeasible. In this case, the current LP solution might not respect local bounds,
6608  * and the heuristic must not assume that it does.
6609  *
6610  *
6611  * <br>
6612  * @section CHGINTERFUNC7 Changed interface methods
6613  *
6614  * - <b>Branching Rules</b>:
6615  * <br>
6616  * <br>
6617  * - Added parameter "nfracimplvars" to SCIPgetLPBranchCands()
6618  *
6619  * - <b>Constraint Handlers</b>:
6620  * <br>
6621  * <br>
6622  * - New method SCIPconshdlrGetStrongBranchPropTime() which returns the time used for domain propagation methods
6623  * of the constraint handler during strong branching.
6624  * - New method SCIPconsIsMarkedPropagate() which returns whether a constraint is marked for propagation.
6625  * - New methods SCIPconsAddUpgradeLocks() and SCIPconsGetNUpgradeLocks() to increase or get the number of upgrade
6626  * locks of a constraint.
6627  *
6628  * - <b>Domain Propagation</b>:
6629  * <br>
6630  * <br>
6631  * - New method SCIPpropGetStrongBranchPropTime() which returns the time spent by a domain propagator during strong
6632  * branching.
6633  * - New methods SCIPmarkConsPropagate() and SCIPunmarkConsPropagate to (un)mark a constraint for propagation.
6634  *
6635  * - <b>LP and Cutting Planes</b>:
6636  * <br>
6637  * <br>
6638  * - New methods SCIProwChgRank() and SCIProwGetRank() to change and get the rank of a cutting plane, respectively.
6639  * - Added parameter "sidetypes" to SCIPcalcMIR() to specify the specify row side type to be used.
6640  * - Added parameter "cutrank" to SCIPcalcMIR() and SCIPcalcStrongCG() which stores the rank of the returned cut.
6641  * - New method SCIPisCutApplicable() which returns whether a cut is good enough to be applied.
6642  * - Added parameter "infeasible" to SCIPaddCut() which is a pointer to store whether the cut is infeasible for the
6643  * local bounds.
6644  * - delayed cutpool
6645  * - New methods SCIPchgRowLhsDive() and SCIPchgRowRhsDive() to change left and right hand side of a row during diving.
6646  * - Added parameter "cutoff" to SCIPsolveDiveLP(), SCIPsolveProbingLP(), and SCIPsolveProbingLPWithPricing()
6647  * which is a pointer to store whether the diving/probing LP was infeasible or the objective limit was reached.
6648  *
6649  * - <b>Message Handler</b>:
6650  * <br>
6651  * <br>
6652  * - New method SCIPmessageVPrintError() to print an error message.
6653  * - Removed method SCIPmessagePrintWarningHeader().
6654  *
6655  * - <b>Parameters</b>:
6656  * <br>
6657  * <br>
6658  * - New method SCIPparamGetCharAllowedValues() to get the allowed values for a char parameter.
6659  *
6660  * - <b>Variables</b>:
6661  * <br>
6662  * <br>
6663  * - New structure to store value-based branching and inference history (see pub_history.h).
6664  * - New method SCIPvarGetValuehistory() to get the value-based history of a variable.
6665  *
6666  * - <b>Data structures</b>:
6667  * <br>
6668  * <br>
6669  * - New method SCIPgmlWriteNodeWeight() to write a node section including weight to a .gml graph file.
6670  * - New methods SCIPsparseSolGetFirstSol() and SCIPsparseSolGetNextSol() to get the first sparse solution
6671  * or iterate over the sparse solutions, respectively.
6672  * - New methods in pub_misc.h to handle a (circular) queue, e.g., SCIPqueueCreate(), SCIPqueueFree(),
6673  * SCIPqueueInsert(), ...
6674  * - New methods for hash tables: SCIPhashtableRemoveAll(), SCIPhashtableGetNElements(), SCIPhashtableGetLoad()
6675  * - New methods in pub_misc.h to handle a resource activity, e.g., SCIPactivityCreate(), SCIPactivityFree(),
6676  * SCIPactivityGetVar(), SCIPactivityGetDemand() ...
6677  * - New methods for digraphs: SCIPdigraphResize() to resize the graph and SCIPdigraphSetNodeDatas() and
6678  * SCIPdigraphGetNodeDatas() to set and get the data attached to the nodes.
6679  *
6680  * - <b>Misc</b>:
6681  * <br>
6682  * <br>
6683  * - New method SCIPcopyOrig() to copy the original problem. Analoguosly, use SCIPcopyOrigProb(), SCIPcopyOrigVars(),
6684  * and SCIPcopyOrigConss() to copy original problem data, variables, or constraints, respectively.
6685  * - New method SCIPcopyImplicationsCliques() to copy implications and cliques to a copied SCIP instance.
6686  * - New method SCIPgetParam() to get the parameter with a given name.
6687  * - New method SCIPaddOrigObjoffset() to add an offset to the objective function.
6688  * - New method SCIPgetNCheckConss() which returns the number of checked constraints.
6689  * - Added parameter "endptr" to SCIPparseVar() which stores the final string position after parsing.
6690  * - Added parameter "enablepropagation" to SCIPstartStrongbranch(), which can be used to enable strong branching
6691  * with domain propagation.
6692  * - New method SCIPgetVarStrongbranchWithPropagation() which performs strong branching with propagation on a variable.
6693  * - New method SCIPwriteCliqueGraph() to write the clique graph.
6694  * - New method SCIPdoNotMultaggr() which returns whether multi-aggregation was disabled.
6695  * - Added parameter "lazyconss" to SCIPwriteMIP() to swith writing removable rows as lazy constraints.
6696  * - New method SCIPcreateFiniteSolCopy() to create a copy of a solution with infinite fixings removed.
6697  * - New method SCIPadjustImplicitSolVals() which sets implicit integer variables to an integer value in the given
6698  * solution without deteriorating its objective value.
6699  * - New method SCIPprintDualSol() which prints the dual solution for a pure LP (works only with preprocessing disabled).
6700  * - New method SCIPgetOpenNodesData() which returns all unprocessed nodes.
6701  * - New method SCIPgetFirstLPTime() and SCIPgetNRootFirstLPIterations() to return time and iterations for the first
6702  * LP solve and SCIPgetFirstLPDualboundRoot() and SCIPgetFirstLPLowerboundRoot() to return the first root LP dual and
6703  * lower bound.
6704  * - New method SCIPgetNLimSolsFound() returning the number of feasible primal solution respecting the objective limit.
6705  * - Added parameter "endline" to SCIPprintDisplayLine() to switch printing a newline symbol at the end of the line.
6706  *
6707  * <br>
6708  * @section MISCELLANEOUS7 Miscellaneous
6709  *
6710  * - Moved LP solver interfaces to subdirectory src/lpi.
6711  *
6712  * <br>
6713  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
6714  */
6715 
6716 
6717  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6718  /**@page CHG8 Interface changes between SCIP 3.1 and SCIP 3.2
6719  *
6720  *
6721  * @section CHGCALLBACKS8 New and changed callbacks
6722  *
6723  * - <b>Branching Rules</b>:
6724  * - Added parameter "forcestrongbranch" to SCIPselectVarStrongBranching()
6725  * - Added parameter "executebranching" SCIPexecRelpscostBranching()
6726  * - Added parameter "presoltiming" to SCIPpropCumulativeCondition()
6727  *
6728  * <br>
6729  * - <b>Domain Propagation</b>:
6730  *
6731  * <br>
6732  * - <b>Message Handler</b>:
6733  *
6734  * <br>
6735  * - <b>Variable Pricers</b>:
6736  *
6737  * <br>
6738  * - <b>Primal Heuristics</b>:
6739  * - Added parameter "freesubscip" to SCIPapplyProximity()
6740  *
6741  * <br>
6742  * @section CHGINTERFUNC8 Changed interface methods
6743  *
6744  * <br>
6745  * - <b>Branching Rules</b>:
6746  *
6747  * <br>
6748  * - <b>Constraint Handlers</b>:
6749  * - Removed method SCIPconshdlrIsPresolvingDelayed()
6750  * - Removed method SCIPconshdlrWasPresolvingDelayed()
6751  * - Renamed method SCIPconshdlrGetPropTimingmask() to SCIPconshdlrGetPropTiming()
6752  *
6753  * <br>
6754  * - <b>Domain Propagation</b>:
6755  *
6756  * <br>
6757  * - <b>LP and Cutting Planes</b>:
6758  * - Added parameter "inds" to SCIPgetLPBInvRow()
6759  * - Added parameter "ninds" to SCIPgetLPBInvRow()
6760  * - Added parameter "inds" to SCIPgetLPBInvCol()
6761  * - Added parameter "ninds" to SCIPgetLPBInvCol()
6762  * - Added parameter "inds" to SCIPgetLPBInvARow()
6763  * - Added parameter "ninds" to SCIPgetLPBInvARow()
6764  * - Added parameter "inds" to SCIPgetLPBInvACol()
6765  * - Added parameter "ninds" to SCIPgetLPBInvACol()
6766  * - Added parameter "maxweight" to SCIPcalcMIR()
6767  * - Added parameter "weightinds" to SCIPcalcMIR()
6768  * - Added parameter "nweightinds" to SCIPcalcMIR()
6769  * - Added parameter "rowlensum" to SCIPcalcMIR()
6770  * - Added parameter "inds" to SCIPcalcStrongCG()
6771  * - Added parameter "ninds" to SCIPcalcStrongCG()
6772  *
6773  * <br>
6774  * - <b>Message Handler</b>:
6775  *
6776  * <br>
6777  * - <b>Parameters</b>:
6778  *
6779  * <br>
6780  * - <b>Variables</b>:
6781  * - Removed method SCIPvarGetNBinImpls()
6782  *
6783  * <br>
6784  * - <b>Data structures</b>:
6785  * - Renamed method SCIPdigraphGetNodeDatas() to SCIPdigraphGetNodeData()
6786  * - Renamed method SCIPdigraphSetNodeDatas() to SCIPdigraphSetNodeData()
6787  * - Renamed method SCIPdigraphGetSuccessorsDatas() to SCIPdigraphGetSuccessorsData()
6788  *
6789  * <br>
6790  * - <b>Misc</b>:
6791  * - Removed parameter "delaypos" from SCIPincludeConshdlr()
6792  * - Added parameter "presoltiming" to SCIPincludeConshdlr()
6793  * - Added parameter "consgetdivebdchgs" to SCIPincludeConshdlr()
6794  * - Removed parameter "delaypos" from SCIPsetConshdlrPresol()
6795  * - Added parameter "presoltiming" to SCIPsetConshdlrPresol()
6796  * - Removed parameter "delaypos" from SCIPincludePresol()
6797  * - Added parameter "presoltiming" to SCIPincludePresol()
6798  * - Removed parameter "delaypos" from SCIPincludePresolBasic()
6799  * - Added parameter "presoltiming" to SCIPincludePresolBasic()
6800  * - Removed parameter "presoldelay" from SCIPincludePresol()
6801  * - Removed parameter "presoltiming" from SCIPincludePresol()
6802  * - Removed parameter "presoldelay" from SCIPsetPropPresol()
6803  * - Removed parameter "presoltiming" from SCIPsetPropPresol()
6804  * - Added parameter "ndomredsdown" to SCIPgetVarStrongbranchWithPropagation()
6805  * - Added parameter "ndomredsup" to SCIPgetVarStrongbranchWithPropagation()
6806  * - Added parameter "isequation" to SCIPaddClique()
6807  * - Removed parameter "writeimplications" from SCIPwriteCliqueGraph()
6808  * - Removed method SCIPallocBufferSize()
6809  * - Removed method SCIPduplicateBufferSize()
6810  * - Removed method SCIPreallocBufferSize()
6811  * - Removed method SCIPfreeBufferSize()
6812  * - Removed method callback SCIPdialogExecConflictgraph()
6813  * <br>
6814  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
6815  */
6816 
6817  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6818  /**@page CHG9 Interface changes between SCIP 3.2 and SCIP 4.0
6819  *
6820  *
6821  * @section CHGCALLBACKS9 New and changed callbacks
6822  *
6823  * - <b>Constraint Handlers</b>:
6824  * - new optional callback CONSENFORELAX to enforce a relaxation solution, see \ref CONS
6825  * - added argument "infeasible" to CONSINITLP
6826  *
6827  * <br>
6828  * - <b>Concurrent SCIP</b>:
6829  * - extended interface to support concurrent solving mode
6830  *
6831  * <br>
6832  * - <b>Message Handler</b>:
6833  *
6834  * <br>
6835  * - <b>Variable Pricers</b>:
6836  *
6837  * <br>
6838  * - <b>Primal Heuristics</b>:
6839  *
6840  * <br>
6841  * @section CHGINTERFUNC9 Changed interface methods
6842  *
6843  * <br>
6844  * - <b>Copying</b>:
6845  * - added arguments "fixedvars", "fixedvals", "nfixedvars" to SCIPcopyVars()
6846  * - added arguments "fixedvars", "fixedvals", "nfixedvars" to SCIPcopyOrigVars()
6847  * - renamed argument "success" to valid in SCIPgetConsCopy()
6848  *
6849  * <br>
6850  * - <b>Parameters</b>:
6851  * - renamed method SCIPcheckBoolParam() to SCIPisBoolParamValid()
6852  * - renamed method SCIPcheckLongintParam() to SCIPisLongintParamValid()
6853  * - renamed method SCIPcheckRealParam() to SCIPisRealParamValid()
6854  * - renamed method SCIPcheckCharParam() to SCIPisCharParamValid()
6855  * - renamed method SCIPcheckStringParam() to SCIPisStringParamValid()
6856  *
6857  * <br>
6858  * - <b>Relaxators</b>:
6859  * - added argument "includeslp" to SCIPincludeRelax() and SCIPincludeRelaxBasic()
6860  *
6861  * <br>
6862  * - <b>Primal Heuristics</b>:
6863  * - introduced new type SCIP_HEURTIMING for primal heuristic timing masks
6864  * - changed type of argument "timingmask" from unsigned int to SCIP_HEURTIMING in SCIPincludeHeur(), SCIPincludeHeurBasic()
6865  * - added argument "initialseed" to SCIPcreateDiveset()
6866  * <br>
6867  * - <b>Reoptimization</b>:
6868  * - renamed function SCIPgetReopSolsRun() to SCIPgetReoptSolsRun()
6869  *
6870  * <br>
6871  * - <b>Variables</b>:
6872  * - Removed method SCIPvarGetNBinImpls()
6873  *
6874  * <br>
6875  * - <b>Conflict Analysis</b>:
6876  * - added arguments "conftype" and "iscutoffinvolved" to SCIPinitConflictAnalysis()
6877  *
6878  * <br>
6879  * - <b>Constraint Handlers</b>:
6880  * - added argument "infeasible" to SCIPinitlpCons()
6881  *
6882  * <br>
6883  * - <b>Nonlinear Relaxation</b>:
6884  * - added argument "curvature" to SCIPcreateNlRow()
6885  *
6886  * <br>
6887  * - <b>Solutions</b>:
6888  * - added argument "completely" to SCIPtrySol(), SCIPtrySolFree(), SCIPcheckSol()
6889  *
6890  * <br>
6891  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
6892  */
6893 
6894 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6895 
6896 /**@page COUNTER How to use SCIP to count/enumerate feasible solutions
6897  *
6898  * SCIP is capable of computing (count or enumerate) the number of feasible solutions of a given constraint integer
6899  * program. In case continuous variables are present, the number of feasible solutions for the projection to the
6900  * integral variables is counted/enumerated. This means, an assignment to the integer variables is counted if the
6901  * remaining problem (this is the one after fixing the integer variables w.r.t. to this assignment) is feasible.
6902  *
6903  * As a first step you have to load or create your problem in the usual way. In case of using the
6904  * interactive shell, you use the <code>read</code> command:
6905  *
6906  * <code>SCIP&gt; read &lt;file name&gt;</code>
6907  *
6908  * Afterwards you can count the number of feasible solution with the command <code>count</code>.
6909  *
6910  * <code>SCIP&gt; count</code>
6911  *
6912  * That means SCIP will count the number of solution but does not store (enumerate) them. If you are interested in that see
6913  * \ref COLLECTALLFEASEBLES.
6914  *
6915  * @note Since SCIP version 2.0.0 you do not have to worry about <tt>dual</tt> reductions anymore. These are
6916  * automatically turned off. The only thing you should switch off are restarts. These restarts can lead to a wrong
6917  * counting process. We recommend using the counting settings which can be set in the interactive shell as follows:
6918  *
6919  * <code>SCIP&gt; set emphasis counter</code>
6920  *
6921  * The SCIP callable library provides an interface method SCIPcount() which allows users to count the number of feasible
6922  * solutions to their problem. The method SCIPsetParamsCountsols(), which is also located in cons_countsols.h, loads the
6923  * predefined counting settings to ensure a safe count. The complete list of all methods that can be used for counting
6924  * via the callable library can be found in cons_countsols.h.
6925  *
6926  *
6927  * @section COUNTLIMIT Limit the number of solutions which should be counted
6928  *
6929  * It is possible to give a (soft) upper bound on the number solutions that should be counted. If this upper bound is
6930  * exceeded, SCIP will be stopped. The name of this parameter is <code>constraints/countsols/sollimit</code>. In
6931  * the interactive shell this parameter can be set as follows:
6932  *
6933  * <code>SCIP&gt; set constraints countsols sollimit 1000</code>
6934  *
6935  * In case you are using the callable library, this upper bound can be assigned by calling SCIPsetLongintParam() as follows:
6936  *
6937  * \code
6938  * SCIP_CALL( SCIPsetLongintParam( scip, "constraints/countsols/sollimit", 1000) );
6939  * \endcode
6940  *
6941  *
6942  * The reason why this upper bound is soft comes from the fact that, by default, SCIP uses a technique called unrestricted
6943  * subtree detection. Using this technique it is possible to detect several solutions at once. Therefore, it can happen
6944  * that the solution limit is exceeded before SCIP is stopped.
6945  *
6946  * @section COLLECTALLFEASEBLES Collect all feasible solution
6947  *
6948  * Per default SCIP only counts all feasible solutions. This means, these solutions are not stored. If you switch the
6949  * parameter <code>constraints/countsols/collect</code> to TRUE (the default value is FALSE) the detected solutions are
6950  * stored. Changing this parameter can be done in the interactive shell
6951  *
6952  * <code>SCIP&gt; set constraints countsols collect TRUE</code>
6953  *
6954  * as well as via the callable library
6955  *
6956  * \code
6957  * SCIP_CALL( SCIPsetBoolParam( scip, "constraints/countsols/collect", TRUE) );
6958  * \endcode
6959  *
6960  * @note The solution which are collected are stored w.r.t. the active variables. These are the variables which got not
6961  * removed during presolving.
6962  *
6963  * In case you are using the interactive shell you can write all collected solutions to a file as follows
6964  *
6965  * <code>SCIP&gt; write allsolutions &lt;file name&gt;</code>
6966  *
6967  * In that case the sparse solutions are unrolled and lifted back into the original variable space.
6968  *
6969  * The callable library provides a method which gives access to all collected sparse solutions. That is,
6970  * SCIPgetCountedSparseSolutions(). The sparse solutions you get are defined w.r.t. active variables. To get solutions
6971  * w.r.t. to the original variables. You have to do two things:
6972  *
6973  * -# unroll each sparse solution
6974  * -# lift each solution into original variable space by extending the solution by those variable which got removed
6975  * during presolving
6976  *
6977  * The get the variables which got removed during presolving, you can use the methods SCIPgetFixedVars() and
6978  * SCIPgetNFixedVars(). The method SCIPgetProbvarLinearSum() transforms given variables, scalars and constant to the
6979  * corresponding active variables, scalars and constant. Using this method for a single variable gives a representation
6980  * for that variable w.r.t. the active variables which can be used to compute the value for the considered solution (which
6981  * is defined w.r.t. active variables).
6982  *
6983  * For that complete procedure you can also check the source code of
6984  * \ref SCIP_DECL_DIALOGEXEC(SCIPdialogExecWriteAllsolutions) "SCIPdialogExecWriteAllsolutions()" cons_countsols.c which
6985  * does exactly that.
6986  *
6987  *
6988  * @section COUNTOPTIMAL Count number of optimal solutions
6989  *
6990  * If you are interested in counting the number of optimal solutions, this can be done with SCIP using the
6991  * <code>count</code> command by applying the following steps:
6992  *
6993  * -# Solve the original problem to optimality and let \f$c^*\f$ be the optimal value
6994  * -# Add the objective function as constraint with left and right hand side equal to \f$c^*\f$
6995  * -# load the adjusted problem into SCIP
6996  * -# use the predefined counting settings
6997  * -# start counting the number of feasible solutions
6998  *
6999  * If you do this, SCIP will collect all optimal solutions of the original problem.
7000  *
7001  */
7002 
7003 /**@page LICENSE License
7004  *
7005  * \verbinclude COPYING
7006  */
7007 
7008 /**@page FAQ Frequently Asked Questions (FAQ)
7009  * \htmlinclude faq.inc
7010  */
7011 
7012 /**@page INSTALL Installation information
7013  * \verbinclude INSTALL
7014  */
7015 
7016 /**@page RELEASENOTES Release notes
7017  *
7018  * A release report with an in-depth description of many of the new features is available on <a href="http://www.optimization-online.org">Optimization Online</a>.
7019  * \verbinclude SCIP-release-notes-4.0
7020  *
7021  * Please consult the <a href="http://nbn-resolving.de/urn:nbn:de:0297-zib-57675">release report</a> that explains many of the new features in detail.
7022  *
7023  * \verbinclude SCIP-release-notes-3.2.1
7024  *
7025  * \verbinclude SCIP-release-notes-3.2
7026  *
7027  * \verbinclude SCIP-release-notes-3.1
7028  *
7029  * \verbinclude SCIP-release-notes-3.0.2
7030  *
7031  * \verbinclude SCIP-release-notes-3.0.1
7032  *
7033  * \verbinclude SCIP-release-notes-3.0
7034  *
7035  * \verbinclude SCIP-release-notes-2.1.1
7036  *
7037  * \verbinclude SCIP-release-notes-2.1
7038  *
7039  * \verbinclude SCIP-release-notes-2.0.2
7040  *
7041  * \verbinclude SCIP-release-notes-2.0.1
7042  *
7043  * \verbinclude SCIP-release-notes-2.0
7044  *
7045  * \verbinclude SCIP-release-notes-1.2
7046  *
7047  * \verbinclude SCIP-release-notes-1.1
7048  */
7049 
7050 /**@page CHANGELOG CHANGELOG
7051  *
7052  * \verbinclude CHANGELOG
7053  *
7054  */
7055 
7056 
7057 
7058 /**@page PARAMETERS List of all SCIP parameters
7059  *
7060  * This page list all parameters of the current SCIP version. This list can
7061  * easily be generated by SCIP via the interactive shell using the following command:
7062  *
7063  * <code>SCIP&gt; set save &lt;file name&gt;</code>
7064  *
7065  * or via the function call:
7066  *
7067  * <code>SCIP_CALL( SCIPwriteParams(scip, &lt;file name&gt;, TRUE, FALSE) );</code>
7068  *
7069  * \verbinclude parameters.set
7070  */
7071 
7072 /**@page INTERFACES Interfaces
7073  *
7074  * There are several ways of accessing the \SCIP Optimization Suite from other software packages or programming
7075  * platforms.
7076  *
7077  *
7078  * @section FILEFORMATS File formats
7079  *
7080  * The easiest way to load a problem into SCIP is via an input file, given in a format that SCIP can parse directly,
7081  * see \ref SHELL "the tutorial on how to use the interactive shell".
7082  * \SCIP is capable of reading more than ten different file formats, including formats for nonlinear
7083  * problems and constraint programs. This gives researchers from different communities an easy, first access to the
7084  * \SCIP Optimization Suite. See also the \ref AVAILABLEFORMATS "list of readable file formats".
7085  *
7086  * @section MODELLING Modeling languages and Matlab interface
7087  *
7088  * A natural way of formulating an optimization problem is to use a modeling language. Besides ZIMPL there are several
7089  * other modeling tools with a direct interface to \SCIP. These include <a href="http://dynadec.com/">Comet</a>, a
7090  * modeling language for constraint programming, <a href="http://www.ampl.com/">AMPL</a> and <a
7091  * href="http://www.gams.com/">GAMS</a>, which are well-suited for modeling mixed-integer linear and nonlinear
7092  * optimization problems, and <a href="https://projects.coin-or.org/Cmpl">CMPL</a> for mixed-integer linear problems.
7093  * The AMPL, GAMS, and ZIMPL interfaces are included in the \SCIP distribution, the GAMS interface originated <a
7094  * href="https://projects.coin-or.org/GAMSlinks">here</a>.
7095  *
7096  * With \SCIP 3.0, a first beta version of a functional MATLAB interface has been released. It supports solving MIPs
7097  * and LPs defined by Matlab's matrix and vector types. The <a href="http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php">OPTI
7098  * project</a> by Jonathan Currie provides an external MATLAB interface for the \SCIP Optimization Suite. On top of this,
7099  * <a href="http://users.isy.liu.se/johanl/yalmip/pmwiki.php?n=Main.HomePage">YALMIP</a> by Johan L&ouml;fberg provides a
7100  * free modeling language.
7101  *
7102  *
7103  * @section CPLUSPLUS C++ wrapper classes
7104  *
7105  * Since \SCIP is written in C, its callable library can be directly accessed from C++. If a user wants to program own
7106  * plugins in C++, there are wrapper classes for all different types of plugins available in the <code>src/objscip</code>
7107  * directory of the \SCIP standard distribution. SCIP provides several examples that were written in C++, see
7108  * \ref EXAMPLES "Examples" and select an example written in C++.
7109  *
7110  *
7111  * @section OTHER Interfaces for other programming languages
7112  *
7113  * Interfaces for other programming languages are developed and maintained independently from the SCIP Optimization Suite
7114  * on <a href="https://github.com/SCIP-Interfaces">GitHub</a> in order to provide extensions and patches faster
7115  * and to collaborate on them more easily. Besides the popular interfaces for Python and Java, there is also an interface
7116  * for Julia available. Contributions to these projects are very welcome.
7117  *
7118  * There are also several third-party python interfaces to the \SCIP Optimization Suite, e.g., <a
7119  * href="http://numberjack.ucc.ie/">NUMBERJACK</a> and <a
7120  * href="http://code.google.com/p/python-zibopt/">python-zibopt</a>. <a href="http://numberjack.ucc.ie/">NUMBERJACK</a>
7121  * is a constraint programming platform implemented in python. It supports a variety of different solvers, one of them
7122  * being the \SCIP Optimization Suite. <a href="http://code.google.com/p/python-zibopt/">python-zibopt</a> was developed
7123  * by Ryan J. O'Neil and is a python extension of the \SCIP Optimization Suite. <a
7124  * href="http://picos.zib.de/">PICOS</a> is a python interface for conic optimization, provided by Guillaume Sagnol.
7125  *
7126  *
7127  */
7128 
7129  /**@defgroup PUBLICAPI Public API of SCIP
7130  * @brief methods and headers of the public C-API of \SCIP
7131  *
7132  * \PUBLICAPIDESCRIPTION
7133  *
7134  *
7135  */
7136 
7137 /**@defgroup PUBLICCOREAPI Core API
7138  * @ingroup PUBLICAPI
7139  * @brief methods and headers of the plugin-independent C-API provided by the \SCIP header file scip.h.
7140  *
7141  * This module comprises methods provided by the header file scip.h. Including this header into a user-written extension
7142  * suffices to have all plugin-independent functionality of \SCIP available. Plugin-independent
7143  * user functionality includes the
7144  *
7145  * - creation of problems that \SCIP should solve
7146  * - fine-grained access to initiate the solving process of \SCIP
7147  * - access to all sorts of solving process statistics
7148  * - commonly used data structures and algorithms
7149  * - the management of plugins
7150  * - ...
7151  *
7152  * In order facilitate the navigation through the core API of \SCIP, it is structured into different modules.
7153  */
7154 
7155 /**@defgroup TYPEDEFINITIONS Type Definitions
7156  * @ingroup PUBLICCOREAPI
7157  * @brief type definitions and callback declarations
7158  *
7159  * This page lists headers which contain type definitions of callback methods.
7160  *
7161  * All headers below include the descriptions of callback methods of
7162  * certain plugins. For more detail see the corresponding header.
7163  */
7164 
7165 /**@defgroup PublicProblemMethods Problem Creation
7166  * @ingroup PUBLICCOREAPI
7167  * @brief methods to create a problem that \SCIP should solve
7168  *
7169  * This module summarizes the main methods needed to create a problem for \SCIP, and access its most important members:
7170  * - Declaring, adding, acessing, and changing variables of the problem
7171  * - Declaring, adding, acessing, and changing constraints of the problem
7172  * - Creating, adding, acessing, changing, and checking of solutions to the problem
7173  *
7174  * @note These core methods are not sufficient to create constraints of a certain type that is provided by the default plugins of \SCIP.
7175  * An example would be the creation of a linear constraint for which the methods provided by the
7176  * \ref cons_linear.h "linear constraint handler" must be used. Such methods are provided by the default plugins of \SCIP
7177  * and can be found in the \ref PUBLICPLUGINAPI.
7178  */
7179 
7180 /**@defgroup GeneralSCIPMethods SCIP
7181  * @ingroup PublicProblemMethods
7182  * @brief methods to manipulate a SCIP object
7183  */
7184 
7185 /**@defgroup GlobalProblemMethods Global Problem
7186  * @ingroup PublicProblemMethods
7187  * @brief methods to create, read and modify a global problem together with its callbacks
7188  */
7189 
7190 /**@defgroup PublicVariableMethods Problem Variables
7191  * @ingroup PublicProblemMethods
7192  * @brief public methods for problem variables
7193  */
7194 
7195 /**@defgroup PublicConstraintMethods Problem Constraints
7196  * @ingroup PublicProblemMethods
7197  * @brief Public methods for constraints
7198  */
7199 
7200 /**@defgroup PublicSolutionMethods Primal Solution
7201  * @ingroup PublicProblemMethods
7202  * @brief methods to create and change primal solutions of \SCIP
7203  */
7204 
7205 /**@defgroup CopyMethods Problem Copies
7206  * @ingroup PublicProblemMethods
7207  * @brief methods to copy problems between a source and a target \SCIP
7208  */
7209 
7210 
7211  /**@defgroup PublicSolveMethods Solving Process
7212  * @ingroup PUBLICCOREAPI
7213  * @brief methods to control the solving process of \SCIP
7214  *
7215  * This large group of methods and modules comprises the solving process related API of \SCIP. This includes
7216  *
7217  * -# changing parameters to control the solver behavior
7218  * -# access search tree related information
7219  * -# access relaxation information
7220  * -# access various solving process statistics
7221  * -# solve auxiliary relaxations and subproblems using LP/NLP diving or probing mode
7222  */
7223 
7224 /**@defgroup PublicSolvingStatsMethods Solving Statistics
7225  * @ingroup PublicSolveMethods
7226  * @brief methods to query statistics about the solving process
7227  */
7228 
7229 /**@defgroup ParameterMethods Parameter
7230  * @ingroup PublicSolveMethods
7231  * @brief methods to create, query, and print user parameters
7232  */
7233 
7234 /**@defgroup PublicEventMethods Event Handling
7235  * @ingroup PublicSolveMethods
7236  * @brief methods to create, catch, process, and drop events during the solving process of \SCIP
7237  *
7238  * Events can only be caught during the operation on the transformed problem.
7239  * Events on variables can only be caught for transformed variables.
7240  * If you want to catch an event for an original variable, you have to get the corresponding transformed variable
7241  * with a call to SCIPgetTransformedVar() and catch the event on the transformed variable.
7242  */
7243 
7244 /**@defgroup PublicLPMethods LP Relaxation
7245  * @ingroup PublicSolveMethods
7246  * @brief methods to build and access LP relaxation information
7247  * @see methods to interact with \ref PublicColumnMethods "LP columns" and \ref PublicRowMethods "LP rows"
7248  */
7249 
7250 /**@defgroup PublicColumnMethods LP Column
7251  * @ingroup PublicLPMethods
7252  * @brief public methods for LP columns
7253  */
7254 
7255 /**@defgroup PublicRowMethods LP Row
7256  * @ingroup PublicLPMethods
7257  * @brief methods for LP rows
7258  */
7259 
7260 /**@defgroup PublicCutMethods Cuts and Cutpools
7261  * @ingroup PublicLPMethods
7262  * @brief common methods used to manipulate, generate, and strengthen cuts and to organize the cutpool
7263  */
7264 
7265 /**@defgroup PublicLPDivingMethods LP Diving
7266  * @ingroup PublicLPMethods
7267  * @brief methods to initiate and conduct LP diving
7268  */
7269 
7270 /**@defgroup PublicNLPMethods NLP Relaxation
7271  * @ingroup PublicSolveMethods
7272  * @brief methods for the nonlinear relaxation
7273  */
7274 
7275 /**@defgroup PublicExpressionTreeMethods Expression (Tree)
7276  * @ingroup PublicNLPMethods
7277  * @brief methods for expressions and expression trees
7278  */
7279 
7280 /**@defgroup PublicNLRowMethods Nonlinear Rows
7281  * @ingroup PublicNLPMethods
7282  * @brief methods for the creation and interaction with rows of the NLP relaxation
7283  */
7284 
7285 /**@defgroup PublicNLPDiveMethods NLP Diving
7286  * @ingroup PublicNLPMethods
7287  * @brief methods to initiate and conduct NLP Diving
7288  */
7289 
7290 /**@defgroup PublicBranchingMethods Branching
7291  * @ingroup PublicSolveMethods
7292  * @brief methods for branching on LP solutions, relaxation solutions, and pseudo solutions
7293  *
7294  * @see \ref PublicVariableMethods "Public Variable methods" contains some typical variable branching score functions
7295  */
7296 
7297 /**@defgroup LocalSubproblemMethods Local Subproblem
7298  * @ingroup PublicSolveMethods
7299  * @brief methods to query information about or strengthen the problem at the current local search node
7300  */
7301 
7302 /**@defgroup PublicTreeMethods Search Tree
7303  * @ingroup PublicSolveMethods
7304  * @brief methods to query search tree related information
7305  * @see \ref PublicNodeMethods "Public methods for nodes"
7306  */
7307 
7308 /**@defgroup PublicNodeMethods Nodes
7309  * @ingroup PublicTreeMethods
7310  * @brief methods for nodes of the search tree of \SCIP
7311  */
7312 
7313 /**@defgroup PublicProbingMethods Probing
7314  * @ingroup PublicSolveMethods
7315  * @brief methods to initiate and control the probing mode of \SCIP
7316  */
7317 
7318 /**@defgroup PublicReoptimizationMethods Reoptimization
7319  * @ingroup PublicSolveMethods
7320  * @brief methods for reoptimization related tasks
7321  */
7322 
7323 
7324 /** @defgroup DataStructures Data Structures
7325  * @ingroup PUBLICCOREAPI
7326  * @brief commonly used data structures
7327  *
7328  * Below you find a list of available data structures
7329  */
7330 
7331 /**@defgroup MiscellaneousMethods Miscellaneous Methods
7332  * @ingroup PUBLICCOREAPI
7333  * @brief commonly used methods from different categories
7334  *
7335  * Below you find a list of miscellaneous methods grouped by different categories
7336  */
7337 
7338 /**@defgroup PublicMemoryMethods Memory Management
7339  * @ingroup MiscellaneousMethods
7340  * @brief methods and macros to use the \SCIP memory management
7341  *
7342  * @see \ref MEMORY "Using the memory functions of SCIP" for more information
7343  */
7344 
7345 /**@defgroup PublicNonlinearMethods Nonlinear Data
7346  * @ingroup MiscellaneousMethods
7347  * @brief methods for nonlinear data
7348  */
7349 
7350 /**@defgroup PublicTimingMethods Timing
7351  * @ingroup MiscellaneousMethods
7352  * @brief methods for timing
7353  */
7354 
7355 /**@defgroup DebugSolutionMethods Debug Solution
7356  * @ingroup PUBLICCOREAPI
7357  * @brief methods to control the SCIP debug solution mechanism, see also \ref DEBUG
7358  */
7359 
7360 /**@defgroup MessageOutputMethods Messaging
7361  * @ingroup PUBLICCOREAPI
7362  * @brief message output methods
7363  */
7364 
7365 /**@defgroup PluginManagementMethods Methods for managing plugins
7366  * @ingroup PUBLICCOREAPI
7367  * @brief Methods for the inclusion and management of SCIP plugins and callback functions
7368  *
7369  */
7370 
7371 /**@defgroup PublicBranchRuleMethods Branching Rules
7372  * @ingroup PluginManagementMethods
7373  * @brief methods for branching rule plugins
7374  */
7375 
7376 /**@defgroup PublicCompressionMethods Tree Compression
7377  * @ingroup PluginManagementMethods
7378  * @brief public methods for tree compressions
7379  */
7380 
7381 /**@defgroup PublicConflictMethods Conflict Analysis
7382  * @ingroup PluginManagementMethods
7383  * @brief public methods related to conflict analysis
7384  */
7385 
7386 /**@defgroup PublicConshdlrMethods Constraint handlers
7387  * @ingroup PluginManagementMethods
7388  * @brief methods for constraint handlers
7389  */
7390 
7391 /**@defgroup PublicDialogMethods Dialogs
7392  * @ingroup PluginManagementMethods
7393  * @brief public methods for user interface dialogs
7394  */
7395 
7396 /**@defgroup PublicDisplayMethods Displays
7397  * @ingroup PluginManagementMethods
7398  * @brief methods for the inclusion and access of display plugins
7399  */
7400 
7401 /**@defgroup PublicEventHandlerMethods Event Handler
7402  * @ingroup PluginManagementMethods
7403  * @brief methods for event handlers
7404  */
7405 
7406 /**@defgroup PublicHeuristicMethods Primal Heuristics
7407  * @ingroup PluginManagementMethods
7408  * @brief methods for primal heuristic plugins
7409  */
7410 
7411 /**@defgroup PublicDivesetMethods Dive sets
7412  * @ingroup PublicSpecialHeuristicMethods
7413  * @brief methods for dive sets to control the generic diving algorithm
7414  */
7415 
7416 /**@defgroup PublicNodeSelectorMethods Node Selector
7417  * @ingroup PluginManagementMethods
7418  * @brief methods for node selector plugin management
7419  */
7420 
7421 /**@defgroup PublicPresolverMethods Presolver
7422  * @ingroup PluginManagementMethods
7423  * @brief methods for presolver plugins
7424  */
7425 
7426 /**@defgroup PublicPricerMethods Pricer
7427  * @ingroup PluginManagementMethods
7428  * @brief methods to include and access pricer plugins of \SCIP
7429  */
7430 
7431 /**@defgroup PublicPropagatorMethods Propagators
7432  * @ingroup PluginManagementMethods
7433  * @brief methods for propagator plugins
7434  */
7435 
7436 /**@defgroup PublicReaderMethods Reader
7437  * @ingroup PluginManagementMethods
7438  * @brief methods for the inclusion and access to reader plugins of \SCIP
7439  */
7440 
7441 /**@defgroup PublicRelaxatorMethods Relaxation Handlers
7442  * @ingroup PluginManagementMethods
7443  * @brief public methods for relaxation handlers
7444  */
7445 
7446 /**@defgroup PublicSeparatorMethods Separators
7447  * @ingroup PluginManagementMethods
7448  * @brief methods for separator plugins
7449  */
7450 
7451 /**@defgroup PublicConcsolverTypeMethods Concurrent Solver Types
7452  * @ingroup PluginManagementMethods
7453  * @brief methods for concurrent solver type plugins
7454  */
7455 
7456 /**@defgroup PublicNLPInterfaceMethods NLP interfaces
7457  * @ingroup PluginManagementMethods
7458  * @brief methods for the management of NLP interfaces
7459  */
7460 
7461 /**@defgroup PublicExternalCodeMethods External Codes
7462  * @ingroup PluginManagementMethods
7463  * @brief methods to access information about external codes used by \SCIP
7464  */
7465 
7466 /**@defgroup PublicParallelMethods Parallel Interface
7467  * @ingroup PUBLICCOREAPI
7468  * @brief methods to construct the parallel interface of \SCIP
7469  */
7470 
7471  /**@defgroup PUBLICPLUGINAPI Plugin API of SCIP
7472  * @ingroup PUBLICAPI
7473  * @brief core API extensions provided by the default plugins of \SCIP, includable via scipdefplugins.h.
7474  *
7475  * All default plugins of \SCIP, especially the default \ref CONSHDLRS "constraint handlers", provide
7476  * valuable extensions to the \ref PUBLICCOREAPI "core API" of \SCIP. These methods are made available
7477  * by including scipdefplugins.h to user-written extensions.
7478  *
7479  * For a better overview, this page lists all default plugin headers structured into modules based on their individual
7480  * topic.
7481  *
7482  * All of the modules listed below provide functions that are allowed to be used by user-written extensions of \SCIP.
7483  */
7484  /**@defgroup INTERNALAPI Internal API of SCIP
7485  * @brief internal API methods that should only be used by the core of \SCIP
7486  *
7487  * This page lists the header files of internal API methods. In contrast to the public API, these internal methods
7488  * should not be used by user plugins and extensions of SCIP. Please consult
7489  * \ref PUBLICCOREAPI "the Core API" and \ref PUBLICPLUGINAPI "Plugin API" for the complete API available to user plugins.
7490  *
7491  */
7492 
7493 /**@defgroup BRANCHINGRULES Branching Rules
7494  * @ingroup PUBLICPLUGINAPI
7495  * @brief methods and files provided by the default branching rules of \SCIP
7496  *
7497  * A detailed description what a branching rule does and how to add a branching rule to SCIP can be found
7498  * \ref BRANCH "here".
7499  */
7500 
7501 /**@defgroup BranchingRuleIncludes Inclusion methods
7502  * @ingroup BRANCHINGRULES
7503  * @brief methods to include specific branching rules into \SCIP
7504  *
7505  * This module contains methods to include specific branching rules into \SCIP.
7506  *
7507  * @note All default plugins can be included at once (including all branching rules) using SCIPincludeDefaultPlugins()
7508  *
7509  */
7510 
7511 /**@defgroup CONSHDLRS Constraint Handler
7512  * @ingroup PUBLICPLUGINAPI
7513  * @brief methods and files provided by the default constraint handlers of \SCIP
7514  *
7515  * A detailed description what a constraint handler does and how to add a constraint handler to SCIP can be found
7516  * \ref CONS "here".
7517  */
7518 
7519 /**@defgroup ConshdlrIncludes Inclusion methods
7520  * @ingroup CONSHDLRS
7521  * @brief methods to include specific constraint handlers into \SCIP
7522  *
7523  * This module contains methods to include specific constraint handlers into \SCIP.
7524  *
7525  * @note All default plugins can be included at once (including all default constraint handlers) using SCIPincludeDefaultPlugins()
7526  *
7527  */
7528 
7529 /**@defgroup DIALOGS Dialogs
7530  * @ingroup PUBLICPLUGINAPI
7531  * @brief methods and files provided by the default dialogs of \SCIP
7532  *
7533  * A detailed description what a dialog does and how to add a dialog to SCIP can be found
7534  * \ref DIALOG "here".
7535  */
7536 
7537 /**@defgroup DialogIncludes Inclusion methods
7538  * @ingroup DIALOGS
7539  * @brief methods to include specific dialogs into \SCIP
7540  *
7541  * This module contains methods to include specific dialogs into \SCIP.
7542  *
7543  * @note All default plugins can be included at once (including all default dialogs) using SCIPincludeDefaultPlugins()
7544  *
7545  */
7546 
7547 /**@defgroup DISPLAYS Displays
7548  * @ingroup PUBLICPLUGINAPI
7549  * @brief methods and files provided by the default displays (output columns) of \SCIP
7550  *
7551  * A detailed description what a display does and how to add a display to SCIP can be found
7552  * \ref DISP "here".
7553  *
7554  */
7555 
7556 /**@defgroup DisplayIncludes Inclusion methods
7557  * @ingroup DISPLAYS
7558  * @brief methods to include specific displays into \SCIP
7559  *
7560  * This module contains methods to include specific displays into \SCIP.
7561  *
7562  * @note All default plugins can be included at once (including all default displays) using SCIPincludeDefaultPlugins()
7563  *
7564  */
7565 
7566 /**@defgroup FILEREADERS File Readers
7567  * @ingroup PUBLICPLUGINAPI
7568  * @brief This page contains a list of all file readers which are currently available.
7569  *
7570  * @section AVAILABLEFORMATS List of readable file formats
7571  *
7572  * The \ref SHELL "interactive shell" and the callable library are capable of reading/parsing several different file
7573  * formats.
7574  *
7575  * <table>
7576  * <tr><td>\ref reader_cip.h "CIP format"</td> <td>for SCIP's constraint integer programming format</td></tr>
7577  * <tr><td>\ref reader_cnf.h "CNF format"</td> <td>DIMACS CNF (conjunctive normal form) file format used for example for SAT problems</td></tr>
7578  * <tr><td>\ref reader_diff.h "DIFF format"</td> <td>for reading a new objective function for mixed-integer programs</td></tr>
7579  * <tr><td>\ref reader_fzn.h "FZN format"</td> <td>FlatZinc is a low-level solver input language that is the target language for MiniZinc</td></tr>
7580  * <tr><td>\ref reader_gms.h "GMS format"</td> <td>for mixed-integer nonlinear programs (<a href="http://www.gams.com/docs/document.htm">GAMS</a>) [reading requires compilation with GAMS=true and a working GAMS system]</td></tr>
7581  * <tr><td>\ref reader_lp.h "LP format"</td> <td>for mixed-integer (quadratically constrained quadratic) programs (CPLEX)</td></tr>
7582  * <tr><td>\ref reader_mps.h "MPS format"</td> <td>for mixed-integer (quadratically constrained quadratic) programs</td></tr>
7583  * <tr><td>\ref reader_opb.h "OPB format"</td> <td>for pseudo-Boolean optimization instances</td></tr>
7584  * <tr><td>\ref reader_osil.h "OSiL format"</td> <td>for mixed-integer nonlinear programs</td></tr>
7585  * <tr><td>\ref reader_pip.h "PIP format"</td> <td>for <a href="http://polip.zib.de/pipformat.php">mixed-integer polynomial programming problems</a></td></tr>
7586  * <tr><td>\ref reader_sol.h "SOL format"</td> <td>for solutions; XML-format (read-only) or raw SCIP format</td></tr>
7587  * <tr><td>\ref reader_wbo.h "WBO format"</td> <td>for weighted pseudo-Boolean optimization instances</td></tr>
7588  * <tr><td>\ref reader_zpl.h "ZPL format"</td> <td>for <a href="http://zimpl.zib.de">ZIMPL</a> models, i.e., mixed-integer linear and nonlinear
7589  * programming problems [read only]</td></tr>
7590  * </table>
7591  *
7592  * @section ADDREADER How to add a file reader
7593  *
7594  * A detailed description what a file reader does and how to add a file reader to SCIP can be found
7595  * \ref READER "here".
7596  *
7597  */
7598 
7599 /**@defgroup FileReaderIncludes Inclusion methods
7600  * @ingroup FILEREADERS
7601  * @brief methods to include specific file readers into \SCIP
7602  *
7603  * This module contains methods to include specific file readers into \SCIP.
7604  *
7605  * @note All default plugins can be included at once (including all default file readers) using SCIPincludeDefaultPlugins()
7606  *
7607  */
7608 
7609 /**@defgroup PARALLEL Parallel interface methods
7610  * @ingroup INTERNALAPI
7611  * @brief headers and methods for the parallel interface of \SCIP
7612  *
7613  */
7614 
7615 /**@defgroup EXPRINTS Expression Interpreter
7616  * @ingroup PUBLICPLUGINAPI
7617  * @brief methods and files provided by the default expression interpreters of \SCIP
7618  *
7619  * A detailed description what a expression interpreter does and how to add a expression interpreter to SCIP can be found
7620  * \ref EXPRINT "here".
7621  */
7622 
7623 /**@defgroup ExprintIncludes Inclusion methods
7624  * @ingroup EXPRINTS
7625  * @brief methods to include specific expression interpreters into \SCIP
7626  *
7627  * This module contains methods to include specific expression interpreters into \SCIP.
7628  *
7629  * @note All default plugins can be included at once (including all default expression interpreters) using SCIPincludeDefaultPlugins()
7630  *
7631  */
7632 
7633 /**@defgroup FileReaderIncludes Inclusion methods
7634  * @ingroup FILEREADERS
7635  * @brief methods to include specific file readers into \SCIP
7636  *
7637  * This module contains methods to include specific file readers into \SCIP.
7638  *
7639  * @note All default plugins can be included at once (including all default file readers) using SCIPincludeDefaultPlugins()
7640  *
7641  */
7642 
7643 /**@defgroup LPIS LP Solver Interfaces
7644  * @ingroup PUBLICPLUGINLPI
7645  * @brief methods and files provided by the default LP solver interfaces of \SCIP
7646  */
7647 
7648 /**@defgroup NODESELECTORS Node Selectors
7649  * @ingroup PUBLICPLUGINAPI
7650  * @brief methods and files provided by the default node selectors of \SCIP
7651  *
7652  * A detailed description what a node selector does and how to add a node selector to SCIP can be found
7653  * \ref NODESEL "here".
7654  */
7655 
7656 /**@defgroup NodeSelectorIncludes Inclusion methods
7657  * @ingroup NODESELECTORS
7658  * @brief methods to include specific node selectors into \SCIP
7659  *
7660  * This module contains methods to include specific node selectors into \SCIP.
7661  *
7662  * @note All default plugins can be included at once (including all default node selectors) using SCIPincludeDefaultPlugins()
7663  *
7664  */
7665 
7666 /**@defgroup NLPIS NLP Solver Interfaces
7667  * @ingroup PUBLICPLUGINAPI
7668  * @brief methods and files provided by the default NLP solver interfaces of \SCIP
7669  *
7670  * A detailed description what a NLP solver interface does and how to add a NLP solver interface to SCIP can be found
7671  * \ref NLPI "here".
7672  */
7673 
7674 /**@defgroup NLPIIncludes Inclusion methods
7675  * @ingroup NLPIS
7676  * @brief methods to include specific NLP solver interfaces into \SCIP
7677  *
7678  * This module contains methods to include specific NLP solver interfaces into \SCIP.
7679  *
7680  * @note All default plugins can be included at once (including all default NLP solver interfaces) using SCIPincludeDefaultPlugins()
7681  *
7682  */
7683 
7684 /**@defgroup PRESOLVERS Presolvers
7685  * @ingroup PUBLICPLUGINAPI
7686  * @brief methods and files provided by the default presolvers of \SCIP
7687  *
7688  * A detailed description what a presolver does and how to add a presolver to SCIP can be found
7689  * \ref PRESOL "here".
7690  */
7691 
7692 /**@defgroup PresolverIncludes Inclusion methods
7693  * @ingroup PRESOLVERS
7694  * @brief methods to include specific presolvers into \SCIP
7695  *
7696  * This module contains methods to include specific presolvers into \SCIP.
7697  *
7698  * @note All default plugins can be included at once (including all default presolvers) using SCIPincludeDefaultPlugins()
7699  *
7700  */
7701 
7702 /**@defgroup PRICERS Pricers
7703  * @ingroup PUBLICPLUGINAPI
7704  * @brief methods and files provided by the default pricers of \SCIP
7705  *
7706  * Per default there exist no variable pricer. A detailed description what a variable pricer does and how to add a
7707  * variable pricer to SCIP can be found \ref PRICER "here".
7708  */
7709 
7710 /**@defgroup PricerIncludes Inclusion methods
7711 * @ingroup PUBLICPLUGINAPI
7712 * @brief methods to include specific pricers into \SCIP
7713 *
7714 * This module contains methods to include specific pricers into \SCIP.
7715 *
7716 * @note All default plugins can be included at once using SCIPincludeDefaultPlugins(). There exists no pricer per default.
7717 * In order to see examples of variable pricers, please consult the \ref EXAMPLES "Coding Examples" of \SCIP.
7718 *
7719 */
7720 
7721 /**@defgroup PRIMALHEURISTICS Primal Heuristics
7722  * @ingroup PUBLICPLUGINAPI
7723  * @brief methods and files provided by the default primal heuristics of \SCIP
7724  *
7725  * A detailed description what a primal heuristic does and how to add a primal heuristic to SCIP can be found
7726  * \ref HEUR "here".
7727  */
7728 
7729 /**@defgroup PrimalHeuristicIncludes Inclusion methods
7730  * @ingroup PRIMALHEURISTICS
7731  * @brief methods to include specific primal heuristics into \SCIP
7732  *
7733  * This module contains methods to include specific primal heuristics into \SCIP.
7734  *
7735  * @note All default plugins can be included at once (including all default primal heuristics) using SCIPincludeDefaultPlugins()
7736  *
7737  */
7738 
7739 /**@defgroup PROPAGATORS Propagators
7740  * @ingroup PUBLICPLUGINAPI
7741  * @brief methods and files provided by the default propagators of \SCIP
7742  *
7743  * A detailed description what a propagator does and how to add a propagator to SCIP can be found
7744  * \ref PROP "here".
7745  */
7746 
7747 /**@defgroup PropagatorIncludes Inclusion methods
7748  * @ingroup PROPAGATORS
7749  * @brief methods to include specific propagators into \SCIP
7750  *
7751  * This module contains methods to include specific propagators into \SCIP.
7752  *
7753  * @note All default plugins can be included at once (including all default propagators) using SCIPincludeDefaultPlugins()
7754  *
7755  */
7756 
7757 /**@defgroup RELAXATORS Relaxation Handlers
7758  * @ingroup PUBLICPLUGINAPI
7759  * @brief methods and files provided by the default relaxation handlers of \SCIP
7760  *
7761  * A detailed description what a relaxation handler does and how to add a relaxation handler to SCIP can be found
7762  * \ref RELAX "here". Note that the linear programming relaxation is not implemented via the relaxation handler plugin.
7763  * Per default no relaxation handler exists in SCIP. However, there are two relaxation handlers in the
7764  * \ref RELAXATOR_MAIN "Relaxator example".
7765  */
7766 
7767 /**@defgroup SEPARATORS Separators
7768  * @ingroup PUBLICPLUGINAPI
7769  * @brief methods and files provided by the default separators of \SCIP
7770  *
7771  * A detailed description what a separator does and how to add a separator to SCIP can be found
7772  * \ref SEPA "here".
7773  */
7774 
7775 /**@defgroup SeparatorIncludes Inclusion methods
7776  * @ingroup SEPARATORS
7777  * @brief methods to include specific separators into \SCIP
7778  *
7779  * This module contains methods to include specific separators into \SCIP.
7780  *
7781  * @note All default plugins can be included at once (including all default separators) using SCIPincludeDefaultPlugins()
7782  *
7783  */
7784 
7785 /**@defgroup PublicToleranceMethods Computations With Tolerances
7786  * @ingroup NumericalMethods
7787  * @brief methods used by the majority of operations involving floating-point computations in \SCIP
7788  *
7789  * - query the numerical tolerances of \SCIP, as well as special values such as infinity.
7790  * - change tolerances inside relaxations
7791  * - epsilon-comparison methods for floating point numbers
7792  */