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-2018 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 Tristan Gally
21  * @author Gerald Gamrath
22  * @author Stefan Heinz
23  * @author Gregor Hendel
24  * @author Mathias Kinder
25  * @author Marc Pfetsch
26  * @author Stefan Vigerske
27  * @author Robert Waniek
28  * @author Kati Wolter
29  * @author Michael Winkler
30  */
31 
32 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
33 
34 /**@mainpage Overview
35  *
36  *
37  * @section WHATISSCIP What is SCIP?
38  *
39  * \SCIP is a framework to solve constraint integer programs (CIPs) and mixed-integer nonlinear programs. In particular,
40  *
41  * - \SCIP incorporates a mixed-integer programming (MIP) solver as well as
42  * - an LP based mixed-integer nonlinear programming (MINLP) solver, and
43  * - is a framework for branch-and-cut-and-price.
44  *
45  * \SCIP is developed together with
46  * <a href="http://www3.mathematik.tu-darmstadt.de/ags/optimierung/research/discrete-optimization.html">TU Darmstadt</a> and
47  * <a href="http://www.am.uni-erlangen.de/wima/">University of Erlangen-N&uuml;rnberg (Chair of EDOM)</a>
48  * and has more than 500,000 lines of C code.
49  *
50  * See the web site of <a href="http://scip.zib.de">\SCIP</a> for more information about licensing and to download \SCIP.
51  *
52  * @section GETTINGSTARTED Getting started
53  *
54  * - \ref WHATPROBLEMS "What types of optimization problems does SCIP solve?"
55  * - \ref CMAKE "Installation information using CMake"
56  * - \ref MAKE "Installation information using Makefiles"
57  * - \ref LICENSE "License"
58  *
59  * - \ref SHELL "Tutorial: the interactive shell"
60  * - \ref FILEREADERS "Readable file formats"
61  * - \ref START "How to start a new project"
62  * - \ref EXAMPLES "Examples"
63  * - \ref APPLICATIONS "Extensions of SCIP for specific applications"
64  * - \ref LPI "Available implementations of the LP solver interface"
65  * - \ref NLPISOLVERS "Available implementations of the NLP solver interface"
66  *
67  * @section FURTHERINFORMATION References
68  *
69  * - \ref PUBLICAPI "List of callable functions"
70  * - \ref PARAMETERS "List of all SCIP parameters"
71  *
72  * - \ref DOC "How to search the documentation for interface methods"
73  * - \ref FAQ "Frequently asked questions (FAQ)"
74  *
75  *
76  * @section PROGRAMMING Programming with SCIP
77  *
78  * @subsection CODINGBASICS Coding basics for SCIP
79  *
80  * - \ref CODE "Coding style guidelines"
81  * - \ref OBJ "Creating, capturing, releasing, and adding data objects"
82  * - \ref MEMORY "Using the memory functions of SCIP"
83  * - \ref DEBUG "Debugging"
84  *
85  * @subsection HOWTOADD How to add ...
86  *
87  * Below you find for most plugin types a detailed description of how to implement and add them to \SCIP.
88  *
89  * - \ref CONS "Constraint handlers"
90  * - \ref PRICER "Variable pricers"
91  * - \ref PRESOL "Presolvers"
92  * - \ref SEPA "Separators"
93  * - \ref PROP "Propagators"
94  * - \ref BRANCH "Branching rules"
95  * - \ref NODESEL "Node selectors"
96  * - \ref HEUR "Primal heuristics"
97  * + \ref DIVINGHEUR "Diving heuristics"
98  * - \ref RELAX "Relaxation handlers"
99  * - \ref READER "File readers"
100  * - \ref DIALOG "Dialogs"
101  * - \ref DISP "Display columns"
102  * - \ref EVENT "Event handler"
103  * - \ref NLPI "Interface to NLP solvers"
104  * - \ref EXPRINT "Interfaces to expression interpreters"
105  * - \ref PARAM "additional user parameters"
106  * - \ref TABLE "Statistics tables"
107  *
108  * @subsection HOWTOUSESECTION How to use ...
109  *
110  * - \ref CONF "Conflict analysis"
111  * - \ref TEST "How to run automated tests with SCIP"
112  * - \ref COUNTER "How to use SCIP to count feasible solutions"
113  * - \ref REOPT "How to use reoptimization in SCIP"
114  * - \ref CONCSCIP "How to use the concurrent solving mode in SCIP"
115  *
116  *
117  * @section FURTHERINFO Further information
118  *
119  * @subsection CHG Changes between different versions of SCIP
120  * - \ref CHANGELOG "Change log"
121  * - \ref RELEASENOTES "Release notes"
122  * - \ref CHG10 "Interface changes between version 4.0 and 5.0"
123  * - \ref CHG9 "Interface changes between version 3.2 and 4.0"
124  * - \ref CHG8 "Interface changes between version 3.1 and 3.2"
125  * - \ref CHG7 "Interface changes between version 3.0 and 3.1"
126  * - \ref CHG6 "Interface changes between version 2.1 and 3.0"
127  * - \ref CHG5 "Interface changes between version 2.0 and 2.1"
128  * - \ref CHG4 "Interface changes between version 1.2 and 2.0"
129  * - \ref CHG3 "Interface changes between version 1.1 and 1.2"
130  * - \ref CHG2 "Interface changes between version 1.0 and 1.1"
131  * - \ref CHG1 "Interface changes between version 0.9 and 1.0"
132  *
133  * @subsection AUTHORS SCIP Authors
134  * - <a class="el" href="http://scip.zib.de/#developers">Developers</a>
135  *
136  * @version 5.0.1
137  *
138  * \image html scippy.png
139  *
140  */
141 
142 /** @page EXAMPLES Example projects
143  *
144  * \SCIP contains several examples that demonstrate its usage. They are contained in the &quot;examples&quot; directory
145  * in the source code distribution.
146  *
147  * @section BRANCHANDPRICE Branch-and-price
148  *
149  * <table>
150  * <tr>
151  * <td>
152  * \ref BINPACKING_MAIN "Binpacking"
153  * </td>
154  * <td>
155  * An implementation of the column generation approach for the binpacking problem. It includes a customized reader,
156  * Ryan/Foster branching rule, (global) problem data, variable data, and constraint handler.
157  * </td>
158  * </tr>
159  * <tr>
160  * <td>
161  * <a href="http://scip.zib.de/doc/examples/VRP"><b>VRP</b></a>
162  * </td>
163  * <td>
164  * A solver for a simple capacity-constrained vehicle routing problem, which is based on pricing tours via a dynamic
165  * programming algorithm.
166  * </td>
167  * </tr>
168  * </table>
169  *
170  * @section BRANCHANDCUT Branch-and-cut
171  *
172  * <table>
173  * <tr>
174  * <td>
175  * \ref LOP_MAIN "Linear Ordering"
176  * </td>
177  * <td>
178  * An example for implementing a constraint handler.
179  * </td>
180  * </tr>
181  * <tr>
182  * <td>
183  * \ref TSP_MAIN "The TSP example"
184  * </td>
185  * <td>
186  * A short implementations of a constraint handler, two easy combinatorial heuristics, a file reader, etc. which
187  * demonstrate the usage of \SCIP as a branch-and-cut-framework for solving traveling salesman problem instances.
188  * </td>
189  * </tr>
190  * </table>
191  *
192  * @section CALLABLELIBRARY Callable library
193  *
194  * <table>
195  * <tr>
196  * <td>
197  * \ref CALLABLELIBRARY_MAIN "Callable Library Example"
198  * </td>
199  * <td>
200  * An example showing how to setup constraints (esp. nonlinear ones) when using \SCIP as callable library.
201  * </td>
202  * </tr>
203  * <tr>
204  * <td>
205  * \ref MIPSOLVER_MAIN "MIP solver"
206  * </td>
207  * <td>
208  * A minimal implementation for using \SCIP included into another source code
209  * </td>
210  * </tr>
211  * <tr>
212  * <td>
213  * <a href="http://scip.zib.de/download/files/scip_intro_01.pdf"><b>Queens</b></a>
214  * </td>
215  * <td>
216  * An example showing the use of \SCIP as callable library.
217  * </td>
218  * </tr>
219  * </table>
220  *
221  *
222  * @section OTHERPLUGINS Other plugins
223  *
224  * <table>
225  * <tr>
226  * <td>
227  * \ref EVENTHDLR_MAIN "Event handler"
228  * </td>
229  * <td>
230  * A small example illustrating the use of an event handler.
231  * </td>
232  * </tr>
233  * <tr>
234  * <td>
235  * \ref GMI_MAIN "Gomory mixed integer cut example"
236  * </td>
237  * <td>
238  * An example about Gomory mixed-integer cuts.
239  * </td>
240  * </tr>
241  * <tr>
242  * <td>
243  * \ref RELAXATOR_MAIN "Relaxator example"
244  * </td>
245  * <td>
246  * An example about using custom relaxators.
247  * </td>
248  * </tr>
249  * </table>
250  *
251  */
252 
253 /** @page APPLICATIONS Application projects
254  *
255  * There are several extensions of \SCIP for particular applications included in the release. They are contained in the &quot;applications&quot; directory
256  * in the source code distribution.
257  *
258  * <table>
259  * <tr>
260  * <td>
261  * <a href="http://scip.zib.de/doc/applications/Coloring"><b>Coloring</b></a>
262  * </td>
263  * <td>
264  * An implementation of the column generation approach for graph coloring of Mehrotra and Trick.
265  * </td>
266  * </tr>
267  * <tr>
268  * <td>
269  * <a href="http://scip.zib.de/doc/applications/MinIISC"><b>MinIISC</b></a>
270  * </td>
271  * <td>
272  * A solver that computes irreducible infeasible subsystems using Benders decomposition
273  * </td>
274  * </tr>
275  * <tr>
276  * <td>
277  * <a href="http://scip.zib.de/doc/applications/Scheduler"><b>Scheduler</b></a>
278  * </td>
279  * <td>
280  * A solver for scheduling problems.
281  * </td>
282  * </tr>
283  * <tr>
284  * <td>
285  * <a href="http://scip.zib.de/doc/applications/STP"><b>Steiner Tree Problem</b></a>
286  * </td>
287  * <td>
288  * A solver for Steiner Tree Problems in graphs, based on a branch-and-cut approach.
289  * </td>
290  * </tr>
291  * <tr>
292  * <td>
293  * <a href="http://scip.zib.de/doc/applications/PolySCIP"><b>PolySCIP</b></a>
294  * </td>
295  * <td>
296  * A solver for multi-objective optimization problems.
297  * </td>
298  * </tr>
299  * <tr>
300  * <td>
301  * <a href="http://scip.zib.de/doc/applications/Cycleclustering"><b>Cycle Clustering</b></a>
302  * </td>
303  * <td>
304  * Branch-and-cut implementation of a graph partitioning problem used for Markov state models.
305  * </td>
306  * </tr>
307  * </table>
308  *
309  */
310 
311 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
312 
313 /** @page LPI Available implementations of the LP solver interface
314  *
315  * SCIP comes with implementations of the LP solver interface @ref lpi.h for many LP solvers:
316  *
317  * LPI name | LP solver
318  * ---------|----------
319  * `spx` | SoPlex
320  * `cpx` | IBM ILOG CPLEX
321  * `xprs` | FICO XPress
322  * `grb` | Gurobi (interface is in beta stage, version at least 7.0.2 required)
323  * `clp` | CoinOR CLP (interface currently sometimes produces wrong results)
324  * `glop` | Google Glop (experimental, LPI is contained in Glop package/Google OR tools)
325  * `msk` | Mosek (experimental)
326  * `qsopt` | QSopt (experimental)
327  * `none` | disables LP solving entirely (not recommended; only for technical reasons)
328  *
329  * There are two different implementations for SoPlex. The default one (`spx`) uses an updated interface that is provided
330  * by SoPlex itself (since version 2.0), resulting in a slimmer LPI that is similiar to those for CPLEX or XPRESS.
331  * The other one - `spx1` - is the older LPI that directly uses the internal simplex solver of SoPlex and
332  * therefore needs to duplicate some features in the LPI that are already available in SoPlex itself. It lacks some
333  * features like persistent scaling which are only available in the modern implementation.
334  * Upcoming features may not be
335  * supported. Old compilers might have difficulties with the new implementation because some C++11 features are required
336  * that may not be supported.
337  *
338  * To use the old implementation, set the Makefile option `LPS=spx1` or configure your CMake build with `LEGACY=ON`.
339  *
340  */
341 
342 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
343 
344 /** @page NLPISOLVERS Available implementations of the NLP solver interface
345  *
346  * SCIP implements the NLP solver interface for the solvers <a href="https://projects.coin-or.org/Ipopt">IPOPT</a>, <a
347  * href="https://worhp.de/">WORHP</a>, and <a href=" http://www.mcs.anl.gov/~leyffer/solvers.html">FilterSQP</a>. In
348  * contrast to the implementations of the LP solver interface, SCIP can be compiled with multiple NLP solvers and selects
349  * the solver with the highest priority at the beginning of the solving process.
350  * Currently, the priorities are, in descending order: Ipopt, WORHP/IP, FilterSQP, WORHP/SQP.
351  *
352  * If more than one solver is available, then it is possible to solve all NLPs during the solving process with all
353  * available NLP solvers by setting the parameter `nlpi/all/priority` to the highest value.
354  * In this case, SCIP uses the solution from a solver that provides the best objective value. Other possible use
355  * cases for the availability of multiple solvers have not been implemented yet.
356  *
357  * In the @ref MAKE "GNU make" based build system, building the implementations of the interface for FilterSQP, IPOPT, and
358  * WORHP can be enabled by specifying `FILTERSQP=true`, `IPOPT=true`, and `WORHP=true`, respectively, as argument to the
359  * `make` call.
360  * In the @ref CMAKE "CMAKE" based build system, building the implementation of the interface for IPOPT and WORHP can be
361  * enabled by specifying `IPOPT=on` and `WORHP=on`, respectively, as argument to the `cmake` call.
362  *
363  * @section NLPISOLVERS_IPOPT IPOPT
364  *
365  * <b>IPOPT</b> implements a primal-dual interior point method and uses line searches based on filter methods. It has
366  * been developed by Andreas W&auml;chter and Carl Laird and is available under the Eclipse Public License on <a
367  * href="https://www.coin-or.org/">COIN-OR</a>.
368  *
369  * @section NLPISOLVERS_WORHP WORHP
370  *
371  * <b>WORHP</b> implements a sequential quadratic programming method and a penalty-interior point algorithm. It is
372  * developed at the <a href="http://www.uni-bremen.de/en.html">University of Bremen</a> and is free for academic
373  * purposes.
374  *
375  * @section NLPISOLVERS_FILTERSQP FilterSQP
376  *
377  * <b>FilterSQP</b> implements a sequential quadratic programming method. It has been developed by Roger Fletcher
378  * and Sven Leyffer. It is not publicly available, but may be obtained from Sven Leyffer on request.
379  */
380 
381 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
382 
383 /**@page WHATPROBLEMS What types of optimization problems does SCIP solve?
384  *
385  * As a stand-alone solver, \SCIP can solve mixed-integer nonlinear programs \b (MINLPs), to which it applies
386  * an LP based spatial branch-and-cut algorithm. This method is guaranteed to solve bounded MINLPs
387  * within a given numerical tolerance in a finite amount of time. In particular, \SCIP is a stand-alone
388  * solver for mixed-integer linear programs \b (MIPs).
389  *
390  * As a framework, \SCIP also provides the tools to solve constraint optimization problems defined over
391  * integer and continuous variables. Therefore, the design of \SCIP
392  * supports the easy integration of constraints of arbitrary type into the solver.
393  * More precisely, \SCIP can handle the class of constraint integer programs \b (CIPs), which are constraint optimization problems
394  * that become linear programs (LPs) after the integer variables are fixed.
395  *
396  * @section PROBLEMCLASSES Some important subclasses of CIP and MINLP
397  *
398  * The following table gives a non-exhaustive list of common types of mathematical optimization problems that can be solved
399  * through \SCIP itself or one of its extensions. Some recommendations are given on how to compile \SCIP for a
400  * certain problem class and how make best use of \SCIP. The file format column gives some common file
401  * formats for every class. Note that since some of the mentioned problem classes are more general than others (like
402  * every LP is a MIP is an MINLP), the formats for the superclass should always work just as fine, although they
403  * may be less common for the class at hand.
404  *
405  * Please see also the pages on \ref EXAMPLES "SCIP Examples" and \ref APPLICATIONS "SCIP Applications" to learn more on how
406  * to extend \SCIP for a particular MIP, MINLP, or CIP application.
407  * All examples and applications use the C or C++ APIs of \SCIP. Please have a look at \ref INTERFACES "SCIP interfaces"
408  * to see how to use \SCIP from within other programming languages.
409  *
410  * <table class="types">
411  * <caption align="top">Some problem classes that can be solved by \SCIP</caption>
412  * <tr style="border-bottom: medium solid black;">
413  * <th>Problem class</th>
414  * <th>Mathematical problem description</th>
415  * <th>Supported file formats</th>
416  * <th>Recommendations</th>
417  * </tr>
418  * <tr>
419  * <td>Mixed-integer linear program (MIP)</td>
420  * <td>\f{align*}{
421  * \text{min} \quad& c^T x \\
422  * \text{s.t.} \quad& Ax \geq b \\
423  * &l_{j} \leq x_{j} \leq u_{j} && \forall j \in \mathcal{N} \\
424  * &x_{j} \in \mathbb{Z} && \forall j \in \mathcal{I}
425  * \f}
426  * </td>
427  * <td>
428  * <ul>
429  * <li>\ref reader_cip.h "CIP"</li>
430  * <li>\ref reader_mps.h "MPS"</li>
431  * <li>\ref reader_lp.h "LP"</li>
432  * <li>\ref reader_zpl.h "ZPL"</li>
433  * </ul>
434  * </td>
435  * <td>
436  * <ul>
437  * <li>\SCIP requires an external LP solver to solve LP relaxations, which needs to be specified
438  * at compilation time. By default, it uses SoPlex (<code>LPS=spx</code>). See \ref MAKE for a
439  * list of available LP solver interfaces and how to use them inside \SCIP.</li>
440  * <li>Compile with Zimpl support (<code>ZIMPL=true</code>) to read in Zimpl models directly.</li>
441  * <li>\SCIP comes with many different parameters. Use the provided emphasis settings (see \ref SHELL "this tutorial")
442  * to change many parameters at once and boost the performance.</li>
443  * <li>Test instances are available at <code>check/instances/MIP/</code>.</li>
444  * </ul>
445  * </td>
446  * </tr>
447  * <tr>
448  * <td>Mixed-integer nonlinear program (MINLP)</td>
449  * <td>\f{align*}{
450  * \text{min} \quad& f(x) \\
451  * \text{s.t.} \quad& g_{i}(x) \leq 0 && \forall i \in \mathcal{M} \\
452  * &l_{j} \leq x_{j} \leq u_{j} && \forall j \in \mathcal{N} \\
453  * &x_{j} \in \mathbb{Z} && \forall j \in \mathcal{I}
454  * \f}
455  * </td>
456  * <td>
457  * <ul>
458  * <li>\ref reader_cip.h "CIP"</li>
459  * <li>\ref reader_gms.h "GMS"</li>
460  * <li>\ref reader_osil.h "OSiL"</li>
461  * <li>\ref reader_pip.h "PIP"</li>
462  * <li>\ref reader_zpl.h "ZPL"</li>
463  * <li>For MIQCPS:
464  * <ul>
465  * <li>\ref reader_lp.h "LP"</li>
466  * <li>\ref reader_mps.h "MPS"</li>
467  * </ul>
468  * </li>
469  * </ul>
470  * </td>
471  * <td>
472  * <ul>
473  * <li>Compile with <code>IPOPT=true</code> for better performance.</li>
474  * <li>Compile with <code>WORHP=true</code> for better performance.</li>
475  * <li>Compile with <code>FILTERSQP=true</code> for better performance.</li>
476  * <li>Compile with <code>GAMS=true</code> to read gms-files.</li>
477  * <li>See <a href="FAQ\FILEEXT#minlptypes"> Which kind of MINLPs are supported by \SCIP? </a> in the FAQ.</li>
478  * <li>There is an interface for the modelling language AMPL, see \ref INTERFACES.</li>
479  * <li>Mixed-integer quadratically constrained programs (MIQCP) can also be formulated in the file formats
480  * <ul>
481  * <li>\ref reader_lp.h "LP", and</li>
482  * <li>\ref reader_mps.h "MPS".</li>
483  * </ul>
484  * </li>
485  * <li>Test instances are available at <code>check/instances/MINLP/</code>.</li>
486  * </ul>
487  * </td>
488  * </td>
489  * <tr>
490  * <td>Constraint Integer Program (CIP)</td>
491  * <td>\f{align*}{
492  * \text{min} \quad& c^T x + d^T y \\
493  * \text{s.t.} \quad& C_i(x,y) = \text{true} && \forall i \in \mathcal{M} \\
494  * & x \in \mathbb{Z}^{p}, y \in \mathbb{R}^{n - p}
495  * \f}
496  * 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.
497  * </td>
498  * <td>
499  * <ul>
500  * <li>\ref reader_cip.h "CIP"</li>
501  * <li>\ref reader_fzn.h "FlatZinc"</li>
502  * </ul>
503  * </td>
504  * <td>
505  * <ul>
506  * <li>\SCIP supports a limited number of general constraints; see \ref CONS "How to add constraint handlers"
507  * to learn how to extend the \SCIP framework to a given CIP.</li>
508  * <li>Use the emphasis setting <code>set emphasis cpsolver</code> to completely disable LP solves and
509  * use depth-first search with periodic restarts, see also
510  * <a href="FAQ\FILEEXT#scipascpsolver"> Can I use \SCIP as a pure CP solver? </a> in the FAQ.</li>
511  * <li>Test instances are available at <code>check/instances/CP</code>.</li>
512  * </ul>
513  * </td>
514  * <tr>
515  * <td>Convex MINLP</td>
516  * <td>Like MINLP, \f$f\f$ and all \f$g_i\f$ are \b convex.</td>
517  * <td>see MINLP formats</td>
518  * <td>
519  * <ul>
520  * <li>See the comments for MINLP.</li>
521  * <li>In addition, use <code>constraints/nonlinear/assumeconvex = TRUE</code> to inform \SCIP about a convex
522  * problem in cases where the automated detection is not strong enough.</li>
523  * <li>Test instances are available at <code>check/instances/MINLP/circle.cip</code>.</li>
524  * </ul>
525  * </td>
526  * </td>
527  * <tr>
528  * <td>Linear program (LP)</td>
529  * <td>\f{align*}{
530  * \text{min} \quad& c^T x \\
531  * \text{s.t.} \quad& Ax \geq b \\
532  * & x_{j} \geq 0 && \forall j \in \mathcal{N}
533  * \f}
534  * </td>
535  * <td>see MIP formats</td>
536  * <td>See <a href="FAQ\FILEEXT#scipaslpsolver">Can I use \SCIP as a pure LP solver</a> in the FAQ.</td>
537  * </td>
538  * <tr>
539  * <td>Pseudoboolean optimization</td>
540  * <td>\f{align*}{
541  * \text{min} \quad& c^T x \\
542  * \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} \\
543  * &x_{j} \in \{0,1\} && \forall j \in \mathcal{N}
544  * \f}
545  * </td>
546  * <td>
547  * <ul>
548  * <li>\ref reader_wbo.h "WBO"</li>
549  * <li>\ref reader_opb.h "OPB"</li>
550  * </ul>
551  * </td>
552  * <td>
553  * <ul>
554  * <li>Test instances are available at <code>check/instances/PseudoBoolean/</code>.</li>
555  * </ul>
556  * </td>
557  * </tr>
558  * <tr>
559  * <td>Satisfiability (SAT) and variants</td>
560  * <td>\f{align*}{
561  * \text{min} \quad& 0 \\
562  * \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}\\
563  * &x_{j} \in \{\text{false},\text{true}\} && \forall j \in \mathcal{N}
564  * \f}
565  * </td>
566  * <td>
567  * <ul>
568  * <li>\ref reader_cnf.h "CNF"</li>
569  * </ul>
570  * </td>
571  * <td>
572  * <ul>
573  * <li>Use the emphasis setting <code>set emphasis cpsolver</code> to completely disable LP solves and
574  * use depth-first search with periodic restarts, see also
575  * <a href="FAQ\FILEEXT#scipascpsolver"> Can I use \SCIP as a pure CP/SAT solver? </a> in the FAQ.</li>
576  * <li>Test instances are available at <code>check/instances/SAT/</code>.</li>
577  * </ul>
578  * </td>
579  * </tr>
580  * <tr>
581  * <td>Multicriteria optimization</td>
582  * <td>\f{align*}{
583  * \text{min} \quad &(c_1^T x,\ldots,c_k^T x) \\
584  * \text{s.t. } \quad& Ax \geq b \\
585  * &x \in \mathbb{K}^n
586  * \f}
587  * where \f$\mathbb{K}\f$ is either \f$\mathbb{Z}\f$ or \f$\mathbb{R}\f$.
588  * </td>
589  * <td colspan="3"> see the <a href="http://polyscip.zib.de/">PolySCIP web page</a></td>
590  * </tr>
591  * </table>
592  *
593  *
594  */
595 
596 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
597 
598 /**@page CODE Coding style guidelines
599  *
600  * We follow the following coding style guidelines and recommend them for all developers.
601  *
602  * - Indentation is 3 spaces. No tabs anywhere in the code.
603  * - Always only one declaration in a line.
604  * - Braces are on a new line and not indented.
605  * - Spaces around all operators.
606  * - No spaces between control structure keywords like "if", "for", "while", "switch" and the corresponding brackets.
607  * - No spaces between a function name and the parenthesis in both the definition and function calls.
608  * - Use assert() to show preconditions for the parameters, invariants and postconditions.
609  * - All global functions start with "SCIP". In the usual naming scheme this is followed by the object and a method name
610  * like in SCIPlpAddRow(). Functions return TRUE or FALSE should be named like SCIPisFeasEQ().
611  * - Make all functions that are not used outside the module 'static'. Naming should start with a lower case letter.
612  * - Variable names should be all lower case.
613  * - For each structure there is a typedef with the name in all upper case.
614  * - Defines should be named all upper case.
615  * - Document functions, parameters, and variables in a doxygen conformed way.
616  *
617  * As an example, have a look at tree.c and see the examples below. We also provide settings for
618  * \ref XEMACS "(x)emacs" and \ref ECLIPSE "eclipse".
619  *
620  *
621  * @section CODEEXAMPLES Examples
622  *
623  * In this section we state a few examples illustrating the \SCIP code style.
624  *
625  * @refsnippet{src/scip/type_set.h,SnippetCodeStyleExample}
626  *
627  *
628  * @section XEMACS Customize (x)emacs
629  *
630  * If you are using (x)emacs, you can use the following customization for the c++-mode. These settings satisfy the
631  * coding guidelines of \SCIP.
632  *
633  * \include codestyle/emacs_scip_codestyle.el
634  *
635  *
636  * @section ECLIPSE Customize eclipse
637  *
638  * Eclipse user can use the profile below. This profile does not match the \SCIP coding guideline completely.
639  *
640  * \include codestyle/eclipse_scip_codestyle.xml
641  */
642 
643 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
644 
645 /**@page CMAKE Building SCIP with CMake
646  *
647  * <a href=https://cmake.org/>CMake</a> is a build system generator that can create, e.g., Makefiles for UNIX and Mac
648  * or Visual Studio project files for Windows.
649  *
650  * CMake provides an <a href="https://cmake.org/cmake/help/latest/manual/cmake.1.html">extensive documentation</a>
651  * explaining available features and use cases as well as an <a href="https://cmake.org/Wiki/CMake_FAQ">FAQ section</a>.
652  * It's recommended to use the latest stable CMake version available. `cmake --help` is also a good first step to see
653  * available options and usage information.
654  *
655  * ```
656  * cd scip
657  * mkdir build
658  * cd build
659  * cmake .. [-DSOPLEX_DIR=/path/to/soplex]
660  * make
661  *
662  * # optional: run a quick check on some instances
663  *
664  * make check
665  *
666  * # optional: install scip executable, library, and headers
667  *
668  * make install
669  *
670  * ```
671  *
672  * CMake uses an out-of-source build, i.e., compiled binaries and object files are separated from the source tree and
673  * located in another directory. Usually this directory is called `build` or `debug` or whatever you prefer. From within
674  * this directory, run `cmake <path/to/SCIP>` to configure your build, followed by `make` to compile the code according
675  * to the current configuration (this assumes that you chose Linux Makefiles as CMake Generator). By default, SCIP
676  * searches for Soplex as LP solver. If SoPlex is not installed systemwide, the path to a CMake build directory
677  * of SoPlex must be specified (ie one that contains "soplex-config.cmake"). Alternatively, a different LP solver
678  * can be specified with the `LPS` variable, see \ref CMAKE_CONFIG and \ref LPI.
679  *
680  * Afterwards,
681  * successive calls to `make` are going to recompile modified source code,
682  * without requiring another call to `cmake`. The initial configuration step checks your environment for available
683  * third-party libraries and packages and sets up the configuration accordingly, e.g., disabling support for GMP if not
684  * installed.
685  *
686  * The generated executable and libraries are put in directories `bin` and `lib` respectively and will simply be named
687  * `scip` or `libscip.so`. This is different from the naming convention of the previous Makefile setup that
688  * appended the configuration details like OS and third party dependencies directly to the name of the binary or library.
689  * The CMake setup tries to follow the established Linux/UNIX compilation conventions to facilitate the use of the
690  * libraries in other applications. The previously generated sub-libraries like `liblpi.so` or `libobjscip.so` are not
691  * created by default anymore. They can be built using the respective targets `liblpi`, `libobjscip`, etc. The main
692  * library `libscip.so` will contain all SCIP sources and won't have dependencies to the other sub-libs.
693  *
694  * @section CMAKE_CONFIG Modifying a CMake configuration
695  *
696  * There are several options that can be passed to the `cmake <path/to/SCIP>` call to modify how the code is built.
697  * For all of these options and parameters you have to use `-D<Parameter_name>=<value>`. Following a list of available
698  * options, for the full list run
699  *
700  * ```
701  * cmake <path/to/SCIP> -LH
702  * ```
703  *
704  * CMake option | Available values | Makefile equivalent | Remarks |
705  * ---------------------|--------------------------------|------------------------|--------------------------------------------|
706  * CMAKE_BUILD_TYPE | Release, Debug, ... | OPT=[opt, dbg] | |
707  * LPS | spx, cpx, grb, xprs, ... | LPS=... | See \ref LPI for a complete list |
708  * GMP | on, off | GMP=[true, false] | |
709  * READLINE | on, off | READLINE=[true, false] | |
710  * ZIMPL | on, off | ZIMPL=[true, false] | |
711  * SYM | bliss, none | -- | |
712  * CMAKE_INSTALL_PREFIX | <path> | INSTALLDIR=<path> | |
713  * SHARED | on, off | SHARED=[true, false] | |
714  * SOPLEX_DIR | <path/to/SoPlex/installation> | -- | |
715  * GMP_DIR | <path/to/GMP/installation> | -- | |
716  * ..._DIR | <custom/path/to/.../package> | -- | |
717  * COVERAGE | on, off | -- | use with gcc, lcov, gcov in **debug** mode |
718  * COVERAGE_CTEST_ARGS | ctest argument string | -- | see `ctest --help` for arguments |
719  * DEBUGSOL | on, off | DEBUGSOL=[true,false] | specify a debugging solution by setting the "misc/debugsol" parameter of SCIP |
720  * CXXONLY | on, off | -- | use a C++ compiler for all source files |
721  * IPOPT | on, off | IPOPT=[true,false] | requires IPOPT version >= 3.12.0 |
722  * WORHP | on, off | WORHP=[true,false] | should worhp be linked |
723  * LPSCHECK | on, off | LPSCHECK=[true,false] | double check SoPlex results with CPLEX |
724  * NOBLKMEM | on, off | NOBLKMEM=[true,false] | |
725  * NOBUFMEM | on, off | NOBUFMEM=[true,false] | |
726  * NOBLKBUFMEM | on, off | NOBLKBUFMEM=[true,false] | |
727  * MT | on, off | | use static runtime libraries for Visual Studio compiler on Windows |
728  * PARASCIP | on, off | PARASCIP=[true,false] | thread safe compilation |
729  * SANITIZE_... | on, off | -- | enable sanitizer in debug mode if available |
730  *
731  * Parameters can be set all at once or in subsequent calls to `cmake` - extending or modifying the existing
732  * configuration.
733  *
734  * @section CTEST Testing with CTest
735  *
736  * There is an extensive test suite written for <a href="https://cmake.org/cmake/help/latest/manual/ctest.1.html">CTest</a>,
737  * that may take a while to complete. To perform a quick test to see whether the compilation was really successful you may
738  * run `make check`. To see all available tests, run
739  *
740  * ```
741  * ctest -N
742  * ```
743  *
744  * and to perform a memory check, run
745  *
746  * ```
747  * ctest -T MemCheck
748  * ```
749  *
750  * If <a href="https://criterion.readthedocs.io/en/master/">Criterion</a> is installed (set
751  * custom path with `-DCRITERION_DIR=<path>`) the target `unittests` can be used to compile and run the available unit tests.
752  *
753  * A coverage report for the entire test suite can be generated. This requires a modification of the
754  * compilation process. Two variables govern the report generation, `COVERAGE` and `COVERAGE_CTEST_ARGS`.
755  * It is recommended to use the Debug build type.
756  *
757  * ```
758  * cmake .. -DCOVERAGE=on -DCOVERAGE_CTEST_ARGS="-R MIP -E stein -j4" -DCMAKE_BUILD_TYPE=Debug
759  * ```
760  *
761  * In this example, coverage is enabled in combination with the build type Debug. In addition, only the coverage
762  * for tests with "MIP" in the name are run, excluding those that have "stein" in the name.
763  * The tests are performed in parallel using 4 cores.
764  *
765  * Use the `coverage` target, e.g., `make coverage`, to build the coverage report. The generated report can be found
766  * under "coverage/index.html".
767  *
768  * @section CMAKE_INSTALL Installation
769  *
770  * CMake uses a default directory for installation, e.g., /usr/local on Linux. This can be modified by either changing
771  * the configuration using `-DCMAKE_INSTALL_PREFIX` as explained in \ref CMAKE_CONFIG or by setting the environment
772  * variable `DESTDIR` during or before the install command, e.g., `DESTDIR=<custom/install/dir> make install`.
773  *
774  * @section CMAKE_TARGETS Additional targets
775  *
776  * There are several further targets available, which can be listed using `make help`. For instance, there are some
777  * examples that can be built with `make examples` or by specifying a certain one: `make <example-name>`.
778  *
779  * | CMake target | Description | Requirements |
780  * |-----------------|-------------------------------------------------------|---------------------------------------|
781  * | scip | build SCIP executable | |
782  * | applications | build executables for all applications | |
783  * | examples | build executables for all examples | |
784  * | unittests | build unit tests | the Criterion package, see \ref CTEST |
785  * | all_executables | build all of the above | |
786  * | libscip | build the SCIP library | |
787  * | install | install SCIP, see \ref CMAKE_INSTALL | |
788  * | coverage | run the test suite and create a coverage report | build flag `-DCOVERAGE=on` |
789  * | liblpi | build the LPI library | |
790  * | libnlpi | build the NLPI library | |
791  * | libobjscip | build the ObjSCIP library for the C++ wrapper classes | |
792  */
793 
794 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
795 
796 /**@page MAKE Makefiles / Installation information
797  *
798  *
799  * In most cases (LINUX and MAC) it is quite easy to compile and install \SCIP. Therefore, reading the section
800  * \ref BRIEFINSTALL "Brief installation description" should usually be enough. If this is not the case you find
801  * \ref DETAILEDINSTALL "Detailed installation description" below as well as \ref EXAMPLE1 "Examples".
802 *
803  * @section BRIEFINSTALL Brief installation description
804  *
805  * The easiest way to install \SCIP is to use the \SCIP Optimization Suite which contains \SCIP, SoPlex, and ZIMPL. For
806  * that we refer to the INSTALL file of the \SCIP Optimization Suite (main advantage: there is no need
807  * to specify any directories, the compiling process is fully automated).
808  *
809  * Compiling \SCIP directly can be done as follows:
810  *
811  * -# unpack the tarball <code>tar xvf scip-x.y.z.tgz</code>
812  * -# change to the directory <code>cd scip-x.y.z</code>
813  * -# start compiling \SCIP by typing <code>make</code>
814  * -# (optional) install the header, libraries, and binary <code>make install INSTALLDIR="/usr/local/</code>
815  *
816  * During your first compilation you will be asked for some soft-link targets,
817  * depending on the LP solver you want to use. Usually, \SCIP needs the
818  * following information
819  * -# the directory where the include files of the LP solver lie
820  * -# the library file(s) "lib*.a" or/and "lib*.so"
821  *
822  * Besides that, \SCIP needs some soft-link targets, for ZIMPL
823  * -# the directory where the include files of ZIMPL lie
824  * -# the library file(s) "lib*.a" or/and "lib*.so"
825  *
826  * You will need either the .a or the .so files and can skip the others by
827  * just pressing return.
828  *
829  * The most common compiling issue is that some libraries are missing
830  * on your system or that they are outdated. \SCIP per default requires
831  * zlib, gmp and readline. Try compiling with: <code> make ZLIB=false
832  * READLINE=false ZIMPL=false</code> or, better, install them. Note
833  * that under Linux-based systems, you need to install the
834  * developer-versions of gmp/zlib/readline, in order to also have the
835  * header-files available.
836  *
837  @section DETAILEDINSTALL Detailed installation description
838  *
839  * In this section we describe the use, and a few features, of the \SCIP Makefile. We also give two examples for how to install
840  * \SCIP. The \ref EXAMPLE1 "first example" illustrates the default installation. This means, with SoPleX and ZIMPL. The
841  * \ref EXAMPLE2 "second example" shows how to get CPLEX linked to \SCIP without ZIMPL. This is followed by a section which
842  * gives some hints on what to do if the \ref COMPILERPROBLEMS "compilation throws an error". We give some comments on
843  * how to install \SCIP under \ref WINDOWS "WINDOWS" and show \ref RUN "how to start \SCIP".
844  *
845  * If you experience any problems during the installation, you will find help in the \ref INSTALL "INSTALL" file.
846  *
847  * \SCIP contains a makefile system, which allows the individual setting of several parameters. A detailed list of parameter settings
848  * obtained by <code>make help</code>. For instance, the following settings are supported:
849  *
850  * - <code>OPT=<dbg|opt|opt-gccold></code> Here <code>dbg</code> turns on the debug mode of \SCIP. This enables asserts
851  * and avoids macros for several function in order to ease debugging. The default is <code>opt</code>, which enables
852  * the optimized mode. The third option <code>opt-gccold</code> will work with older GCC compilers before version
853  * 4.2. We recommend using newer GCC versions.
854  *
855  * - <code>LPS=<clp|cpx|grb|msk|qso|spx|xprs|none></code> This determines the LP-solver, which should be
856  * installed separately from \SCIP. The options are the following:
857  * - <code>clp</code>: COIN-OR Clp LP-solver
858  * - <code>cpx</code>: CPLEX LP-solver
859  * - <code>grb</code>: Gurobi LP-solver (interface is in beta stage)
860  * - <code>msk</code>: Mosek LP-solver
861  * - <code>qso</code>: QSopt LP-solver
862  * - <code>spx</code>: old SoPlex LP-solver (for versions < 2)
863  * - <code>spx2</code>: new SoPlex LP-solver (default) (from version 2)
864  * - <code>xprs</code>: XPress LP-solver
865  * - <code>none</code>: no LP-solver (you should set the parameter <lp/solvefreq> to <-1> to avoid solving LPs)
866  *
867  * - <code>LPSOPT=<dbg|opt|opt-gccold></code> Chooses the debug or optimized version (or old GCC optimized) version of
868  * the LP-solver (currently only available for SoPlex and CLP).
869  *
870  * - <code>ZIMPL=<true|false></code> Turns direct support of ZIMPL in \SCIP on (default) or off, respectively.\n
871  * If the ZIMPL-support is disabled, the GMP-library is no longer needed for \SCIP and therefore not linked to \SCIP.
872  *
873  * - <code>ZIMPLOPT=<dbg|opt|opt-gccold></code> Chooses the debug or optimized (default) (or old GCC optimized)
874  * version of ZIMPL, if ZIMPL support is enabled.
875  *
876  * - <code>READLINE=<true|false></code> Turns support via the readline library on (default) or off, respectively.
877  *
878  * - <code>FILTERSQP=<true|false></code> Enable or disable (default) FilterSQP interface.
879  *
880  * - <code>IPOPT=<true|false></code> Enable or disable (default) IPOPT interface (needs IPOPT >= 3.12).
881  *
882  * - <code>WORHP=<true|false></code> Enable or disable (default) WORHP interface (needs WORHP >= 2.0).
883  *
884  * - <code>EXPRINT=<cppad|none></code> Use CppAD as expressions interpreter (default) or no expressions interpreter.
885  *
886  * - <code>GAMS=<true|false></code> Enable or disable (default) reading functionality in GAMS reader (needs GAMS).
887  *
888  * - <code>NOBLKBUFMEM=<true|false></code> Turns the internal \SCIP block and buffer memory off or on (default).
889  * This way the code can be checked by valgrind or similar tools. (The individual options <code>NOBLKMEM=<true|false></code>
890  * and <code>NOBUFMEM=<true|false></code> to turn off the \SCIP block and buffer memory, respectively, exist as well).
891  *
892  * - <code>TPI=<tny|omp|none></code> This determines the threading library that is used for the concurrent solver.
893  * The options are the following:
894  * - <code>none</code>: use no threading library and therefore disable the concurrent solver feature
895  * - <code>tny</code>: use the tinycthread's library which is bundled with SCIP. This
896  * is a wrapper around the plattform specific threading library ad should work
897  * for Linux, Mac OS X and Windows.
898  * - <code>omp</code>: use the OpenMP. This will not work with microsoft compilers, since they do not support
899  * the required OpenMP version.
900  *
901  * - <code>SYM=<bliss|none></code> This determines the graph automorphism code used to compute symmetries of mixed
902  * integer programs if symmetry handling is enabled. The options are the following:
903  * - <code>none</code>: do not use a graph automorphism code, i.e., symmetries cannot be handled
904  * - <code>bliss</code>: use bliss to compute symmetries.
905  *
906  * You can use other compilers - depending on the system:
907  *
908  * - <code>COMP=<clang|gnu|intel></code> Use Clang, Gnu (default) or Intel compiler.
909  *
910  * There are additional parameters for Linux/Gnu compilers:
911  *
912  * - <code>SHARED=<true></code> generates a shared object of the \SCIP libraries. (The binary uses these shared
913  * libraries as well.)
914  * - <code>OPT=prf</code> generates a profiling version of \SCIP providing a detailed statistic of the time usage of
915  * every method of \SCIP.
916  *
917  * There is the possibility to watch the compilation more precisely:
918  *
919  * - <code>VERBOSE=<true|false></code> Turns the extensive output on or off (default).
920  *
921  * The \SCIP makefile supports several targets (used via <code>make ... "target"</code>):
922  *
923  * - <code>all (or no target)</code> Build \SCIP library and binary.
924  * - <code>links</code> Reconfigures the links in the "lib" directory.
925  * - <code>doc</code> Creates documentation in the "doc" directory.
926  * - <code>clean</code> Removes all object files.
927  * - <code>depend</code> Creates dependencies files. This is only needed if you add files to \SCIP.
928  * - <code>check or test</code> Runs the check script, see \ref TEST.
929  *
930  * The \SCIP makefiles are structured as follows.
931  *
932  * - <code>Makefile</code> This is the basic makefile in the \SCIP root directory. It loads
933  * additional makefile information depending on the parameters set.
934  * - <code>make/make.project</code> This file contains definitions that are useful for all codes
935  * that use \SCIP, for instance, the examples.
936  * - <code>make.<sys>.<machine>.<compiler>.<dbg|opt|prf|opt-gccold></code> These file contain system/compiler specific
937  * definitions. If you have an unsupported compiler, you can copy one of these and modify it
938  * accordingly.
939  *
940  * If your platform or compiler is not supported by \SCIP you might try and copy one of the existing
941  * makefiles in the <code>make</code> directory and modify it. If you succeed, we are always
942  * interested in including more Makefiles into the system.
943  *
944  *
945  * @section EXAMPLE1 Example 1 (defaults: SoPlex, with ZIMPL support):
946  *
947  * Typing <code>make</code> uses SoPlex as LP solver and includes support for the modeling language ZIMPL. You will be asked the
948  * following questions on the first call to "make" (example answers are already given):
949  *
950  * \verbinclude makeexamples/example1.txt
951  *
952  * @section EXAMPLE2 Example 2 (CPLEX, with no ZIMPL support):
953  *
954  * Typing <code>make LPS=cpx ZIMPL=false</code> uses CPLEX as LP solver. You will be asked the following questions on
955  * the first call to "make" (example answers are already given):
956  *
957  * \verbinclude makeexamples/example2.txt
958  *
959  *
960  * @section COMPILERPROBLEMS Compilation problems:
961  *
962  * - If the soft-link query script does not work on your machine, read step 2 in the \ref INSTALL "INSTALL" file for
963  * instructions on manually creating the soft-links.
964  *
965  * - If you get an error message of the type\n
966  * <code>make: *** No rule to make target `lib/???', needed by `obj/O.linux.x86.gnu.opt/lib/scip/???.o'. Stop.</code>\n
967  * the corresponding soft-link was not created or points to a wrong location. Check the soft-link targets in the "lib/"
968  * subdirectory. Try to delete all soft-links from the "lib/" directory\n and call "make links" to generate them
969  * again. If this still fails, read step 2 for instructions on manually\n creating the soft-links.
970  *
971  * - If you get an error message of the type\n
972  * <code>make: *** No rule to make target `make/make.?.?.?.?.?'. Stop.</code>,\n
973  * the corresponding machine dependent makefile for your architecture and compiler is missing.\n Create one of the given
974  * name in the "make/" subdirectory. You may take\n "make/make.linux.x86.gnu.opt" or any other file in the make
975  * subdirectory as example.\n
976  *
977  * - The readline library seems to differ slightly on different OS distributions. Some versions do
978  * not support the <code>remove_history()</code> call. In this case, you have to either add
979  * <code>-DNO_REMOVE_HISTORY</code> to the FLAGS in the appropriate "make/make.*" file, or to
980  * compile with <code>make USRFLAGS=-DNO_REMOVE_HISTORY</code>. Make sure, the file
981  * "src/scip/dialog.c" is recompiled. If this doesn't work either, disable the readline library
982  * with <code>make READLINE=false</code>.
983  *
984  * - On some systems, the <code>sigaction()</code> method is not available. In this case, you have
985  * to either add <code>-DNO_SIGACTION</code> to the FLAGS in the appropriate "make/make.*" file, or
986  * to compile with <code>make USRFLAGS=-DNO_SIGACTION</code>. Make sure, the file
987  * "src/scip/interrupt.c" is recompiled.
988  *
989  * - On some systems, the <code>rand_r()</code> method is not available. In this case, you have to either add
990  * <code>-DNO_RAND_R</code> to the FLAGS in the appropriate "make/make.*" file, or to compile with
991  * <code>make USRFLAGS=-DNO_RAND_R</code>. Make sure, the file "src/scip/misc.c" is recompiled.
992  *
993  * - On some systems, the <code>strtok_r()</code> method is not available. In this case, you have
994  * to either add <code>-DNO_STRTOK_R</code> to the FLAGS in the appropriate make/make.* file, or to
995  * compile with <code>make USRFLAGS=-DNO_STRTOK_R</code>. Make sure, the file "src/scip/misc.c" is
996  * recompiled.
997  *
998  * - On some systems, the <code>strerror_r()</code> method is not available. In this case, you have
999  * to either add <code>-DNO_STRERROR_R</code> to the FLAGS in the appropriate "make/make.*" file, or
1000  * to compile with <code>make USRFLAGS=-DNO_STRERROR_R</code>. Make sure, the file
1001  * "src/scip/misc.c" is recompiled.
1002  *
1003  * - On some systems, the option [-e] is not available for the read command. You have to compile with READ=read.
1004  *
1005  * - If you encounter other compiler or linker errors, you should recompile with <code>make
1006  * VERBOSE=true ...</code> in order to get the full compiler invocation. This might help to fix the
1007  * corresponding machine dependent makefile in the make subdirectory.
1008  *
1009  * @section WINDOWS Remarks on Installing under Windows using MinGW
1010  *
1011  * To build your own windows binaries under windows we recommend using the MinGW-Compiler with MSYS
1012  * from <a href="http://www.mingw.org">www.mingw.org</a> .
1013  *
1014  * First install MSYS, then MinGW to the mingw folder inside the msys folder.
1015  * Now you need to install the following packages to the mingw folder:
1016  * - zlib (or use ZLIB=false)
1017  * - pcre (here suffices the pcre7.0-lib.zip (or equivalent) to be extracted into the mingw-folder)
1018  *
1019  * After calling <code>make clean</code> in the ZIMPL folder you will also need flex and bison to
1020  * remake ZIMPL. We recommend NOT to use <code>"make clean"</code> inside the ZIMPL-folder if you do
1021  * not have these packages installed.
1022  *
1023  * You can download these additional packages from <a href="http://gnuwin32.sourceforge.net/packages.html">here</a>
1024  * or compile the source on your own from their homepages.
1025  *
1026  * Second you need to copy the file <code>sh.exe</code> to <code>bash.exe</code> otherwise various
1027  * scripts (including makefiles) will not work. Normally <code>unistd.h</code> covers also the
1028  * getopt-options, but for mingw you need to add the entry <code>\#include <getopt.h></code> into
1029  * "/mingw/include/unistd.h" after the other include-entries (if not present).
1030  *
1031  * Finally, there is one package you need to compile if you want to use ZIMPL and ZIMPL-support in
1032  * \SCIP (otherwise use <code>ZIMPL=false</code> as parameter with the make-call): the
1033  * <code>gmplib</code> from <a href="http://www.gmplib.org">gmplib.org</a>. The command
1034  * <code>./configure --prefix=/mingw ; make ; make install</code> should succeed without problems
1035  * and installs the gmplib to the mingw folder.
1036  *
1037  * Now <code>make READLINE=false</code> should be compiling without errors. Please note that we
1038  * do NOT support creating the doxygen documentation and readline-usage under windows.
1039  *
1040  *
1041  * @section RUN How to run SCIP after a successful compilation
1042  *
1043  * To run the program, enter <code>bin/scip</code> for the last compiled version. If you have more than one compiled
1044  * binary (i. e., one in debug and one in optimized mode) and wish to specify the binary, type
1045  * <code>bin/scip.\$(OSTYPE).\$(ARCH).\$(COMP).\$(OPT).\$(LPS)</code>
1046  * (e.g. <code>bin/scip.linux.x86_64.gnu.opt.spx</code>).
1047  *
1048  */
1049 
1050 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1051 
1052 /**@page START How to start a new project
1053  *
1054  * Once you succeeded installing \SCIP together with an LP-solver on your system,
1055  * you have a powerful tool for solving MIPs, MIQCPs,
1056  * MINLPs, etc... at hand. \SCIP can also be customized to the type of problems you
1057  * are working on by additional plugins.
1058  * Instructions on how to write a new plugin and include it in \SCIP can be found in the corresponding
1059  * \ref HOWTOADD "How to add ... pages".
1060  *
1061  * \SCIP can also be used for writing your own branch-and-cut or branch-and-cut-and-price code. \SCIP already
1062  * provides a number of existing code examples which we suggest as both reference and starting point
1063  * for these kinds of projects.
1064  * Below, you find some hints of how to start such a project.
1065  *
1066  * - The example should be chosen
1067  * depending on the programming language (<b>C</b> or <b>C++</b>) and the purpose
1068  * (<b>branch-and-cut</b> or <b>branch-and-cut-and-price</b>) of your project.
1069  * <br>
1070  * We suggest the use one of the following examples:
1071  * - 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
1072  * in <b>C++</b>.
1073  * - The <a href="http://scip.zib.de/doc/examples/Binpacking"><b>Binpacking</b></a>-example
1074  * and the <a href="http://scip.zib.de/doc/applications/Coloring"><b>Coloring</b></a> application are
1075  * <b>branch-and-cut-and-price</b> (column generation)-codes in <b>C</b>.
1076  * - The \ref TSP_MAIN "TSP example"
1077  * is a <b>branch-and-cut</b>-code in <b>C++</b>.
1078  * - The \ref LOP_MAIN LOP-example
1079  * is a <b>branch-and-cut</b>-code in <b>C</b>.
1080  * .
1081  * - Copy one of the examples in the <code>examples</code> directory (in the \SCIP root
1082  * directory). For instance, type
1083  * \verbatim
1084  > cp -r examples/Binpacking/ ../SCIPProject/ ; cd ../SCIPProject
1085  \endverbatim
1086  * from the \SCIP root directory for copying the content of the <code>Binpacking</code>-example into a fresh
1087  * directory named SCIPProject in the parent directory of the \SCIP root directory and jumping to
1088  * the new SCIPProject directory rightafter.
1089  * - Open the <code>Makefile</code> via
1090  * \verbatim
1091  > kate Makefile
1092  \endverbatim
1093  * and edit the following variables at the top to have a compilable code:
1094  *
1095  * - specify a correct path to the \SCIP root (<code>SCIPDIR</code>)
1096  * - rename the targets name (<code>MAINNAME</code>)
1097  * - adjust the source file names (<code>MAINOBJ</code>).
1098  * .
1099  * - Once you have edited the makefile, you can use all the flags that can be used in \SCIP to
1100  * compile your code, see \ref MAKE.
1101  * Note that you need to update the dependency files before compiling your project via <code>make depend</code>.
1102  *
1103  *
1104  *
1105  *
1106  */
1107 
1108 /**@page SHELL Tutorial: the interactive shell
1109  *
1110  * If you are using \SCIP as a black box solver, here you will find some tips and tricks what you can do.
1111  *
1112  * @section TUTORIAL_OPTIMIZE Read and optimize a problem instance
1113  *
1114  * First of all, we need a \SCIP binary and an example problem file to work with. Therefore, you can either download the
1115  * \SCIP standard distribution (which includes problem files) and compile it on your own or you can download a
1116  * precompiled binary and an example problem separately. \SCIP can read files in LP, MPS, ZPL, WBO, FZN, PIP, OSiL, and
1117  * other formats (see \ref FILEREADERS).
1118  *
1119  * If you want to download the source code of the \SCIP standard distribution, we recommend to go to the <a
1120  * href="http://scip.zib.de/#download">SCIP download section</a>, download the latest release (version 4.0.0 as
1121  * of this writing), inflate the tarball (e.g., with "tar xzf scipoptsuite-[version].tgz"), and follow the instructions
1122  * in the INSTALL file. The instance stein27, which will serve as an example in this tutorial, can be found under
1123  * scipoptsuite-[version]/scip-[version]/check/instances/MIP/stein27.fzn.
1124  *
1125  * If you want to download a precompiled binary, go to the <a href="http://scip.zib.de/#download">SCIP download
1126  * section</a> and download an appropriate binary for your operating system. The \SCIP source code distribution already comes with
1127  * the example instance used throughout this tutorial. To follow this tutorial with a precompiled binary, we recommend downloading the instance
1128  * <a href="http://miplib.zib.de/miplib3/miplib3/stein27.mps.gz">stein27</a> from
1129  * the <a href="http://miplib.zib.de/miplib3/miplib.html">MIPLIB 3.0</a> homepage.
1130  *
1131  * Now start your binary, without any arguments. This opens the interactive shell, which should look somehow like this:
1132  *
1133  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetVersion
1134  *
1135  * First of all "help" shows you a list of all available shell commands. Brackets indicate a submenu with further options.
1136  *
1137  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetHelp
1138  *
1139  * 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
1140  * solution" to show the nonzero variables of the best found solution.
1141  *
1142  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetOpt1
1143  *
1144  * What do we see here? After "optimize", SCIP first goes into presolving. Not much is happening for this instance, just
1145  * the linear constraints get upgraded to more specific types. Each round of presolving will be displayed in a single
1146  * line, with a short summary at the end. Then, we see the actual solving process. The table output of the branch-and-cut
1147  * solving process is very detailed during the root node. Afterwards, a new line is displayed every 100th node.
1148  * Furthermore, every new incumbent solution triggers a new table row, starting with a character to indicate the
1149  * heuristic that found the solution. Which letter represents which heuristic can be seen with the
1150  * "display heuristics" command, see \ref TUTORIAL_STATISTICS for an example.
1151  *
1152  * After some lines the root node processing is finished. From now on, we will see an output line every hundredth node or
1153  * whenever a new incumbent is found. After some more nodes, the "dualbound" starts
1154  * moving, too. At one point, both will be the same, and the solving process terminates, showing us some wrap-up
1155  * information.
1156  *
1157  * The exact performance may of course vary among different architectures and operating systems. Do not be worried if
1158  * your installation needs more or less time or nodes to solve. Also, this instance has more than 2000 different optimal
1159  * solutions. The optimal objective value always has to be 18, but the solution vector may differ. If you are interested
1160  * in this behavior, which is called "performance variability", you may have a look at the MIPLIB2010 paper.
1161  *
1162  * @section TUTORIAL_FILEIO Writing problems and solutions to a file
1163 
1164  * \SCIP can also write information to files. E.g., we could store the incumbent solution to a file, or output the
1165  * problem instance in another file format (the LP format is much more human readable than the MPS format, for example).
1166  *
1167  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetWriteSolutions
1168  *
1169  * Passing starting solutions can increase the solving performance so that \SCIP does not need to construct an initial feasible solution
1170  * by itself. After reading the problem instance, use the "read" command again, this time with a file containing solution information.
1171  * Solutions can be specified in a raw or xml-format and must have the file extension ".sol", see the documentation of the
1172  * <a href="http://scip.zib.de/doc/html/reader__sol_8h.php">solution reader of \SCIP</a> for further information.
1173  *
1174  * Customized settings are not written or read with the "write" and "read" commands, but with the three commands
1175  *
1176  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsOverview
1177  *
1178  * See the section on parameters \ref TUTORIAL_PARAMETERS for more information.
1179  *
1180  * @section TUTORIAL_STATISTICS Displaying detailed solving statistics
1181  *
1182  * We might want to have some more information now. Which of the heuristics found solutions? Which plugins
1183  * were called during the solutions process and how much time did they spend?
1184  * Information on certain plugin types (e.g., heuristics, branching rules, separators) is displayed via
1185  * "display <plugin-type>", information on the solution process via "display statistics", and "display problem"
1186  * shows the current instance.
1187  *
1188  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetDisplayStatistics
1189  *
1190  * The statistics obtained via "display statistics" are quite comprehensive,
1191  * thus, we just explain a few lines here. Information is grouped by the plugin type. For the primal heuristics,
1192  * the execution time in seconds is shown as well as the number of calls to the heuristic, and its success regarding
1193  * the number of (best) solutions found by that heuristic. Appropriate statistics are also shown for presolvers, constraint handlers,
1194  * separators, propagators, the search tree, etc. User-written plugins will appear automatically in these statistics,
1195  * after they were included into \SCIP.
1196  *
1197  * @section TUTORIAL_PARAMETERS Changing parameters from the interactive shell
1198  *
1199  * Now, we can start playing around with parameters. The primal heuristics Rounding and shifting seem to be quite successful on this instance,
1200  * wondering what happens if we disable them? Or what happens, if we are even more rigorous and disable all heuristics?
1201  * Or if we do the opposite and use aggressive heuristics?
1202  *
1203  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSetSettings
1204  *
1205  * We can navigate through the menus step-by-step and get a list of available options and submenus. Therefore, we select
1206  * "set" to change settings, "heuristics" to change settings of primal heuristics, and "shifting" for that particular
1207  * heuristic. Then we see a list of parameters (and yet another submenu for advanced parameters), and disable this
1208  * heuristic by setting its calling frequency to -1. If we already know the path to a certain setting, we can directly
1209  * type it (as for the rounding heuristic in the above example). Note that we do not have to use the full names, but we
1210  * may use short versions, as long as they are unique.
1211  *
1212  * To solve a problem a second time, we have to read it in again before starting the optimization process.
1213  *
1214  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetOpt2
1215  *
1216  * Okay, what happened here? First, we reset all parameters to their default values, using "set default". Next, we
1217  * loaded some meta-parameter settings (also see <a href="http://scip.zib.de/#faq">the FAQ</a>), to apply primal heuristics
1218  * more aggressively. \SCIP shows us, which single parameters it changed therefore. Additionally, for pedagogical purposes,
1219  * we set the node limit to 200. Now, the optimal solution is already found at the root node, by a heuristic which is
1220  * deactivated by default. Then, after node 200, the user defined node limit is reached which interrupts the solving
1221  * process, We see that now in the short status report, primal and dual bound are different, thus, the problem is not solved
1222  * yet. Nevertheless, we could access statistics, see the current incumbent solution, change parameters and so on.
1223  * Entering "optimize" we continue the solving process from the point on at which it has been interrupted.
1224  *
1225  * Once you found a non-default parameter setting that you wish to save and use in the future, use either the command
1226  *
1227  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsFull
1228  *
1229  * to save <b>all</b> parameter values to the specified file, or
1230  *
1231  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetSaveSettingsDiff
1232  *
1233  * in order to save only the nondefault parameters. The latter has several advantages, you can, e.g., combine parameter
1234  * settings from multiple settings files stored by the latter command, as long as they only affect mutually exclusive
1235  * parameter values.
1236  *
1237  * For loading a previously stored settings file, use the "load" command:
1238  *
1239  * @snippet shelltutorial/shelltutorialannotated.tmp SnippetLoadSettings
1240  *
1241  * Special attention should be drawn to the reserved settings file name "scip.set"; whenever the \SCIP interactive shell
1242  * is started from a working directory that contains a settings file with the name "scip.set", it will be automatically
1243  * replace the default settings.
1244  *
1245  * For using special settings for automated tests as described in \ref TEST, save your custom settings in a subdirectory
1246  * "SCIP_HOME/settings".
1247  *
1248  *
1249  * We hope this tutorial gave you an overview of what is possible using the \SCIP interactive shell. Please also read our
1250  * \ref FAQ, in particular the section <a href="http://scip.zib.de/#faq">Using \SCIP as a standalone MIP/MINLP-Solver</a>.
1251  *
1252  */
1253 
1254 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1255 
1256 /**@page DOC How to search the documentation for interface methods
1257  *
1258  * If you are looking for a method in order to perform a specific task, there are usually two places to look at:
1259  * - The file "scip.h" in the file list.
1260  * In this main header file, you find all methods that perform "complex" operations that affect or need data from
1261  * different components of \SCIP.
1262  * For these methods, you always have to provide the \SCIP pointer that is created by SCIPcreate().
1263  * The documentation of "scip.h" is grouped into several blocks, each dealing with methods for a specific kind of
1264  * object.
1265  * For example, all methods operating on variables are grouped together.
1266 
1267  * - The files \ref PUBLICCOREAPI "pub_<...>.h" contain methods that perform "easy" operations that only
1268  * affect the corresponding objects.
1269  * Usually, with these methods you can access the data of the object.
1270  * For example, in "pub_var.h" you find methods to get information about a variable.
1271  *
1272  * The file "pub_misc.h" contains methods for data structures like priority queues, hash tables, and hash maps,
1273  * as well as methods for sorting, numerics, random numbers, string operations, and file operations.
1274  *
1275  * If you are looking for a description of a callback method of a plugin that you want to implement, you have to
1276  * look at the corresponding \ref TYPEDEFINITIONS "type_<...>.h".
1277  */
1278 
1279 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
1280 
1281 /**@page CONS How to add constraint handlers
1282  *
1283  * A constraint handler defines the semantics and the algorithms to process constraints of a certain class. A single
1284  * constraint handler is responsible for all constraints belonging to its constraint class. For example, there is
1285  * one \ref cons_knapsack.h "knapsack constraint handler" that ensures solutions are only accepted if they satisfy all
1286  * knapsack constraints in the model. \n A complete list of all constraint handlers contained in this release can be
1287  * found \ref CONSHDLRS "here".
1288  *
1289  * We now explain how users can add their own constraint handlers.
1290  * For an example, look into the subtour constraint handler (examples/TSP/src/ConshdlrSubtour.cpp) of the
1291  * \ref TSP_MAIN project.
1292  * The example is written in C++ and uses the C++ wrapper classes.
1293  * However, we will explain the implementation of a constraint handler using the C interface.
1294  * It is very easy to transfer the C explanation to C++; whenever a method should be implemented using the
1295  * SCIP_DECL_CONS... notion, reimplement the corresponding virtual member function of the abstract scip::ObjConshdlr
1296  * base class.
1297  *
1298  * Additional documentation for the callback methods of a constraint handler can be found in the file
1299  * type_cons.h.
1300  *
1301  * Here is what you have to do (assuming your constraint handler should be named "subtour"):
1302  * -# Copy the template files src/scip/cons_xyz.c and src/scip/cons_xyz.h into files "cons_subtour.c"
1303  * and "cons_subtour.h".
1304  * \n
1305  * Make sure to <b>adjust your Makefile</b> such that these files are compiled and linked to your project.
1306  * -# Use SCIPincludeConsSubtour() in order to include the constraint handler into your SCIP instance,
1307  * e.g., in the main file of your project (see, e.g., src/cppmain.cpp in the TSP example).
1308  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "subtour".
1309  * -# Adjust the \ref CONS_PROPERTIES "properties of the constraint handler".
1310  * -# Define the \ref CONS_DATA "constraint data and the constraint handler data". This is optional.
1311  * -# Implement the \ref CONS_INTERFACE "interface methods".
1312  * -# Implement the \ref CONS_FUNDAMENTALCALLBACKS "fundamental callback methods".
1313  * -# Implement the \ref CONS_ADDITIONALCALLBACKS "additional callback methods". This is optional.
1314  *
1315  *
1316  * @section CONS_PROPERTIES Properties of a Constraint Handler
1317  *
1318  * At the top of the new file "cons_subtour.c" you can find the constraint handler properties.
1319  * These are given as compiler defines. Some of them are optional, as, e.g., separation-related properties,
1320  * which only have to be defined if the constraint handler supports the related callbacks.
1321  * In the C++ wrapper class, you have to provide the constraint handler properties by calling the constructor
1322  * of the abstract base class scip::ObjConshdlr from within your constructor (see the TSP example).
1323  * The properties you have to set have the following meaning:
1324  *
1325  * @subsection CONS_FUNDAMENTALPROPERTIES Fundamental Constraint Handler properties
1326  *
1327  * \par CONSHDLR_NAME: the name of the constraint handler.
1328  * This name is used in the interactive shell to address the constraint handler.
1329  * Additionally, if you are searching for a constraint handler with SCIPfindConshdlr(), this name is looked up.
1330  * Names have to be unique: no two constraint handlers may have the same name.
1331  *
1332  * \par CONSHDLR_DESC: the description of the constraint handler.
1333  * This string is printed as a description of the constraint handler in the interactive shell of SCIP.
1334  *
1335  * \par CONSHDLR_ENFOPRIORITY: the priority of the constraint handler for constraint enforcing.
1336  * Like the separation priority, the enforcement priorities define the order in which the different constraint handlers
1337  * are called in the constraint enforcement step of the subproblem processing.
1338  * The constraint enforcement is called after the price-and-cut loop is executed (in the case that the LP is solved
1339  * at the current subproblem).
1340  * \n
1341  * The integrality constraint handler has an enforcement priority of 0.
1342  * That means, if a constraint handler has negative enforcement priority, it only has to deal with integral solutions
1343  * in its enforcement methods, because for fractional solutions, the integrality constraint handler would have
1344  * created a branching, thereby aborting the enforcement step.
1345  * If you want to implement a constraint-depending branching rule (for example, SOS branching on special ordered
1346  * set constraints), you have to assign a positive enforcement priority to your constraint handler.
1347  * In this case, you have to be able to deal with fractional solutions.
1348  * \n
1349  * See \ref CONSENFOLP and \ref CONSENFOPS for further details of the separation callback.
1350  *
1351  * \par CONSHDLR_CHECKPRIORITY: the priority of the constraint handler for checking feasibility.
1352  * Like the separation priority, the checking priorities define the order in which the different constraint handlers
1353  * are called to check the feasibility of a given primal solution candidate.
1354  * The integrality constraint handler has a checking priority of 0.
1355  * That means, constraint handlers with negative checking priorities only have to deal with integral solutions.
1356  *
1357  * \par CONSHDLR_EAGERFREQ: the default frequency for using all instead of only the useful constraints in separation, propagation and enforcement.
1358  * If \em constraint \em aging is activated, some constraints that were not useful in the past for propagation or
1359  * separation are marked to be \em obsolete.
1360  * Usually, the obsolete constraints are not presented to the separation and propagation methods of the constraint
1361  * handlers, such that the constraint handlers only process the non-obsolete constraints.
1362  * However, every n'th call, with n being the EAGERFREQ of the constraint handler, all constraints are presented to the
1363  * separation and propagation methods of the constraint handler.
1364  * This gives obsolete constraints the chance of becoming non-obsolete again.
1365  * \n
1366  * If the eager evaluation frequency is set to -1, obsolete constraints are never presented to the separation and
1367  * propagation methods.
1368  * A frequency of 0 means, that obsolete constraints are only used in the first call of each method.
1369  *
1370  * \par CONSHDLR_NEEDSCONS: indicates whether the constraint handler should be skipped, if no constraints are available.
1371  * Usually, a constraint handler is only executed if there are constraints of its corresponding class in the model.
1372  * For those constraint handlers, the NEEDSCONS flag should be set to TRUE.
1373  * However, some constraint handlers must be called without having a constraint of the class in the model, because
1374  * the constraint is only implicitly available.
1375  * For example, the integrality constraint handler has the NEEDSCONS flag set to FALSE, because there is no explicit
1376  * integrality constraint in the model.
1377  * The integrality conditions are attached to the variables, and the integrality constraint handler has to check
1378  * all variables that are marked to be integer for integral values.
1379  *
1380  * @subsection CONS_ADDITIONALPROPERTIES Optional Constraint Handler properties
1381  *
1382  * The following properties are optional and only need to be defined if the constraint handlers support
1383  * separation, presolving, propagation, and/or upgrade functionality.
1384  *
1385  * \par LINCONSUPGD_PRIORITY: priority of the constraint handler for upgrading of linear constraints
1386  * This property is only needed if a certain linear constraint can be upgraded to a more specific one. In one of
1387  * the first presolving rounds SCIP tries to upgrade linear constraints to more specialized constraints, such as
1388  * knapsack constraints. The upgrading calls are processed in the order of decreasing priority.
1389  *
1390  * \par NONLINCONSUPGD_PRIORITY: priority of the constraint handler for upgrading of nonlinear constraints
1391  * This property has the same effect as the LINCONSUPGD_PRIORITY parameter, see above, and should be set whenever
1392  * an upgrade functionality from a general nonlinear constraint to the more specific one is defined.
1393  *
1394  * \par CONSHDLR_SEPAFREQ: the default frequency for separating cuts.
1395  * The separation frequency defines the depth levels at which the constraint handler's separation methods \ref CONSSEPALP
1396  * and \ref CONSSEPASOL are called.
1397  * For example, a separation frequency of 7 means, that the separation callback is executed for subproblems that are
1398  * in depth 0, 7, 14, ... of the branching tree.
1399  * A separation frequency of 0 means, that the separation method is only called at the root node.
1400  * A separation frequency of -1 disables the separation method of the constraint handler.
1401  * \n
1402  * The separation frequency can be adjusted by the user.
1403  * This property of the constraint handler only defines the default value of the frequency.
1404  * If you want to have a more flexible control of when to execute the separation algorithm, you have to assign
1405  * a separation frequency of 1 and implement a check at the beginning of your separation algorithm whether you really
1406  * want to execute the separator or not.
1407  * If you do not want to execute the method, set the result code to SCIP_DIDNOTRUN.
1408  *
1409  * \par CONSHDLR_SEPAPRIORITY: the priority of the constraint handler for separation. (optional: to be set only if the constraint handler supports separation)
1410  * In each separation round during the price-and-cut loop of the subproblem processing or during the separation loop
1411  * of the primal solution separation, the separators and separation methods of the constraint handlers are called in
1412  * a predefined order, which is given by the priorities of the separators and the separation priorities of the
1413  * constraint handlers.
1414  * First, the separators with non-negative priority are called in the order of decreasing priority.
1415  * Next, the separation methods of the different constraint handlers are called in the order of decreasing separation
1416  * priority.
1417  * Finally, the separators with negative priority are called in the order of decreasing priority.
1418  * \n
1419  * The separation priority of the constraint handler should be set according to the complexity of the cut separation
1420  * algorithm and the impact of the resulting cuts:
1421  * Constraint handlers that provide fast algorithms that usually have a high impact (i.e., cut off a large portion of
1422  * the LP relaxation) should have a high priority.
1423  * See \ref CONSSEPALP and \ref CONSSEPASOL for further details of the separation callbacks.
1424  *
1425  * \par CONSHDLR_DELAYSEPA: the default for whether the separation method should be delayed, if other separators found cuts.
1426  * If the constraint handler's separation method is marked to be delayed, it is only executed after no other separator
1427  * or constraint handler found a cut during the price-and-cut loop.
1428  * If the separation method of the constraint handler is very expensive, you may want to mark it to be delayed until all
1429  * cheap separation methods have been executed.
1430  *
1431  * \par CONSHDLR_PROPFREQ: the default frequency for propagating domains.
1432  * This default frequency has the same meaning as the CONSHDLR_SEPAFREQ with respect to the domain propagation
1433  * callback of the constraint handler.
1434  * A propagation frequency of 0 means that propagation is only applied in preprocessing and at the root node.
1435  * A propagation frequency of -1 disables the propagation method of the constraint handler.
1436  *
1437  * \par CONSHDLR_DELAYPROP: the default for whether the propagation method should be delayed, if other propagators found reductions.
1438  * This property is analogous to the DELAYSEPA flag, but deals with the propagation method of the constraint handler.
1439  *
1440  * \par CONSHDLR_PROP_TIMING: the propagation timing mask of the constraint handler.
1441  * SCIP calls the domain propagation routines at different places in the node processing loop.
1442  * This property indicates at which places the propagation routine of the constraint handler is called.
1443  * Possible values are defined in type_timing.h and can be concatenated, e.g., as in SCIP_PROPTIMING_ALWAYS.
1444  *
1445  * \par CONSHDLR_PRESOLTIMING: the timing of the constraint handler's presolving method (FAST, MEDIUM, or EXHAUSTIVE).
1446  * Every presolving round starts with the FAST presolving methods. MEDIUM presolvers are only called, if FAST presolvers did not find
1447  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
1448  * in this round were unsuccessful.
1449  * Presolving methods should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
1450  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
1451  * If a presolving method implements different algorithms of different complexity, it may also get multiple timings and check the timing
1452  * internally in the \ref CONSPRESOL callback to decide which algorithms to run.
1453  *
1454  * \par CONSHDLR_MAXPREROUNDS: the default maximal number of presolving rounds the constraint handler participates in.
1455  * The preprocessing is executed in rounds.
1456  * If enough changes have been applied to the model, an additional preprocessing round is performed.
1457  * The MAXPREROUNDS parameter of a constraint handler denotes the maximal number of preprocessing rounds the constraint
1458  * handler participates in.
1459  * A value of -1 means that there is no limit on the number of rounds.
1460  * A value of 0 means the preprocessing callback of the constraint handler is disabled.
1461  *
1462  *
1463  *
1464  * @section CONS_DATA Constraint Data and Constraint Handler Data
1465  *
1466  * Below the header "Data structures" you can find two structs called "struct SCIP_ConsData" and
1467  * "struct SCIP_ConshdlrData".
1468  * If you are using C++, you only need to define the "struct SCIP_ConsData".
1469  * The constraint handler data must be implemented as member variables of your constraint handler class.
1470  * \n
1471  * The constraint data are the information that is needed to define a single constraint of the constraint handler's
1472  * constraint class.
1473  * For example, the data of a knapsack constraint would consist of a list of variables, a list of weights, and
1474  * the capacity of the knapsack.
1475  * The data of a subtour constraint consists of the graph on which the problem is defined.
1476  * In the graph, each edge should be linked to the corresponding binary problem variable.
1477  * \n
1478  * The constraint handler data are additional variables, that belong to the constraint handler itself and which are
1479  * not specific to a single constraint.
1480  * For example, you can use these data to store parameters of the constraint handler or statistical information.
1481  * The constraint handler data are optional.
1482  * You can leave the struct empty.
1483  *
1484  *
1485  * @section CONS_INTERFACE Interface Methods
1486  *
1487  * At the bottom of "cons_subtour.c" you can find three interface methods, that also appear in "cons_subtour.h".
1488  * These are SCIPincludeConshdlrSubtour(), SCIPcreateConsSubtour(), and SCIPcreateConsSubtourBasic().
1489  * \n
1490  * The method SCIPincludeConshdlrSubtour() only has to be adjusted slightly.
1491  * It is responsible for notifying SCIP of the presence of the constraint handler by calling the method
1492  * SCIPincludeConshdlr().
1493  * It is called by the user, if (s)he wants to include the constraint handler, i.e., if (s)he wants to make
1494  * the constraint handler available to the model, and looks like this:
1495  * \dontinclude src/scip/cons_knapsack.c
1496  * -# If you are using constraint handler data, you have to <b>allocate the memory for the data</b> at this point.
1497  * You also have to initialize the fields in struct SCIP_ConshdlrData afterwards.
1498  *
1499  * \skip SCIP_RETCODE SCIPincludeConshdlrKnapsack(
1500  * \until SCIPallocBlockMemory
1501  *
1502  * -# Now, <b>SCIP gets notified</b> of the presence of the constraint handler together with its \ref CONS_FUNDAMENTALCALLBACKS "basic callbacks".
1503  *
1504  * \skip SCIPincludeConshdlrBasic
1505  * \until assert
1506  *
1507  * -# All \ref CONS_ADDITIONALCALLBACKS "additional callbacks" are added via their setter functions.
1508  *
1509  * \skip SCIPsetConshdlrCopy
1510  * \until SCIPsetConshdlrExit
1511  *
1512  * -# If the constraint handler is a specialization of a general linear or nonlinear constraint, we want to include an
1513  * <b>automatic upgrading mechanism</b> by calling the interface method
1514  *
1515  * \skip SCIPfindConshdlr
1516  * \until SCIPincludeLinconsUpgrade
1517  * or
1518  * \code
1519  * SCIP_CALL( SCIPincludeNonlinconsUpgrade(scip, nonlinconsUpgdSubtour, NULL, NONLINCONSUPGD_PRIORITY, TRUE, CONSHDLR_NAME) );
1520  * \endcode
1521  *
1522  * in the nonlinear case. See also cons_nonlinear.h for further information about the general upgrade procedure in the nonlinear case.
1523  * -# You may also add <b>user parameters</b> for your constraint handler.
1524  * Some parameters which are important to play with are added to every constraint automatically, as, e.g.,
1525  * propagation or separation frequency.
1526  * \skip SCIPaddIntParam
1527  * \until DEFAULT_SEPACARDFREQ
1528  * \skip SCIP_OKAY
1529  * \until }
1530  *
1531  *
1532  * The methods SCIPcreateConsSubtour() and SCIPcreateConsSubtourBasic() are called to create a single constraint of the constraint
1533  * handler's constraint class.
1534  * It should allocate and fill the constraint data, and call SCIPcreateCons().
1535  * Take a look at the following example from the \ref cons_knapsack.h "knapsack constraint handler":
1536  *
1537  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsCreationKnapsack}
1538  *
1539  * In this example, consdataCreate() is a local method that allocates memory for the given consdata
1540  * and fills the data with the given <code>vars</code> array. For allocating memory for the constraint data, you
1541  * can use SCIP memory allocation:
1542  * \code
1543  * SCIP_CALL( SCIPallocBlockMemory(scip, consdata) );
1544  * \endcode
1545  *
1546  *
1547  * @section CONS_CALLBACKS Callback methods of Constraint handlers
1548  *
1549  * Besides the various functions which you will implement inside your constraint handler there exists a number
1550  * of <b> callback methods </b> associated with your constraint handler. Callback methods can be regarded as
1551  * tasks which your constraint handler is able to provide to the solver. They are grouped into two
1552  * categories:
1553  *
1554  * \ref CONS_FUNDAMENTALCALLBACKS "Fundamental Callback methods" are mandatory to implement
1555  * such that your code will work. For example, every constraint handler has to provide the
1556  * functionality to state whether all of its constraints are
1557  * fulfilled by a given variable assignment. Hence, the \ref CONSCHECK "CONSCHECK" callback is
1558  * one of the fundamental (or \a basic) callbacks of a constraint handler.
1559  *
1560  * Callbacks which are not necessarily implemented are grouped together as
1561  * \ref CONS_ADDITIONALCALLBACKS "additional callbacks". Such callbacks can be used to allocate and free memory
1562  * at different stages of the solving process. Although not mandatory, it might be useful to implement
1563  * some of these callbacks, e.g., to extend your constraint handler by a
1564  * \ref CONSSEPALP "separation" or \ref CONSPRESOL "presolving" functionality.
1565  *
1566  * All callbacks should be passed to SCIP during the SCIPinclude<PLUGINTYPE><PLUGINNAME> method
1567  * (e.g., SCIPincludeConshdlrKnapsack() for the \ref cons_knapsack.h "knapsack constraint handler").
1568  * Since SCIP version 3.0, two ways of setting callbacks can be used, either via SCIPincludeConshdlr()
1569  * (all at once, as it always was), or via SCIPincludeConshdlrBasic() and setter functions for additional callbacks.
1570  * Since the basic inclusion methods are very unlikely to change and will thus
1571  * make your code more stable towards future versions of SCIP with more callbacks,
1572  * we recommend the latter choice, as explained in the \ref CONS_INTERFACE "interface" section.
1573  *
1574  * @section CONS_FUNDAMENTALCALLBACKS Fundamental Callback Methods
1575  *
1576  * By implementing the fundamental callbacks, you define the semantics of the constraint class the constraint handler
1577  * deals with.
1578  * If these methods are implemented, the resulting code is already correct and finds the optimal solution to the
1579  * given problem instance.
1580  * However, it might be very slow because the additional features, like cut separation and domain propagation, are
1581  * missing.
1582  * In the C++ wrapper class scip::ObjConshdlr, the fundamental callback methods are virtual abstract member functions.
1583  * You have to implement them in order to be able to construct an object of your constraint handler class.
1584  *
1585  * There are three fundamental callback methods that are all dealing with the feasibility of a given solution.
1586  * They are called at different places in the algorithm and have slightly different meaning.
1587  * However, it is usually reasonable to implement a single local method that is called by all of the three callback
1588  * methods with slightly modified parameters.
1589  * The fourth method provides dual information that is used for example in preprocessing.
1590  *
1591  * Additional documentation for the callback methods can be found in type_cons.h.
1592  *
1593  * @subsection CONSCHECK
1594  *
1595  * The CONSCHECK callback gets a primal solution candidate in a SCIP_SOL* data structure
1596  * and has to check this solution for global feasibility.
1597  * It has to return a result SCIP_FEASIBLE, if the solution satisfies all the constraints of the constraint handler,
1598  * and a result SCIP_INFEASIBLE if there is at least one constraint that is violated.
1599  *
1600  * If the solution is not NULL, SCIP should also be informed about the constraint violation with a call to
1601  * SCIPupdateSolConsViolation() and additionally SCIPupdateSolLPRowViolation() for every row of the constraint's current
1602  * representation in the LP relaxation, if any such rows exist.
1603  * As a convenience method, SCIPupdateSolLPConsViolation() can be used if the constraint
1604  * is represented completely by a set of LP rows, meaning that the current constraint violation is equal to the maximum
1605  * of the contraint violations of the corresponding LP rows.
1606  *
1607  * The callback is used by primal heuristics to check a constructed solution for feasibility.
1608  * That means, the constraint handler has to deal with arbitrary solutions that do not necessarily satisfy the bounds
1609  * and constraints of the local subproblem.
1610  *
1611  * The value of a variable \em var in the given solution \em sol can be accessed by calling
1612  * \code
1613  * SCIPgetSolVal(scip, sol, var)
1614  * \endcode
1615  *
1616  * For example, the \ref cons_knapsack.h "knapsack constraint handler" loops over its constraints and
1617  * calculates the scalar product \f$w^T x\f$ of weights \f$w\f$ with the solution vector \f$x\f$.
1618  * This scalar product is compared with the capacity of the knapsack constraint.
1619  * If it exceeds the capacity, the CONSCHECK method is immediately aborted with the result SCIP_INFEASIBLE.
1620  * If all knapsack constraints are satisfied, a result SCIP_FEASIBLE is returned.
1621  *
1622  * @subsection CONSENFOLP
1623  *
1624  * The CONSENFOLP method is called after the price-and-cut loop was finished and an LP solution is available.
1625  * Like the CHECK call, the ENFOLP method should return a result SCIP_FEASIBLE, if the solution satisfies all the
1626  * constraints.
1627  * However, the behavior should be different, if the solution violates some of the associated constraints.
1628  * The constraint handler may return a result SCIP_INFEASIBLE in this situation, but this is not the best what
1629  * one can do.
1630  * The ENFOLP method has the possibility of \em resolving the infeasibility by
1631  * - stating that the current subproblem is infeasible (result SCIP_CUTOFF),
1632  * - adding an additional constraint that resolves the infeasibility (result SCIP_CONSADDED),
1633  * - reducing the domain of a variable (result SCIP_REDUCEDDOM),
1634  * - adding a cutting plane (result SCIP_SEPARATED),
1635  * - performing a branching (result SCIP_BRANCHED).
1636  *
1637  * However, the solution is not given as a SCIP_SOL* data structure.
1638  *
1639  * The value of a variable <code>var</code> in the LP solution can be accessed by calling
1640  * \code
1641  * SCIPgetVarSol(scip, var)
1642  * \endcode
1643  * or by
1644  * \code
1645  * SCIPgetSolVal(scip, NULL, var)
1646  * \endcode
1647  * By using the latter method, you can have a single local method to check a solution for feasibility by passing
1648  * the given <code>sol</code> to the CONSCHECK call and by passing a NULL pointer as <code>sol</code> to
1649  * the CONSENFOLP and CONSENFOPS calls.
1650  *
1651  *
1652  * @subsection CONSENFOPS
1653  *
1654  * The CONSENFOPS callback is similar to the CONSENFOLP callback, but deals with \em pseudo \em solutions instead
1655  * of LP solutions.
1656  *
1657  * If the LP was not solved at the current subproblem (either because the user did not want to solve it, or because
1658  * numerical difficulties in the LP solving process were detected) no LP solution is available.
1659  * In this situation, the pseudo solution is used instead.
1660  * In this solution, the variables are set to the local bound which is best with respect to the objective function.
1661  * You can think of the pseudo solution as solution to the LP relaxation with all constraints except the bounds
1662  * being removed.
1663  *
1664  * Like the ENFOLP callback, the ENFOPS callback has to check whether the pseudo solution satisfies all the constraints
1665  * of the constraint handler.
1666  * The pseudo solution can be accessed by the same methods as the LP solution (SCIP knows, if the LP was solved at the
1667  * current subproblem, and returns either the LP solution or the pseudo solution).
1668  *
1669  * Unlike the ENFOLP callback, the ENFOPS callback must not add cuts and cannot return the result SCIP_SEPARATED.
1670  * It is, however, possible to force the solving of the LP by returning the result SCIP_SOLVELP.
1671  * For example, the infeasibility of a linear constraint that contains continuous variables cannot be resolved,
1672  * if all integer variables in the constraint are already fixed.
1673  * In this case, the LP has to be solved in order to get a solution that satisfies the linear constraint.
1674  *
1675  * @subsection CONSLOCK
1676  *
1677  * The CONSLOCK callback provides dual information for a single constraint.
1678  * It has to tell SCIP, which variables are existing in the given constraint, and in which way modifications of these
1679  * variables may affect the feasibility of the constraint.
1680  *
1681  * For each variable that is affected by the constraint, the callback should call SCIPaddVarLocks():
1682  * - If the constraint may become violated by decreasing the value of a variable, it should call
1683  * SCIPaddVarLocks(scip, var, nlockspos, nlocksneg), saying that rounding down is potentially rendering the
1684  * (positive) constraint infeasible and rounding up is potentially rendering the negation of the constraint
1685  * infeasible.
1686  * - If the constraint may become violated by increasing the value of a variable, it should call
1687  * SCIPaddVarLocks(scip, var, nlocksneg, nlockspos), saying that rounding up is potentially rendering the
1688  * constraint's negation infeasible and rounding down is potentially rendering the constraint itself
1689  * infeasible.
1690  * - If the constraint may become violated by changing the variable in any direction, it should call
1691  * SCIPaddVarLocks(scip, var, nlockspos + nlocksneg, nlockspos + nlocksneg).
1692  *
1693  * <b>Note:</b> You do not have to worry about nlockspos and nlocksneg. These integer values are given as
1694  * parameter of the CONSLOCK callback (see type_cons.h). Just use these variables in the above described
1695  * fashion <b>without</b> adding or subtracting anything to them. In case of the knapsack constraints this
1696  * method looks like this.
1697  *
1698  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsLockKnapsack}
1699  *
1700  * To give same more intuition, consider the linear constraint \f$3x -5y +2z \leq 7\f$ as an example.
1701  * The CONSLOCK callback method of the linear constraint handler should call
1702  * SCIPaddVarLocks(scip, x, nlocksneg, nlockspos), SCIPaddVarLocks(scip, y, nlockspos, nlocksneg),
1703  * and SCIPaddVarLocks(scip, z, nlocksneg, nlockspos) to tell SCIP, that rounding up of \f$x\f$
1704  * and \f$z\f$ and rounding down of \f$y\f$ can destroy the feasibility of the constraint, while rounding
1705  * down of \f$x\f$ and \f$z\f$ and rounding up of \f$y\f$ can destroy the feasibility of the
1706  * constraint's negation \f$3x -5y +2z > 7\f$.
1707  * \n
1708  * A linear constraint \f$2 \leq 3x -5y +2z \leq 7\f$ should call
1709  * SCIPaddVarLocks(scip, ..., nlockspos + nlocksneg, nlockspos + nlocksneg) on all variables,
1710  * since rounding in both directions of each variable can destroy both the feasibility of the
1711  * constraint and it's negation \f$3x -5y +2z < 2\f$ or \f$3x -5y +2z > 7\f$.
1712  *
1713  *
1714  * @section CONS_ADDITIONALCALLBACKS Additional Callback Methods
1715  *
1716  * The additional callback methods do not need to be implemented in every case, but provide useful functionality
1717  * for many applications. They can be added to your constraint handler via setter functions, see
1718  * \ref CONS_INTERFACE "here".
1719  *
1720  * @subsection CONSFREE
1721  *
1722  * If you are using constraint handler data, you have to implement this method in order to free the
1723  * constraint handler data. This can be done by the following procedure (which is taken from the
1724  * \ref cons_knapsack.h "knapsack constraint handler"):
1725  *
1726  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsFreeKnapsack}
1727  *
1728  * If you have allocated memory for fields in your constraint handler data, remember to free this memory
1729  * before freeing the constraint handler data itself.
1730  * If you are using the C++ wrapper class, this method is not available.
1731  * Instead, just use the destructor of your class to free the member variables of your class.
1732  *
1733  * @subsection CONSHDLRCOPY
1734  *
1735  * The CONSHDLRCOPY callback is executed when the SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
1736  * callback as <code>NULL</code> the user disables the inclusion of the specified constraint handler into all copied SCIP
1737  * instances. This may deteriorate the performance of primal heuristics solving sub-SCIPs, since these constitute only
1738  * relaxations of the original problem if constraint handlers are missing.
1739  *
1740  * A usual implementation just
1741  * calls the interface method which includes the constraint handler to the model. For example, this callback is
1742  * implemented for the \ref cons_knapsack.c "knapsack constraint handler" as follows:
1743  *
1744  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsCopyKnapsack}
1745  *
1746  * <b>Note:</b> If you implement this callback, take care when setting the valid pointer.
1747  *
1748  * A problem copy is called valid if it is valid in both the primal and the dual sense, i.e., if
1749  *
1750  * - it is a relaxation of the source problem
1751  * - it does not enlarge the feasible region.
1752  *
1753  * A constraint handler may choose to not copy a constraint and still declare the resulting copy as valid. It must ensure
1754  * the feasibility of any solution to the problem copy in the original (source) space.
1755  *
1756  * <b>Note:</b> If you implement this callback and the constraint handler needs constraints (see CONSHDLR_NEEDSCONS),
1757  * then you also need to implement the callback \ref CONSCOPY.
1758  *
1759  * @subsection CONSINIT
1760  *
1761  * The CONSINIT callback is executed after the problem is transformed.
1762  * The constraint handler may, e.g., use this call to replace the original variables in its constraints by transformed
1763  * variables, or to initialize its statistical constraint handler data.
1764  *
1765  * @subsection CONSEXIT
1766  *
1767  * The CONSEXIT callback is executed before the transformed problem is freed.
1768  * In this method, the constraint handler should free all resources that were allocated for the solving process.
1769  *
1770  * @subsection CONSINITPRE
1771  *
1772  * The CONSINITPRE callback is executed before the preprocessing is started, even if presolving is turned off.
1773  * The constraint handler may use this call to initialize its presolving data, or to modify its constraints
1774  * before the presolving process begins.
1775  * Necessary constraint modifications that have to be performed even if presolving is turned off should be done here
1776  * or in the presolving deinitialization call.
1777  *
1778  * @subsection CONSEXITPRE
1779  *
1780  * The CONSEXITPRE callback is executed after the preprocessing has been finished, even if presolving is turned off.
1781  * The constraint handler may use this call e.g. to clean up its presolving data, or to finally modify its constraints
1782  * before the branch-and-bound process begins.
1783  * Necessary constraint modifications that have to be performed even if presolving is turned off should be done here
1784  * or in the presolving initialization call.
1785  * Besides necessary modifications and clean up, no time consuming operations should be done.
1786  *
1787  * @subsection CONSINITSOL
1788  *
1789  * The CONSINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
1790  * begin.
1791  * The constraint handler may use this call to initialize its branch-and-bound specific data.
1792  *
1793  * @subsection CONSEXITSOL
1794  *
1795  * The CONSEXITSOL callback is executed before the branch-and-bound process is freed.
1796  * The constraint handler should use this call to clean up its branch-and-bound data, in particular to release
1797  * all LP rows that it has created or captured.
1798  *
1799  * @subsection CONSDELETE
1800  *
1801  * The CONSDELETE callback is executed if a constraint should be freed.
1802  * You can think of it as the destructor of a single constraint.
1803  * In the callback, you have to free the given constraint data.
1804  * The CONSDELETE callback is therefore the counterpart of the SCIPcreateCons...() interface method and the CONSTRANS
1805  * method.
1806  *
1807  * @subsection CONSTRANS
1808  *
1809  * The CONSTRANS method is called for each constraint of the constraint handler, when the user starts the solving
1810  * process.
1811  * It has to copy the original constraint data of the constraint to the memory for the transformed problem.
1812  * You can think of it as a copy constructor for a single constraint.
1813  *
1814  * The original model is copied in order to protect it from transformations that are applied during the solving process,
1815  * in particular during preprocessing.
1816  * Preprocessing and solving always operates on the transformed problem.
1817  * If the solving process data are freed, the original data still exist and the user can, e.g., modify the problem and
1818  * restart the solving process.
1819  *
1820  * If you do not implement the CONSTRANS method, a transformed constraint is created with the same flags and the
1821  * same constraint data pointer.
1822  * That means, the transformed constraint points to the original constraint data.
1823  * This is okay, as long as the constraint data is not changed during the solving process.
1824  * If you want to implement preprocessing methods or other methods that modify the constraint data, you have to
1825  * implement the CONSTRANS method and create a copy of the constraint data.
1826  *
1827  * Here is an example, which is taken from the \ref cons_knapsack.h "knapsack constraint handler":
1828  *
1829  * @refsnippet{src/scip/cons_knapsack.c,SnippetConsTransKnapsack}
1830  *
1831  * @subsection CONSINITLP
1832  *
1833  * The CONSINITLP callback is executed before the first LP relaxation is solved.
1834  * It should add the LP relaxations of all "initial" constraints to the LP. The method should scan the constraints
1835  * array for constraints that are marked initial via calls to SCIPconsIsInitial() and put the LP relaxation
1836  * of all initial constraints to the LP with calls to SCIPaddCut().
1837  *
1838  * @subsection CONSSEPALP
1839  *
1840  * The CONSSEPALP callback is executed during the price-and-cut loop of the subproblem processing.
1841  * It should try to generate cutting planes for the constraints of the constraint handler in order to separate
1842  * the current LP solution.
1843  * The method is called in the LP solution loop, which means that a valid LP solution exists.
1844  *
1845  * Usually, a separation callback searches and produces cuts, that are added with a call to SCIPaddCut().
1846  * If the cut should be remembered in the global cut pool, it may also call SCIPaddPoolCut().
1847  * However, the callback may also produce domain reductions or add other constraints.
1848  *
1849  * The CONSSEPALP callback has the following options:
1850  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1851  * - adding an additional constraint (result SCIP_CONSADDED)
1852  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1853  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
1854  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
1855  * (result SCIP_DIDNOTFIND)
1856  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
1857  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
1858  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
1859  *
1860  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1861  * CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, and CONSHDLR_DELAYSEPA, which influence the behaviour of SCIP
1862  * calling CONSSEPALP.
1863  *
1864  * @subsection CONSSEPASOL
1865  *
1866  * The CONSSEPASOL callback is executed during separation loop on arbitrary primal solutions.
1867  * It should try to generate cutting planes for the constraints of the constraint handler in order to separate
1868  * the given primal solution.
1869  * The method is not called in the LP solution loop, which means that there is no valid LP solution.
1870  *
1871  * Usually, a separation callback searches and produces cuts, that are added with a call to SCIPaddCut().
1872  * If the cut should be remembered in the global cut pool, it may also call SCIPaddPoolCut().
1873  * However, the callback may also produce domain reductions or add other constraints.
1874  *
1875  * The CONSSEPASOL callback has the following options:
1876  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1877  * - adding an additional constraint (result SCIP_CONSADDED)
1878  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1879  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
1880  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
1881  * (result SCIP_DIDNOTFIND)
1882  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
1883  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
1884  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
1885  *
1886  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1887  * CONSHDLR_SEPAFREQ, CONSHDLR_SEPAPRIORITY, and CONSHDLR_DELAYSEPA, which influence the behaviour of SCIP
1888  * calling CONSSEPASOL.
1889  *
1890  * @subsection CONSENFORELAX
1891  *
1892  * The CONSENFORELAX callback is similar to the CONSENFOLP and CONSENFOPS callbacks, but deals with relaxation solutions.
1893  *
1894  * If the best bound computed by a relaxator that includes the whole LP is strictly better than the bound of the LP itself,
1895  * the corresponding relaxation solution will get enforced. Therefore the CONSENFORELAX callback will only be called for
1896  * solutions that satisfy all active LP-constraints.
1897  *
1898  * Like the ENFOLP and ENFOPS callbacks, the ENFORELAX callback has to check whether the solution given in sol satisfies
1899  * all the constraints of the constraint handler. Since the callback is only called for relaxators including the whole LP,
1900  * cuts may be added with a result of SCIP_SEPARATED, like in the ENFOLP callback. It is also possible to return
1901  * SCIP_SOLVELP if the relaxation solution is invalid for some reason and the LP should be solved instead.
1902  *
1903  * Note that the CONSENFORELAX callback is only relevant if relaxators are used. Since the basic distribution of the
1904  * SCIP Optimization Suite does not contain any relaxators, this callback can be ignored unless any relaxators are added
1905  * via user-plugins.
1906  *
1907  * @subsection CONSPROP
1908  *
1909  * The CONSPROP callback is called during the subproblem processing.
1910  * It should propagate the constraints, which means that it should infer reductions in the variables' local bounds
1911  * from the current local bounds.
1912  * This technique, which is the main workhorse of constraint programming, is called "node preprocessing" in the
1913  * Integer Programming community.
1914  *
1915  * The CONSPROP callback has the following options:
1916  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
1917  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
1918  * - stating that the propagator searched, but did not find domain reductions, cutting planes, or cut constraints
1919  * (result SCIP_DIDNOTFIND)
1920  * - stating that the propagator was skipped (result SCIP_DIDNOTRUN)
1921  * - stating that the propagator was skipped, but should be called again (result SCIP_DELAYED)
1922  *
1923  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1924  * CONSHDLR_PROPFREQ, CONSHDLR_DELAYPROP, and CONSHDLR_PROP_TIMING, which influence the behaviour of SCIP
1925  * calling CONSPROP.
1926  *
1927  * @subsection CONSRESPROP
1928  *
1929  * If the constraint handler should support \ref CONF "conflict analysis", it has to supply a CONSRESPROP method.
1930  * It also should call SCIPinferVarLbCons() or SCIPinferVarUbCons() in domain propagation instead of SCIPchgVarLb() or
1931  * SCIPchgVarUb() in order to deduce bound changes on variables.
1932  * In the SCIPinferVarLbCons() and SCIPinferVarUbCons() calls, the handler provides the constraint that deduced the
1933  * variable's bound change, and an integer value <code>inferinfo</code> that can be arbitrarily chosen.
1934  *
1935  * The propagation conflict resolving method CONSRESPROP must then be implemented to provide the "reasons" for the bound
1936  * changes, i.e., the bounds of variables at the time of the propagation, which forced the constraint to set the
1937  * conflict variable's bound to its current value. It can use the <code>inferinfo</code> tag to identify its own propagation rule
1938  * and thus identify the "reason" bounds. The bounds that form the reason of the assignment must then be provided by
1939  * calls to SCIPaddConflictLb() and SCIPaddConflictUb() in the propagation conflict resolving method.
1940  *
1941  * <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
1942  * need more information to efficiently infer the original propagation steps that lead to the conflict. This would,
1943  * however, require too much space. In the extreme, the original propagation steps have to be repeated.
1944  *
1945  * 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
1946  * 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
1947  * variables are 0.0). It uses <code>SCIPinferVarLbCons(scip, z, 1.0, c, 0)</code> to apply this assignment (an
1948  * inference information tag is not needed by the constraint handler and is set to 0). In the conflict analysis, the
1949  * constraint handler may be asked to resolve the lower bound change on \f$z\f$ with constraint \f$c\f$, that was
1950  * applied at a time given by a bound change index "bdchgidx". With a call to <code>SCIPvarGetLbAtIndex(z,
1951  * bdchgidx)</code>, the handler can find out, that the lower bound of variable \f$z\f$ was set to 1.0 at the given
1952  * point of time, and should call <code>SCIPaddConflictUb(scip, x, bdchgidx)</code> and <code>SCIPaddConflictUb(scip, y,
1953  * 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
1954  * the deduction of the lower bound of \f$z\f$.
1955  *
1956  * If conflict analysis should not be supported, the method has to set the result code to SCIP_DIDNOTFIND. Although
1957  * this is a viable approach to circumvent the implementation of the usually rather complex conflict resolving method, it
1958  * will make the conflict analysis less effective. We suggest to first omit the conflict resolving method and check how
1959  * effective the \ref CONSPROP "propagation method" is. If it produces a lot of propagations for your application, you definitely should
1960  * consider implementing the conflict resolving method.
1961  *
1962  * @subsection CONSPRESOL
1963  *
1964  * The CONSPRESOL callback is called during preprocessing.
1965  * It should try to tighten the domains of the variables, tighten the coefficients of the constraints of the constraint
1966  * handler, delete redundant constraints, aggregate and fix variables if possible, and upgrade constraints to more
1967  * specific types.
1968  *
1969  * If the CONSPRESOL callback applies changes to the constraint data, you also have to implement the \ref CONSTRANS callback
1970  * in order to copy the constraint data to the transformed problem space and protect the original problem from the
1971  * preprocessing changes.
1972  *
1973  * To inform SCIP that the presolving method found a reduction the result pointer has to be set in a proper way.
1974  * The following options are possible:
1975  *
1976  * - SCIP_UNBOUNDED : at least one variable is not bounded by any constraint in objective direction
1977  * - SCIP_CUTOFF : at least one constraint is infeasible in the variable's bounds
1978  * - SCIP_SUCCESS : the presolver found a reduction
1979  * - SCIP_DIDNOTFIND : the presolver searched, but did not find a presolving change
1980  * - SCIP_DIDNOTRUN : the presolver was skipped
1981  * - SCIP_DELAYED : the presolver was skipped, but should be called again
1982  *
1983  * Please see also the @ref CONS_ADDITIONALPROPERTIES section to learn about the properties
1984  * CONSHDLR_PRESOLTIMING and CONSHDLR_MAXPREROUNDS, which influence the behaviour of SCIP
1985  * calling CONSPRESOL.
1986  *
1987  * @subsection CONSACTIVE
1988  *
1989  * The CONSACTIVE callback method is called each time a constraint of the constraint handler is activated.
1990  * For example, if a constraint is added locally to a subproblem, the CONSACTIVE callback is called whenever the
1991  * search enters the subtree where the constraint exists.
1992  *
1993  * @subsection CONSDEACTIVE
1994  *
1995  * The CONSDEACTIVE callback method is called each time a constraint of the constraint handler is deactivated.
1996  * For example, if a constraint is added locally to a subproblem, the CONSDEACTIVE callback is called whenever the
1997  * search leaves the subtree where the constraint exists.
1998  *
1999  * @subsection CONSENABLE
2000  *
2001  * The CONSENABLE callback method is called each time a constraint of the constraint handler is enabled.
2002  * Constraints might be active without being enabled. In this case, only the feasibility checks are executed,
2003  * but domain propagation and separation is skipped.
2004  *
2005  * @subsection CONSDISABLE
2006  *
2007  * The CONSDISABLE callback method is called each time a constraint of the constraint handler is disabled.
2008  *
2009  * @subsection CONSPRINT
2010  *
2011  * The CONSPRINT callback method is called, when the user asks SCIP to display the problem to the screen
2012  * or save the problem into a file. This is, however, only the case if the user requested the CIP format.
2013  * For more details about reading and writing with SCIP we refer to the \ref READER "file readers". In this
2014  * callback method the constraint handler should display the data of the constraint in an appropriate form.
2015  * The output format that is defined by the CONSPRINT callbacks is called CIP format.
2016  * In later versions of SCIP, the constraint handlers should also be able to parse (i.e., read) constraints
2017  * which are given in CIP format.
2018  *
2019  * @subsection CONSCOPY
2020  *
2021  * The CONSCOPY callback method is used whenever constraints should be copied from one SCIP instance into another SCIP
2022  * instance. This method comes with the necessary parameters to do so, most importantly with a mapping of the variables of the
2023  * source SCIP instance to the corresponding variables of the target SCIP instance, and a mapping for the constraints
2024  * in the same way. For a complete list of all arguments of this callback method see type_cons.h.
2025  *
2026  * To get the corresponding target variable of a given source variable, you can use the variable map directly:
2027  *
2028  * \code
2029  * targetvar = (SCIP_VAR*) SCIPhashmapGetImage(varmap, sourcevar);
2030  * \endcode
2031  *
2032  * We recommend, however, to use the method SCIPgetVarCopy() which gets besides others the variable map and the constraint map as input
2033  * and returns the requested target variable. The advantage of using SCIPgetVarCopy() is that in the case
2034  * the required variable does not yet exist, it is created and added to the copy automatically:
2035  *
2036  * \code
2037  * SCIP_CALL( SCIPgetVarCopy(sourcescip, scip, sourcevar, &targetvar, varmap, consmap, global) );
2038  * \endcode
2039  *
2040  * Finally, the result pointer <code>valid</code> has to be set to TRUE if (and only if!) the copy process was successful.
2041  *
2042  * <b>Note:</b> Be careful when setting the valid pointer.
2043  * A problem copy is called valid if it is valid in both the primal and the dual sense, i.e., if
2044  *
2045  * - it is a relaxation of the source problem
2046  * - it does not enlarge the feasible region.
2047  *
2048  * A constraint handler may choose to not copy a constraint and still declare the resulting copy as valid. Therefore, it must ensure
2049  * the feasibility of any solution to the problem copy in the original (source) space.
2050  *
2051  * For an example implementation we refer to cons_linear.h. Additional documentation and the complete list of all
2052  * parameters can be found in the file in type_cons.h.
2053  *
2054  * @subsection CONSPARSE
2055  *
2056  * This method is the counter part to CONSPRINT. The ideal idea is that a constraint handler is able to parse the output
2057  * which it generated via the CONSPRINT method and creates the corresponding constraint. If the parsing was successfully
2058  * the result pointer success should be set to TRUE. An example implementation can be found in the \ref cons_linear.h
2059  * "linear constraint handler".
2060  *
2061  * @subsection CONSDELVARS
2062  *
2063  * This method should iterate over the given constraints and delete all variables that were marked for deletion by SCIPdelVar().
2064  * Variable deletion is especially interesting for branch-cut-and-price applications. If your constraint handler allows
2065  * the addition of variables during the solving process (see "modifiable" attribute of constraints), then you might also want to
2066  * implement this callback. This would allow you to not only create variables during solving, but also remove them dynamically
2067  * from the problem to reduce memory consumption in case they are no longer necessary.
2068  * During presolving, SCIP may also find that some variables are not needed anymore and then try
2069  * to delete them. Thus, if you do not implement this callback, the constraint handler should capture its variables via
2070  * SCIPcaptureVar() to prevent SCIP from erroneously deleting them.
2071  *
2072  * Additional documentation and the complete list of all parameters can be found in the file type_cons.h.
2073  *
2074  * @subsection CONSGETVARS
2075  *
2076  * The CONSGETVARS callback of a constraint handler can be implemented to give access to the constraint variables
2077  * as array, independently from the internal data structure of the constraint. The buffer array
2078  * is already passed, together with its length. Consider implementing @ref CONSGETNVARS, too, to have
2079  * information about the number of variables in this constraint.
2080  *
2081  * @subsection CONSGETNVARS
2082  *
2083  * This callback can be implemented to return the number of variables involved into a particular constraint.
2084  * In order to have access to the variable pointers, consider implementing @ref CONSGETVARS.
2085  *
2086  * @refsnippet{src/scip/cons_linear.c,Callback for the number of variables}
2087  *
2088  * @subsection CONSGETDIVEBDCHGS
2089  *
2090  * This callback is used inside the various diving heuristics of SCIP and does not affect the normal branching
2091  * of the actual search.
2092  * The constraint handler can provide this callback to render a current working solution (even more) infeasible by
2093  * suggesting one or several variable bound changes.
2094  *
2095  * @section CONS_FURTHERINFO Further documentation
2096  *
2097  * Further documentation can be found in @ref type_cons.h for callback descriptions and a complete
2098  * list of all callback parameters, or in @ref scip.h
2099  * for globally available functions.
2100  */
2101 
2102 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2103 
2104 /**@page PRICER How to add variable pricers
2105  *
2106  * A pricer performs the dynamic generation of new variables in a column generation algorithm.
2107  * It is an algorithmic representation of a (usually exponential) number of variables.
2108  * The \ref PRICERREDCOST and \ref PRICERFARKAS methods are called after each LP solve to generate additional
2109  * variables which may improve the objective value or decrease the LP infeasibility, respectively.
2110  * \n
2111  * A complete list of all pricers contained in this release can be found \ref PRICERS "here".
2112  *
2113  * If the pricer finds one or more variables with negative reduced costs or negative Farkas value, it should
2114  * call SCIPcreateVar() and SCIPaddPricedVar() to create and add the variable to the problem. Additionally,
2115  * the pricer has to add the variable to all constraints in which it appears. Therefore, a pricer needs to
2116  * know the constraints of the model and their meaning. Note that all constraints for which additional variables
2117  * are generated by a pricer have to be flagged as "modifiable" in the SCIPcreateCons() call.
2118  *
2119  * We now explain how users can add their own pricers.
2120  * For example, look into the variable pricer for the binpacking problem (examples/Binpacking/src/pricer_binpacking.c) of the
2121  * Binpacking example project.
2122  * The example is written in C. C++ users can easily adapt the code by using the scip::scip::ObjPricer wrapper base class and
2123  * implement the scip_...() virtual methods instead of the SCIP_DECL_PRICER... callback methods.
2124  *
2125  * Additional documentation for the callback methods of a pricer can be found in the file
2126  * type_pricer.h.
2127  *
2128  * Notice that if your pricer cannot cope with variable bounds other than 0 and infinity, you have to mark
2129  * all constraints containing priced variables as modifiable, and you may have to disable reduced cost
2130  * strengthening by setting propagating/rootredcost/freq to -1.
2131  *
2132  * Here is what you have to do to implement a pricer:
2133  * -# Copy the template files src/scip/pricer_xyz.c and src/scip/pricer_xyz.h into files "pricer_mypricer.c"
2134  * and "pricer_mypricer.h".
2135  * \n
2136  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2137  * -# Use SCIPincludePricerMypricer() in order to include the pricer into your SCIP instance,
2138  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2139  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypricer".
2140  * -# Adjust the properties of the pricer (see \ref PRICER_PROPERTIES).
2141  * -# Define the pricer data (see \ref PRICER_DATA). This is optional.
2142  * -# Implement the interface methods (see \ref PRICER_INTERFACE).
2143  * -# Implement the fundamental callback methods (see \ref PRICER_FUNDAMENTALCALLBACKS).
2144  * -# Implement the additional callback methods (see \ref PRICER_ADDITIONALCALLBACKS). This is optional.
2145  *
2146  *
2147  * @section PRICER_PROPERTIES Properties of a Pricer
2148  *
2149  * At the top of the new file "pricer_mypricer.c" you can find the pricer properties.
2150  * These are given as compiler defines.
2151  * In the C++ wrapper class, you have to provide the pricer properties by calling the constructor
2152  * of the abstract base class scip::ObjPricer from within your constructor.
2153  * The properties you have to set have the following meaning:
2154  *
2155  * \par PRICER_NAME: the name of the pricer.
2156  * This name is used in the interactive shell to address the pricer.
2157  * Additionally, if you are searching for a pricer with SCIPfindPricer(), this name is looked up.
2158  * Names have to be unique: no two pricers may have the same name.
2159  *
2160  * \par PRICER_DESC: the description of the pricer.
2161  * This string is printed as a description of the pricer in the interactive shell.
2162  *
2163  * \par PRICER_PRIORITY: the priority of the pricer.
2164  * In each pricing round during the price-and-cut loop of the subproblem processing, the included pricers are
2165  * called in a predefined order, which is given by the priorities of the pricers.
2166  * The higher the priority, the earlier the pricer is called.
2167  * Usually, you will have only one pricer in your application and the priority is therefore irrelevant.
2168  *
2169  * \par PRICER_DELAY: the default for whether the pricer should be delayed, if other variables with negative reduced
2170  * costs have already been found in the current pricing round.
2171  * Variables may be declared to be "removable" in the SCIPcreateVar() call. This means that SCIP may remove the variable
2172  * from the LP if it was inactive (i.e., sitting at zero) for a number of LP solves. Nevertheless, after the removal of the
2173  * column from the LP, the variable still exists, and SCIP can calculate reduced costs and add it to the LP again if
2174  * necessary.
2175  * \n
2176  * If the PRICER_DELAY flag is set to TRUE (which is the common setting), all those existing variables with negative reduced costs
2177  * are added to the LP, and the LP is resolved before the pricer is called. Thus, the pricer can assume that all existing variables
2178  * have non-negative reduced costs if the \ref PRICERREDCOST method is called or non-positive Farkas value if the \ref PRICERFARKAS
2179  * method is called.
2180  * \n
2181  * In some applications, this inner pricing loop on the already existing variables can significantly slow down the solving process,
2182  * since it may lead to the addition of only very few variables in each pricing round. If this is an issue in your application,
2183  * you should consider setting the PRICER_DELAY flag to FALSE. You must, however, be aware of the fact that there may be already
2184  * existing variables with negative reduced costs. For example, this may lead to the issue that your pricer generates the same
2185  * variable twice. In some models, this is not critical because an optimal solution would choose only one of the two identical
2186  * variables anyway, but for other models this can lead to wrong results because the duplication of a variable essentially doubles
2187  * the upper bound of the variable.
2188  *
2189  *
2190  * @section PRICER_DATA Pricer Data
2191  *
2192  * Below the header "Data structures" you can find a struct which is called "struct SCIP_PricerData".
2193  * In this data structure, you can store the data of your pricer. For example, it may be convenient to store pointers to the
2194  * constraints of the problem instance here, because the pricer has to add variables to those constraints.
2195  * If you are using C++, you can add pricer data, as usual, as object variables to your class.
2196  * \n
2197  * Defining pricer data is optional. You can leave the struct empty.
2198  *
2199  *
2200  * @section PRICER_INTERFACE Interface Methods
2201  *
2202  * At the bottom of "pricer_mypricer.c" you can find the interface method SCIPincludePricerMypricer(), which also appears in "pricer_mypricer.h".
2203  * 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
2204  * be generated by this pricer.
2205  *
2206  * This method only has to be adjusted slightly.
2207  * It is responsible for notifying SCIP of the presence of the pricer. For this, you can either call SCIPincludePricer(),
2208  * or SCIPincludePricerBasic() since SCIP version 3.0. In the latter variant, \ref PRICER_ADDITIONALCALLBACKS "additional callbacks"
2209  * must be added via setter functions as, e.g., SCIPsetPricerCopy(). We recommend this latter variant because
2210  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2211  * variant must be manually adjusted with every SCIP release containing new callbacks for pricers in order to compile.
2212  *
2213  *
2214  * In addition, the pricer has to be activated before the solution process starts, like it is done
2215  * in the pricer of the Coloring application (applications/Coloring/src/reader_col.c) by calling
2216  * \code
2217  * SCIP_CALL( SCIPactivatePricer(scip, SCIPfindPricer(scip, "coloring")) );
2218  * \endcode
2219  *
2220  * If you are using pricer data, you have to allocate the memory for the data at this point.
2221  * You can do this by calling:
2222  * \code
2223  * SCIP_CALL( SCIPallocBlockMemory(scip, &pricerdata) );
2224  * \endcode
2225  * You also have to initialize the fields in struct SCIP_PricerData afterwards.
2226  *
2227  * You may also add user parameters for your pricer, see the method SCIPincludePricerColoring() in the pricer of the Coloring application
2228  * for an example of how to add user parameters.
2229  *
2230  *
2231  * @section PRICER_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Pricer
2232  *
2233  * The fundamental callback methods have to be implemented in order to obtain an operational algorithm.
2234  * They are passed together with the pricer itself to SCIP using SCIPincludePricer() or SCIPincludePricerBasic(),
2235  * see @ref PRICER_INTERFACE.
2236  *
2237  * In the case of a pricer, there are two fundamental callback methods, namely the @ref PRICERREDCOST and the
2238  * @ref PRICERFARKAS callbacks, which both search for new variables and add them to the problem.
2239  * These methods have to be implemented for every pricer; the other callback methods are optional.
2240  * In the C++ wrapper class scip::ObjPricer, the scip_redcost() method (which corresponds to the PRICERREDCOST callback)
2241  * is a virtual abstract member function. You have to implement it in order to be able to construct an object of your
2242  * pricer class.
2243  *
2244  * Additional documentation for the callback methods can be found in type_pricer.h.
2245  *
2246  * @subsection PRICERREDCOST
2247  *
2248  * The PRICERREDCOST callback is called inside the price-and-cut loop of the subproblem solving process if the current LP relaxation
2249  * is feasible.
2250  * It should search for additional variables that can contribute to improve the current LP's solution value.
2251  * In standard branch-and-price, these are variables with negative dual feasibility, that is negative
2252  * reduced costs for non-negative variables, positive reduced costs for non-positive variables,
2253  * and non-zero reduced costs for variables that can be negative and positive.
2254  *
2255  * Whenever the pricer finds a variable with negative dual feasibility, it should call SCIPcreateVar()
2256  * and SCIPaddPricedVar() to add the variable to the problem. Furthermore, it should call the appropriate
2257  * methods of the constraint handlers to add the necessary variable entries to the constraints, see pub_cons.h.
2258  *
2259  * In the usual case that the pricer either adds a new variable or ensures that there are no further variables with negative dual feasibility,
2260  * the result pointer should be set to SCIP_SUCCESS. Only if the pricer aborts pricing without creating a new variable, but
2261  * there might exist additional variables with negative dual feasibility, the result pointer should be set to SCIP_DIDNOTRUN.
2262  * In this case, which sometimes is referred to as "early branching", the LP solution will not be used as a lower bound.
2263  * The pricer can, however, store a valid lower bound in the <code>lowerbound</code> pointer.
2264  *
2265  * Pricers usually need the dual LP solution as input for the pricing algorithm.
2266  * Since SCIP does not know the semantics of the individual constraints in the problem, the dual solution
2267  * has to be provided by the constraint handlers.
2268  * For example, the \ref cons_setppc.h "setppc constraint handler", which deals with set partitioning, packing, and covering constraints, provides
2269  * the method SCIPgetDualsolSetppc() to access the dual solution value for a single constraint.
2270  * Similarly, the dual solution of a linear constraint can be queried with the method SCIPgetDualsolLinear() of cons_linear.h.
2271  * The reduced costs of the existing variables can be accessed with the method SCIPgetVarRedcost().
2272  *
2273  * @subsection PRICERFARKAS
2274  *
2275  * If the current LP relaxation is infeasible, it is the task of the pricer to generate additional variables that can
2276  * potentially render the LP feasible again. In standard branch-and-price, these are variables with positive Farkas values,
2277  * and the PRICERFARKAS method should identify those variables.
2278  *
2279  * If the LP was proven to be infeasible, we have an infeasibility proof by the dual Farkas multipliers \f$y\f$.
2280  * 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
2281  * by the sides of the LP rows and the sign of \f$y\f$:
2282  * - if \f$y_i\f$ is positive, \f$b_i\f$ is the left hand side of the row,
2283  * - if \f$y_i\f$ is negative, \f$b_i\f$ is the right hand side of the row.
2284  *
2285  * \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$,
2286  * especially by the (for this inequality least infeasible solution) \f$x'\f$ defined by
2287  * - \f$x'_i := ub_i\f$, if \f$y^T A_i \ge 0\f$
2288  * - \f$x'_i := lb_i\f$, if \f$y^T A_i < 0\f$.
2289  * 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$.
2290  *
2291  * To apply Farkas pricing, the pricer needs to know the Farkas values of the constraints. Like the dual solution values for
2292  * feasible LP solutions, the dual Farkas values for infeasible solutions can be obtained by constraint handler interface
2293  * methods such as the SCIPgetDualfarkasLinear() method of the linear constraint handler.
2294  * The Farkas values for the bounds of the variables are just the regular reduced costs and can be accessed with SCIPgetVarRedcost().
2295  *
2296  * It is useful to note that Farkas pricing is the same as the regular pricing with a zero objective function.
2297  * Therefore, a typical implementation of a pricer would consist of a generic pricing algorithm that gets a dual solution and an
2298  * objective function vector as input and generates variables by calling SCIPcreateVar() and SCIPaddPricedVar().
2299  * The PRICERREDCOST callback would call this function with the regular objective function and the regular dual solution vector,
2300  * while the PRICERFARKAS callback would call this function with a zero objective function and the Farkas vector.
2301  * From a practical point of view, it is usually the simplest approach to provide just one Boolean flag to the generic pricing
2302  * algorithm in order to identify whether it is reduced cost or Farkas pricing. Then, the algorithm would just call the appropriate
2303  * methods to access the dual solution or objective function, depending on the Boolean flag.
2304  *
2305  * @section PRICER_ADDITIONALCALLBACKS Additional Callback Methods of a Pricer
2306  *
2307  * The additional callback methods do not need to be implemented in every case.
2308  * However, some of them have to be implemented for most applications. They can either be passed directly with
2309  * SCIPincludePricer() to SCIP or via specific <b>setter functions</b> after a call of SCIPincludePricerBasic(),
2310  * see also @ref PRICER_INTERFACE.
2311  *
2312  * @subsection PRICERFREE
2313  *
2314  * If you are using pricer data, you have to implement this method in order to free the pricer data.
2315  * This can be done by the following procedure:
2316  *
2317  * @refsnippet{applications/STP/src/pricer_stp.c,SnippetPricerFreeSTP}
2318  *
2319  * If you have allocated memory for fields in your pricer data, remember to free this memory
2320  * before freeing the pricer data itself.
2321  * If you are using the C++ wrapper class, this method is not available.
2322  * Instead, just use the destructor of your class to free the member variables of your class.
2323  *
2324  * @subsection PRICERCOPY
2325  *
2326  * The PRICERCOPY callback is executed when the SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
2327  * callback as <code>NULL</code> the user disables the inclusion of the pricer into all copied SCIP
2328  * instances. This means that primal heuristics will work on a sub-SCIP that contains only a part of the variables
2329  * and no variables are priced in during the solving process of the sub-SCIP. Therefore, primal solutions found in the
2330  * copied problem are typically still valid for the original problem and used for its solving process,
2331  * but dual reductions cannot be transferred to the original problem.
2332  *
2333  * <b>Note:</b> If you implement this callback, be careful when setting the valid pointer. The valid pointer should be
2334  * set to TRUE if (and only if!) you can make sure that all necessary data of the pricer are copied
2335  * correctly. If the complete problem is validly copied, i.e. if the copy methods of all problem defining plugins
2336  * (constraint handlers and pricers) return <code>*valid = TRUE</code>, then dual reductions found for the copied problem can be
2337  * transferred to the original SCIP instance. Thus, if the valid pointer is wrongly set to TRUE, it might happen that
2338  * optimal solutions are cut off.
2339  *
2340  * @subsection PRICERINIT
2341  *
2342  * The PRICERINIT callback is executed after the problem is transformed.
2343  * The pricer may, e.g., use this call to replace the original constraints stored in its pricer data by transformed
2344  * constraints, or to initialize other elements of its pricer data.
2345  *
2346  * @subsection PRICEREXIT
2347  *
2348  * The PRICEREXIT callback is executed before the transformed problem is freed.
2349  * In this method, the pricer should free all resources that have been allocated for the solving process in PRICERINIT.
2350  *
2351  * @subsection PRICERINITSOL
2352  *
2353  * The PRICERINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to begin.
2354  * The pricer may use this call to initialize its branch-and-bound specific data.
2355  *
2356  * @subsection PRICEREXITSOL
2357  *
2358  * The PRICEREXITSOL callback is executed before the branch-and-bound process is freed.
2359  * The pricer should use this call to clean up its branch-and-bound data, which was allocated in PRICERINITSOL.
2360  *
2361  * @section PRICER_REMARKS Further remarks
2362  *
2363  * 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".
2364  * Otherwise, SCIP will use its default branching rules, if necessary (which all branch on variables). This
2365  * could disturb the pricing problem or branching might not even be possible, e.g., if all variables created thus far have already been fixed.
2366  *
2367  * Note that if the original problem is a maximization problem, SCIP will transform the problem into a minimization
2368  * problem by multiplying the objective function by -1. The pricer has to take care of this by multiplying
2369  * the original objective function value of all variables created during the solving process by -1.
2370  *
2371  * In some cases, bounds on variables are implicitly enforced by constraints of the problem and the objective function.
2372  * 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
2373  * care about the corresponding dual values.
2374  * We call these bounds lazy bounds, they may be set by SCIPchgVarLbLazy() and SCIPchgVarUbLazy() for upper or lower bounds, respectively.
2375  * If the lazy bound is tighter than the local bound, the corresponding bound is not put into the LP.
2376  * In diving mode, lazy bounds are explicitly put into the LP, because changing the objective (which is only possible in diving)
2377  * might reverse the implicitly given bounds. When diving is finished, the bounds are again removed from the LP.
2378  */
2379 
2380 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2381 
2382 /**@page PRESOL How to add presolvers
2383  *
2384  * Presolvers are used to reduce the size of the model by removing irrelevant information like redundant constraints,
2385  * to strengthen the LP relaxation by exploiting integrality information, and to extract useful information in the
2386  * presolving step.
2387  * Constraint based presolving is done in the CONSPRESOL callback methods of the constraint handlers, see \ref CONSPRESOL.
2388  * Some propagation steps can already be applied in presolving via the PROPRESOL callback methods of propagators, see \ref PROPPRESOL.
2389  * The presolver plugins complement these by additional, usually optimality based, presolving reductions.
2390  * \n
2391  * A complete list of all presolvers contained in this release can be found \ref PRESOLVERS "here".
2392  *
2393  * We now explain how users can add their own presolvers.
2394  * Take the trivial presolver (src/scip/presol_trivial.c) as an example.
2395  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjPresol wrapper
2396  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_PRESOL... callback methods.
2397  *
2398  * Additional documentation for the callback methods of a presolver, in particular for their input parameters,
2399  * can be found in the file type_presol.h.
2400  *
2401  * Here is what you have to do to implement a presolver:
2402  * -# Copy the template files src/scip/presol_xyz.c and src/scip/presol_xyz.h into files named "presol_mypresolver.c"
2403  * and "presol_mypresolver.h".
2404  * \n
2405  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2406  * -# Use SCIPincludePresolMypresolver() in order to include the presolver into your SCIP instance,
2407  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2408  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypresolver".
2409  * -# Adjust the properties of the presolver (see \ref PRESOL_PROPERTIES).
2410  * -# Define the presolver data (see \ref PRESOL_DATA). This is optional.
2411  * -# Implement the interface methods (see \ref PRESOL_INTERFACE).
2412  * -# Implement the fundamental callback methods (see \ref PRESOL_FUNDAMENTALCALLBACKS).
2413  * -# Implement the additional callback methods (see \ref PRESOL_ADDITIONALCALLBACKS). This is optional.
2414  *
2415  *
2416  * @section PRESOL_PROPERTIES Properties of a Presolver
2417  *
2418  * At the top of the new file "presol_mypresolver.c", you can find the presolver properties.
2419  * These are given as compiler defines.
2420  * In the C++ wrapper class, you have to provide the presolver properties by calling the constructor
2421  * of the abstract base class scip::ObjPresol from within your constructor.
2422  * The properties you have to set have the following meaning:
2423  *
2424  * \par PRESOL_NAME: the name of the presolver.
2425  * This name is used in the interactive shell to address the presolver.
2426  * Additionally, if you are searching for a presolver with SCIPfindPresol(), this name is looked up.
2427  * Names have to be <b>unique</b>: no two presolvers may have the same name.
2428  *
2429  * \par PRESOL_DESC: the description of the presolver.
2430  * This string is printed as a description of the presolver in the interactive shell.
2431  *
2432  * \par PRESOL_TIMING: the default timing of the presolver.
2433  * There are three presolving timings: FAST, MEDIUM, and EXHAUSTIVE.
2434  * Every presolving round starts with the FAST presolvers. MEDIUM presolvers are only called, if FAST presolvers did not find
2435  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
2436  * in this round were unsuccessful.
2437  * Presolvers should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
2438  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
2439  * If a presolver implements different algorithms of different complexity, it may also get multiple timings and check the timing
2440  * internally in the \ref PRESOLEXEC callback to decide which algorithms to run.
2441  *
2442  * \par PRESOL_PRIORITY: the priority of the presolver.
2443  * Within a presolving round, when calling all presolvers and presolving methods of propagators and constraint handlers
2444  * with a given timing, those are called in
2445  * a predefined order, which is given by the priorities of the presolvers and the check priorities of the
2446  * constraint handlers, see \ref CONS_PROPERTIES.
2447  * First, the presolvers with non-negative priority are called in the order of decreasing priority.
2448  * Next, the presolving methods of the different constraint handlers are called in the order of decreasing check
2449  * priority.
2450  * Finally, the presolvers with negative priority are called in the order of decreasing priority.
2451  * \n
2452  * Again, presolvers that provide fast algorithms that usually have a high impact (i.e., remove lots of variables or tighten
2453  * bounds of many variables) should have a high priority.
2454  * An easy way to list the timings and
2455  * priorities of all presolvers, propagators, and constraint handlers is to type "display presolvers", "display propagators",
2456  * and "display conshdlrs" in the interactive shell of SCIP.
2457  *
2458  * \par PRESOL_MAXROUNDS: the default maximal number of rounds the presolver participates in.
2459  * The presolving is conducted in rounds: the presolvers and presolving methods of the constraint handlers
2460  * are called iteratively until no more reductions have been found or some other abort criterion applies.
2461  * The "maxrounds" parameter of a presolver imposes a limit on the number of presolving rounds in which the
2462  * presolver is called. The PRESOL_MAXROUNDS property specifies the default value for this parameter.
2463  * A value of -1 represents an unlimited number of rounds.
2464  *
2465  *
2466  * @section PRESOL_DATA Presolver Data
2467  *
2468  * Below the header "Data structures" you can find a struct which is called "struct SCIP_PresolData".
2469  * In this data structure, you can store the data of your presolver. For example, you should store the adjustable parameters
2470  * of the presolver in this data structure.
2471  * If you are using C++, you can add presolver data as usual as object variables to your class.
2472  * \n
2473  * Defining presolver data is optional. You can leave this struct empty.
2474  *
2475  *
2476  * @section PRESOL_INTERFACE Interface Methods
2477  *
2478  * At the bottom of "presol_mypresolver.c", you can find the interface method SCIPincludePresolMypresolver(),
2479  * which also appears in "presol_mypresolver.h"
2480  * SCIPincludePresolMypresolver() is called by the user, if (s)he wants to include the presolver,
2481  * i.e., if (s)he wants to use the presolver in his/her application.
2482  *
2483  * This method only has to be adjusted slightly.
2484  * It is responsible for notifying SCIP of the presence of the presolver. For this, you can either call SCIPincludePresol(),
2485  * or SCIPincludePresolBasic() since SCIP version 3.0. In the latter variant, \ref PRESOL_ADDITIONALCALLBACKS "additional callbacks"
2486  * must be added via setter functions as, e.g., SCIPsetPresolCopy(). We recommend this latter variant because
2487  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2488  * variant must be manually adjusted with every SCIP release containing new callbacks for presolvers in order to compile.
2489  *
2490  * If you are using presolver data, you have to allocate the memory for the data at this point.
2491  * You can do this by calling:
2492  * \code
2493  * SCIP_CALL( SCIPallocBlockMemory(scip, &presoldata) );
2494  * \endcode
2495  * You also have to initialize the fields in struct SCIP_PresolData afterwards. For freeing the
2496  * presolver data, see \ref PRESOLFREE.
2497  *
2498  * You may also add user parameters for your presolver, see \ref PARAM for how to add user parameters and
2499  * the method SCIPincludePresolTrivial() in src/scip/presol_trivial.c for an example.
2500  *
2501  *
2502  * @section PRESOL_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Presolver
2503  *
2504  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2505  * an operational algorithm.
2506  * They are passed together with the presolver itself to SCIP using SCIPincludePresol() or SCIPincludePresolBasic(),
2507  * see @ref PRESOL_INTERFACE.
2508  *
2509  * Presolver plugins have only one fundamental callback method, namely the @ref PRESOLEXEC method.
2510  * This method has to be implemented for every presolver; the other callback methods are optional.
2511  * In the C++ wrapper class scip::ObjPresol, the scip_exec() method (which corresponds to the PRESOLEXEC callback) is a virtual
2512  * abstract member function.
2513  * You have to implement it in order to be able to construct an object of your presolver class.
2514  *
2515  * Additional documentation for the callback methods, in particular to their input parameters,
2516  * can be found in type_presol.h.
2517  *
2518  * @subsection PRESOLEXEC
2519  *
2520  * The PRESOLEXEC callback is called inside the presolving loop and should perform the actual presolving reductions.
2521  * It should inspect the problem instance at hand and simplify it by tightening bounds of variables, aggregating or fixing
2522  * variables, changing the type of variables, modifying the graph that represents the instance of your application, and
2523  * the like.
2524  *
2525  * Typical methods called by a presolver are, for example, SCIPchgVarType(), SCIPfixVar(), SCIPaggregateVars(), SCIPtightenVarLb(),
2526  * and SCIPtightenVarUb().
2527  *
2528  *
2529  * @section PRESOL_ADDITIONALCALLBACKS Additional Callback Methods of a Presolver
2530  *
2531  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
2532  * implemented for most applications, they can be used, for example, to initialize and free private data.
2533  * Additional callbacks can either be passed directly with SCIPincludePresol() to SCIP or via specific
2534  * <b>setter functions</b> after a call of SCIPincludePresolBasic(), see also @ref PRESOL_INTERFACE.
2535  *
2536  * @subsection PRESOLFREE
2537  *
2538  * 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.
2539  * This can be done by the following procedure:
2540  *
2541  * @refsnippet{src/scip/presol_boundshift.c,SnippetPresolFreeBoundshift}
2542  *
2543  * If you have allocated memory for fields in your presolver data, remember to free this memory
2544  * before freeing the presolver data itself.
2545  * If you are using the C++ wrapper class, this method is not available.
2546  * Instead, just use the destructor of your class to free the member variables of your class.
2547  *
2548  * @subsection PRESOLINIT
2549  *
2550  * The PRESOLINIT callback is executed after the problem is transformed.
2551  * The presolver may, e.g., use this call to initialize its presolver data.
2552  * The difference between the original and the transformed problem is explained in
2553  * "What is this thing with the original and the transformed problem about?" on \ref FAQ.
2554  *
2555  * @subsection PRESOLCOPY
2556  *
2557  * The PRESOLCOPY callback is executed when a SCIP instance is copied, e.g. to
2558  * solve a sub-SCIP. By
2559  * defining this callback as
2560  * <code>NULL</code> the user disables the execution of the specified
2561  * presolver for all copied SCIP instances. This may deteriorate the performance
2562  * of primal heuristics using sub-SCIPs.
2563  *
2564  * @subsection PRESOLEXIT
2565  *
2566  * The PRESOLEXIT callback is executed before the transformed problem is freed.
2567  * In this method, the presolver should free all resources that have been allocated for the solving process in PRESOLINIT.
2568  *
2569  * @subsection PRESOLINITPRE
2570  *
2571  * The PRESOLINITPRE callback is executed when the presolving is about to begin.
2572  * The presolver may use this call to initialize its presolving data which only need to exist during the presolving stage.
2573  *
2574  * @subsection PRESOLEXITPRE
2575  *
2576  * The PRESOLEXITPRE callback is executed after presolving finishes and before the branch-and-bound process begins.
2577  * The presolver should use this call to clean up its presolving data, which was allocated in PRESOLINITPRE.
2578  */
2579 
2580 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2581 
2582 /**@page SEPA How to add separators
2583  *
2584  * Separators are used to generate general purpose cutting planes.
2585  * Constraint based cutting planes, the second type of cutting planes in SCIP, are separated in the CONSSEPALP and
2586  * CONSSEPASOL callback methods of the constraint handlers, see \ref CONSSEPALP and \ref CONSSEPASOL. These cuts are
2587  * valid inequalities or even facets of the polyhedron described by a single constraint or a subset of the constraints of
2588  * a single constraint class. In contrast, general purpose cuts do not require or exploit any knowledge about the
2589  * underlying problem structure but use only the current LP relaxation and the integrality conditions. See also
2590  * "When should I implement a constraint handler, when should I implement a separator?" on \ref FAQ.
2591  * \n
2592  * A complete list of all separators contained in this release can be found \ref SEPARATORS "here".
2593  *
2594  * We now explain how users can add their own separators.
2595  * Take the separator for the class of Gomory mixed integer inequalities (src/scip/sepa_gomory.c) as an example.
2596  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjSepa wrapper
2597  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_SEPA... callback methods.
2598  *
2599  * Additional documentation for the callback methods of a separator, in particular for the input parameters,
2600  * can be found in the file type_sepa.h.
2601  *
2602  * Here is what you have to do to implement a separator:
2603  * -# Copy the template files src/scip/sepa_xyz.c and src/scip/sepa_xyz.h into files "sepa_myseparator.c"
2604  * and "sepa_myseparator.h".
2605  \n
2606  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2607  * -# Use SCIPincludeSepaMyseparator() in order to include the separator into your SCIP instance,
2608  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2609  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myseparator".
2610  * -# Adjust the properties of the separator (see \ref SEPA_PROPERTIES).
2611  * -# Define the separator data (see \ref SEPA_DATA). This is optional.
2612  * -# Implement the interface methods (see \ref SEPA_INTERFACE).
2613  * -# Implement the fundamental callback methods (see \ref SEPA_FUNDAMENTALCALLBACKS).
2614  * -# Implement the additional callback methods (see \ref SEPA_ADDITIONALCALLBACKS). This is optional.
2615  *
2616  *
2617  * @section SEPA_PROPERTIES Properties of a Separator
2618  *
2619  * At the top of the new file "sepa_myseparator.c", you can find the separator properties.
2620  * These are given as compiler defines.
2621  * In the C++ wrapper class, you have to provide the separator properties by calling the constructor
2622  * of the abstract base class scip::ObjSepa from within your constructor.
2623  * The properties you have to set have the following meaning:
2624  *
2625  * \par SEPA_NAME: the name of the separator.
2626  * This name is used in the interactive shell to address the separator.
2627  * Additionally, if you are searching for a separator with SCIPfindSepa(), this name is looked up.
2628  * Names have to be unique: no two separators may have the same name.
2629  *
2630  * \par SEPA_DESC: the description of the separator.
2631  * This string is printed as a description of the separator in the interactive shell.
2632  *
2633  * \par SEPA_PRIORITY: the priority of the separator.
2634  * In each separation round during the price-and-cut loop of the subproblem processing or the separation loop
2635  * of the primal solution separation, the separators and separation methods of the constraint handlers are called in
2636  * a predefined order, which is given by the priorities of the separators and the separation priorities
2637  * of the constraint handlers (see \ref CONS_PROPERTIES).
2638  * First, the separators with non-negative priority are called in the order of decreasing priority.
2639  * Next, the separation methods of the constraint handlers are called in the order of decreasing separation
2640  * priority.
2641  * Finally, the separators with negative priority are called in the order of decreasing priority. An easy way to list the
2642  * priorities of all separators and constraint handlers is to type "display separators" and "display conshdlrs" in
2643  * the interactive shell.
2644  * \n
2645  * The priority of the separator should be set according to the complexity of the cut separation algorithm and the
2646  * impact of the resulting cuts: separators that provide fast algorithms that usually have a high impact (i.e., cut off
2647  * a large portion of the LP relaxation) should have a high priority.
2648  * See \ref SEPAEXECLP and \ref SEPAEXECSOL for further details of the separation callbacks.
2649  *
2650  * \par SEPA_FREQ: the default frequency for separating cuts.
2651  * The frequency defines the depth levels at which the separation methods \ref SEPAEXECLP and \ref SEPAEXECSOL are called.
2652  * For example, a frequency of 7 means, that the separation callback is executed for subproblems that are in depth
2653  * 0, 7, 14, ... of the branching tree. A frequency of 0 means, that the separation method is only called at the root node.
2654  * A frequency of -1 disables the separator.
2655  * \n
2656  * The frequency can be adjusted by the user. This property of the separator only defines the default value of the frequency.
2657  * If you want to have a more flexible control of when to execute the separation algorithm, you have to assign
2658  * a frequency of 1 and implement a check at the beginning of your separation methods whether you really want to execute
2659  * the separation or not. If you do not want to execute it, set the result code of
2660  * \ref SEPAEXECLP and \ref SEPAEXECSOL to SCIP_DIDNOTRUN.
2661  *
2662  * \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.
2663  * At the current branch-and-bound node, the relative distance from its dual bound (local dual bound)
2664  * to the primal bound compared to the best node's dual bound (global dual bound) is considered. The separation method
2665  * of the separator will only be applied at the current node if this relative distance does not exceed SEPA_MAXBOUNDDIST.
2666  * \n
2667  * For example, if the global dual bound is 50 and the primal bound is 60, SEPA_MAXBOUNDDIST = 0.25 means that separation
2668  * 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
2669  * than or equal to 52.5.
2670  * \n
2671  * In particular, the values 0.0 and 1.0 mean that separation is applied at the current best node only or at all
2672  * nodes, respectively. Since separation seems to be most important to apply at nodes that define to the global
2673  * dual bound, 0.0 is probably a good choice for SEPA_MAXBOUNDDIST.
2674  * Note that separators with a frequency of SEPA_FREQ = 0 are only applied at the root node.
2675  * Obviously, at the root node the local dual bound is equal to the global dual bound and thus, the separator is called
2676  * for any value of SEPA_MAXBOUNDDIST.
2677  *
2678  * \par SEPA_USESSUBSCIP: Does the separator use a secondary SCIP instance?
2679  * Some heuristics and separators solve MIPs or SAT problems and use a secondary SCIP instance. Examples are
2680  * Large Neighborhood Search heuristics such as RINS and Local Branching or the CGMIP separator. To avoid recursion,
2681  * these plugins usually deactivate all other plugins that solve MIPs. If a separator uses a secondary SCIP instance,
2682  * this parameter has to be TRUE and it is recommended to call SCIPsetSubscipsOff() for the secondary SCIP instance.
2683  *
2684  * \par SEPA_DELAY: the default for whether the separation method should be delayed, if other separators or constraint handlers found cuts.
2685  * If the separator's separation method is marked to be delayed, it is only executed after no other separator
2686  * or constraint handler found a cut during the price-and-cut loop.
2687  * If the separation method of the separator is very expensive, you may want to mark it to be delayed until all cheap
2688  * separation methods have been executed.
2689  *
2690  * @section SEPA_DATA Separator Data
2691  *
2692  * Below the header "Data structures" you can find a struct which is called "struct SCIP_SepaData".
2693  * In this data structure, you can store the data of your separator. For example, you should store the adjustable
2694  * parameters of the separator in this data structure. In a separator, user parameters for the maximal number of
2695  * separation rounds per node and for the maximal number of cuts separated per separation round might be useful.
2696  * If you are using C++, you can add separator data as usual as object variables to your class.
2697  * \n
2698  * Defining separator data is optional. You can leave the struct empty.
2699  *
2700  * @section SEPA_INTERFACE Interface Methods
2701  *
2702  * At the bottom of "sepa_myseparator.c", you can find the interface method SCIPincludeSepaMyseparator(),
2703  * which also appears in "sepa_myseparator.h"
2704  * SCIPincludeSepaMyseparator() is called by the user, if (s)he wants to include the separator,
2705  * i.e., if (s)he wants to use the separator in his/her application.
2706  *
2707  * This method only has to be adjusted slightly.
2708  * It is responsible for notifying SCIP of the presence of the separator. For this, you can either call SCIPincludeSepa(),
2709  * or SCIPincludeSepaBasic() since SCIP version 3.0. In the latter variant, \ref SEPA_ADDITIONALCALLBACKS "additional callbacks"
2710  * must be added via setter functions as, e.g., SCIPsetSepaCopy(). We recommend this latter variant because
2711  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2712  * variant must be manually adjusted with every SCIP release containing new callbacks for separators in order to compile.
2713  *
2714  * If you are using separator data, you have to allocate the memory
2715  * for the data at this point. You can do this by calling:
2716  * \code
2717  * SCIP_CALL( SCIPallocBlockMemory(scip, &sepadata) );
2718  * \endcode
2719  * You also have to initialize the fields in "struct SCIP_SepaData" afterwards. For freeing the
2720  * separator data, see \ref SEPAFREE.
2721  *
2722  * You may also add user parameters for your separator, see \ref PARAM for how to add user parameters and
2723  * the method SCIPincludeSepaGomory() in src/scip/sepa_gomory.c for an example.
2724  *
2725  *
2726  * @section SEPA_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Separator
2727  *
2728  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2729  * an operational algorithm.
2730  * They are passed together with the separator itself to SCIP using SCIPincludeSepa() or SCIPincludeSepaBasic(),
2731  * see @ref SEPA_INTERFACE.
2732  *
2733  * Separator plugins have two callbacks, @ref SEPAEXECLP and @ref SEPAEXECSOL, of which at least one must be implemented.
2734  *
2735  * Additional documentation for the callback methods, in particular to their input parameters,
2736  * can be found in type_sepa.h.
2737  *
2738  * @subsection SEPAEXECLP
2739  *
2740  * The SEPAEXECLP callback is executed during the price-and-cut loop of the subproblem processing.
2741  * It should try to generate general purpose cutting planes in order to separate the current LP solution.
2742  * The method is called in the LP solution loop, which means that a valid LP solution exists.
2743  *
2744  * Usually, the callback searches and produces cuts, that are added with a call to SCIPaddCut().
2745  * If the cut should be added to the global cut pool, it calls SCIPaddPoolCut().
2746  * In addition to LP rows, the callback may also produce domain reductions or add additional constraints.
2747  *
2748  * Overall, the SEPAEXECLP callback has the following options, which is indicated by the possible return values of
2749  * the 'result' variable (see type_sepa.h):
2750  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
2751  * - adding an additional constraint (result SCIP_CONSADDED)
2752  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
2753  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
2754  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
2755  * (result SCIP_DIDNOTFIND)
2756  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
2757  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
2758  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
2759  *
2760  * @subsection SEPAEXECSOL
2761  *
2762  * The SEPAEXECSOL callback is executed during the separation loop on arbitrary primal solutions.
2763  * It should try to generate general purpose cutting planes in order to separate the given primal solution.
2764  * The method is not called in the LP solution loop, which means that there is no valid LP solution.
2765  *
2766  * In the standard SCIP environment, the SEPAEXECSOL callback is not used because only LP solutions are
2767  * separated. The SEPAEXECSOL callback provides means to support external relaxation handlers like semidefinite
2768  * relaxations that want to separate an intermediate primal solution vector. Thus, if you do not want to support
2769  * such external plugins, you do not need to implement this callback method.
2770  *
2771  * Usually, the callback searches and produces cuts, that are added with a call to SCIPaddCut().
2772  * If the cut should be added to the global cut pool, it calls SCIPaddPoolCut().
2773  * In addition to LP rows, the callback may also produce domain reductions or add other constraints.
2774  *
2775  * Overall, the SEPAEXECSOL callback has the following options, which is indicated by the possible return values of
2776  * the 'result' variable (see type_sepa.h):
2777  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
2778  * - adding an additional constraint (result SCIP_CONSADDED)
2779  * - reducing a variable's domain (result SCIP_REDUCEDDOM)
2780  * - adding a cutting plane to the LP (result SCIP_SEPARATED)
2781  * - stating that the separator searched, but did not find domain reductions, cutting planes, or cut constraints
2782  * (result SCIP_DIDNOTFIND)
2783  * - stating that the separator was skipped (result SCIP_DIDNOTRUN)
2784  * - stating that the separator was skipped, but should be called again (result SCIP_DELAYED)
2785  * - stating that a new separation round should be started without calling the remaining separator methods (result SCIP_NEWROUND)
2786  *
2787  *
2788  * @section SEPA_ADDITIONALCALLBACKS Additional Callback Methods of a Separator
2789  *
2790  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
2791  * implemented for most applications, they can be used, for example, to initialize and free private data.
2792  * Additional callbacks can either be passed directly with SCIPincludeSepa() to SCIP or via specific
2793  * <b>setter functions</b> after a call of SCIPincludeSepaBasic(), see also @ref SEPA_INTERFACE.
2794  *
2795  * @subsection SEPAFREE
2796  *
2797  * If you are using separator data (see \ref SEPA_DATA and \ref SEPA_INTERFACE), you have to implement this method
2798  * in order to free the separator data. This can be done by the following procedure:
2799  *
2800  * @refsnippet{src/scip/sepa_gomory.c,SnippetSepaFreeGomory}
2801  *
2802  * If you have allocated memory for fields in your separator data, remember to free this memory
2803  * before freeing the separator data itself.
2804  * If you are using the C++ wrapper class, this method is not available.
2805  * Instead, just use the destructor of your class to free the member variables of your class.
2806  *
2807  * @subsection SEPACOPY
2808  *
2809  * The SEPACOPY callback is executed when a SCIP instance is copied, e.g. to
2810  * solve a sub-SCIP. By
2811  * defining this callback as
2812  * <code>NULL</code> the user disables the execution of the specified
2813  * separator for all copied SCIP instances. This may deteriorate the performance
2814  * of primal heuristics using sub-SCIPs.
2815  *
2816  * @subsection SEPAINIT
2817  *
2818  * The SEPAINIT callback is executed after the problem is transformed.
2819  * The separator may, e.g., use this call to initialize its separator data.
2820  * The difference between the original and the transformed problem is explained in
2821  * "What is this thing with the original and the transformed problem about?" on \ref FAQ.
2822  *
2823  * @subsection SEPAEXIT
2824  *
2825  * The SEPAEXIT callback is executed before the transformed problem is freed.
2826  * In this method, the separator should free all resources that have been allocated for the solving process in SEPAINIT.
2827  *
2828  * @subsection SEPAINITSOL
2829  *
2830  * The SEPAINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
2831  * begin. The separator may use this call to initialize its branch-and-bound specific data.
2832  *
2833  * @subsection SEPAEXITSOL
2834  *
2835  * The SEPAEXITSOL callback is executed before the branch-and-bound process is freed. The separator should use this call
2836  * to clean up its branch-and-bound data, in particular to release all LP rows that it has created or captured.
2837  */
2838 
2839 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
2840 
2841 /**@page PROP How to add propagators
2842  *
2843  * Propagators are used to tighten the domains of the variables. Like for cutting planes, there are two different types
2844  * of domain propagations. Constraint based (primal) domain propagation algorithms are part of the corresponding
2845  * constraint handlers, see \ref CONSPROP. In contrast, domain propagators usually provide dual propagations, i.e.,
2846  * propagations that can be applied using the objective function and the current best known primal solution. This
2847  * section deals with such propagators.
2848  *
2849  * A complete list of all propagators contained in this release can be found \ref PROPAGATORS "here".
2850  *
2851  * We now explain how users can add their own propagators. Take the pseudo objective function propagator
2852  * (src/scip/prop_pseudoobj.c) as an example. As all other default plugins, it is written in C. C++ users can easily
2853  * adapt the code by using the scip::ObjProp wrapper base class and implement the @c scip_...() virtual methods instead
2854  * of the @c SCIP_DECL_PROP... callback methods.
2855  *
2856  * Additional documentation for the callback methods of a propagator can be found in the file type_prop.h.
2857  *
2858  * Here is what you have to do to implement a propagator:
2859  * -# Copy the template files src/scip/prop_xyz.c and src/scip/prop_xyz.h into files named "prop_mypropagator.c"
2860  * and "prop_mypropagator.h".
2861  * \n
2862  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
2863  * -# Use SCIPincludePropMypropagator() in order to include the propagator into your SCIP instance,
2864  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
2865  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mypropagator".
2866  * -# Adjust the properties of the propagator (see \ref PROP_PROPERTIES).
2867  * -# Define the propagator data (see \ref PROP_DATA). This is optional.
2868  * -# Implement the interface methods (see \ref PROP_INTERFACE).
2869  * -# Implement the fundamental callback methods (see \ref PROP_FUNDAMENTALCALLBACKS).
2870  * -# Implement the additional callback methods (see \ref PROP_ADDITIONALCALLBACKS). This is optional.
2871  *
2872  * @section PROP_PROPERTIES Properties of a Propagator
2873  *
2874  * At the top of the new file "prop_mypropagator.c" you can find the propagator properties. These are given as compiler
2875  * defines. The presolving-related properties are optional,
2876  * they only have to be defined if the propagator supports presolving routines.
2877  * In the C++ wrapper class, you have to provide the propagator properties by calling the constructor of the
2878  * abstract base class scip::ObjProp from within your constructor. The properties you have the following meaning:
2879  *
2880  * @subsection PROP_FUNDAMENTALPROPERTIES Fundamental properties of a propagator
2881  *
2882  * \par PROP_NAME: the name of the propagator.
2883  * This name is used in the interactive shell to address the propagator. Additionally, if you are searching for a
2884  * propagator with SCIPfindProp(), this name is searched for. Names have to be unique: no two propagators may have the
2885  * same name.
2886  *
2887  * \par PROP_DESC: the description of the propagator.
2888  * This string is printed as a description of the propagator in the interactive shell.
2889  *
2890  * \par PROP_PRIORITY: the priority of the propagator.
2891  * In each propagation round, the propagators and propagation methods of the constraint handlers are called in a
2892  * predefined order, which is given by the priorities of the propagators and the check priorities of the constraint
2893  * handlers. First, the propagators with non-negative priority are called in order of decreasing priority. Next, the
2894  * propagation methods of the different constraint handlers are called in order of decreasing check priority. Finally,
2895  * the propagators with negative priority are called in order of decreasing priority. \n The priority of the
2896  * propagators should be set according to the complexity of the propagation algorithm and the impact of the domain
2897  * propagations: propagators providing fast algorithms that usually have a high impact (i.e., tighten many bounds)
2898  * should have a high priority.
2899  *
2900  * \par PROP_FREQ: the default frequency for propagating domains.
2901  * The frequency defines the depth levels at which the propagation method \ref PROPEXEC is called. For example, a
2902  * frequency of 7 means, that the propagation callback is executed for subproblems that are in depth 0, 7, 14, ... of
2903  * the branching tree. A frequency of 0 means that propagation is only applied in preprocessing and at the root node. A
2904  * frequency of -1 disables the propagator.
2905  * \n
2906  * The frequency can be adjusted by the user. This property of the propagator only defines the default value of the
2907  * frequency.\n
2908  * <b>Note:</b> If you want to have a more flexible control of when to execute the propagation algorithm, you have to
2909  * assign a frequency of 1 and implement a check at the beginning of your propagation algorithm whether you really want
2910  * to execute the domain propagation or not. If you do not want to execute it, set the result code to SCIP_DIDNOTRUN.
2911  *
2912  * \par PROP_DELAY: the default for whether the propagation method should be delayed, if other propagators or constraint handlers found domain reductions.
2913  * If the propagator's propagation method is marked to be delayed, it is only executed after no other propagator or
2914  * constraint handler found a domain reduction in the current iteration of the domain propagation loop. If the
2915  * propagation method of the propagator is very expensive, you may want to mark it to be delayed until all cheap
2916  * propagation methods have been executed.
2917  *
2918  * \par PROP_TIMING: the timing mask of the propagator.
2919  * SCIP calls the domain propagation routines at different places in the node processing loop.
2920  * This property indicates at which places the propagator is called.
2921  * Possible values are defined in type_timing.h and can be concatenated, e.g., as in SCIP_PROPTIMING_ALWAYS.
2922  *
2923  * @subsection PROP_ADDITIONALPROPERTIES Optional propagator properties
2924  *
2925  * The following properties are optional and only need to be defined if the propagator supports
2926  * presolving, that is, if the \ref PROPPRESOL "presolving callback" is implemented.
2927 
2928  * \par PROP_PRESOLTIMING: the timing of the presolving method (FAST, MEDIUM, or EXHAUSTIVE).
2929  * Every presolving round starts with the FAST presolving methods. MEDIUM presolvers are only called, if FAST presolvers did not find
2930  * enough reductions in this round so far, and EXHAUSTIVE presolving steps are only performed if all presolvers called before
2931  * in this round were unsuccessful.
2932  * Presolving methods should be assigned a timing based on how expensive they are, e.g., presolvers that provide fast algorithms that
2933  * usually have a high impact (i.e., remove lots of variables or tighten bounds of many variables) should have a timing FAST.
2934  * If a presolving method implements different algorithms of different complexity, it may also get multiple timings and check the timing
2935  * internally in the \ref PROPPRESOL callback to decide which algorithms to run.
2936  *
2937  * \par PROP_PRESOL_PRIORITY: the priority of the presolving method.
2938  * This attribute is analogous to the PROP_PRIORITY flag, but deals with the preprocessing method of the presolver.
2939  *
2940  * \par PROP_PRESOL_MAXROUNDS: the default maximal number of presolving rounds the propagator participates in.
2941  * The preprocessing is executed in rounds.
2942  * If enough changes have been applied to the model, an additional preprocessing round is performed.
2943  * The MAXROUNDS parameter of a propagator denotes the maximal number of preprocessing rounds, the propagator
2944  * participates in.
2945  * A value of -1 means, that there is no limit on the number of rounds.
2946  * A value of 0 means, the preprocessing callback of the propagator is disabled.
2947  *
2948  * @section PROP_DATA Propagator Data
2949  *
2950  * Below the title "Data structures" you can find a struct called <code>struct SCIP_PropData</code>. In this data
2951  * structure, you can store the data of your propagator. For example, you should store the adjustable parameters of the
2952  * propagator in this data structure. If you are using C++, you can add propagator data as object variables to your
2953  * class as usual .
2954  * \n
2955  * Defining propagator data is optional. You can leave the struct empty.
2956  *
2957  *
2958  * @section PROP_INTERFACE Interface Methods
2959  *
2960  * At the bottom of "prop_mypropagator.c", you can find the interface method SCIPincludeSepaMypropagator(),
2961  * which also appears in "prop_mypropagator.h"
2962  * SCIPincludePropMypropagator() is called by the user, if (s)he wants to include the propagator,
2963  * i.e., if (s)he wants to use the propagator in his/her application.
2964  *
2965  * This method only has to be adjusted slightly.
2966  * It is responsible for notifying SCIP of the presence of the propagator. For this, you can either call SCIPincludeProp(),
2967  * or SCIPincludePropBasic() since SCIP version 3.0. In the latter variant, \ref PROP_ADDITIONALCALLBACKS "additional callbacks"
2968  * must be added via setter functions as, e.g., SCIPsetPropCopy(). We recommend this latter variant because
2969  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
2970  * variant must be manually adjusted with every SCIP release containing new callbacks for separators in order to compile.
2971  *
2972  *
2973  * If you are using propagator data, you have to allocate the memory for the data at this point. You can do this by
2974  * calling
2975  * \code
2976  * SCIP_CALL( SCIPallocBlockMemory(scip, &propdata) );
2977  * \endcode
2978  * You also have to initialize the fields in <code>struct SCIP_PropData</code> afterwards.
2979  *
2980  * You may also add user parameters for your propagator, see the method SCIPincludePropPseudoobj() in
2981  * src/scip/prop_pseudoobj.c for an example.
2982  *
2983  *
2984  * @section PROP_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Propagator
2985  *
2986  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
2987  * an operational algorithm.
2988  * They are passed together with the propagator itself to SCIP using SCIPincludeProp() or SCIPincludePropBasic(),
2989  * see @ref PROP_INTERFACE.
2990  *
2991  * Propagator plugins have one fundamental callback method, namely the \ref PROPEXEC method
2992  * method. This method has to be implemented for every propagator; the other callback methods are optional. In the
2993  * C++ wrapper class scip::ObjProp, the scip_exec() method (which corresponds to the \ref PROPEXEC
2994  * callback) is a virtual abstract member function. You have to
2995  * implement it in order to be able to construct an object of your propagator class.
2996  *
2997  * Additional documentation for the callback methods can be found in type_prop.h.
2998  *
2999  * @subsection PROPEXEC
3000  *
3001  * The PROPEXEC callback is called during presolving and during the subproblem processing. It should perform the actual
3002  * domain propagation, which means that it should tighten the variables' bounds. The technique of domain propagation,
3003  * which is the main workhorse of constraint programming, is called "node preprocessing" in the Integer Programming
3004  * community.
3005  *
3006  * The PROPEXEC callback has the following options:
3007  * - detecting that the node is infeasible in the variables' bounds and can be cut off (result SCIP_CUTOFF)
3008  * - reducing (i.e, tightening) the domains of some variables (result SCIP_REDUCEDDOM)
3009  * - stating that the propagator searched, but did not find domain reductions, cutting planes, or cut constraints
3010  * (result SCIP_DIDNOTFIND)
3011  * - stating that the propagator was skipped (result SCIP_DIDNOTRUN)
3012  * - stating that the propagator was skipped, but should be called again (result SCIP_DELAYED)
3013  *
3014  *
3015  *
3016  * @section PROP_ADDITIONALCALLBACKS Additional Callback Methods of a Propagator
3017  *
3018  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3019  * implemented for most applications, they can be used, for example, to initialize and free private data.
3020  * Additional callbacks can either be passed directly with SCIPincludeProp() to SCIP or via specific
3021  * <b>setter functions</b> after a call of SCIPincludePropBasic(), see also @ref PROP_INTERFACE.
3022  *
3023  * @subsection PROPRESPROP
3024  *
3025  * If the propagator wants to support \ref CONF "conflict analysis", it has to supply the PROPRESPROP method. It also should call
3026  * SCIPinferVarLbProp() or SCIPinferVarUbProp() in the domain propagation instead of SCIPchgVarLb() or SCIPchgVarUb() in
3027  * order to deduce bound changes on variables. In the SCIPinferVarLbProp() and SCIPinferVarUbProp() calls, the
3028  * propagator provides a pointer to itself and an integer value "inferinfo" that can be arbitrarily chosen.
3029  *
3030  * The propagation conflict resolving method PROPRESPROP must then be implemented to provide the "reasons" for the bound
3031  * changes, i.e., the bounds of variables at the time of the propagation, which forced the propagator to set the
3032  * conflict variable's bound to its current value. It can use the "inferinfo" tag to identify its own propagation rule
3033  * and thus identify the "reason" bounds. The bounds that form the reason of the assignment must then be provided by
3034  * calls to SCIPaddConflictLb() and SCIPaddConflictUb() in the propagation conflict resolving method.
3035  *
3036  * See the description of the propagation conflict resolving method \ref CONSRESPROP of constraint handlers for
3037  * further details.
3038  *
3039  * Omitting the PROPRESPROP callback circumvents the implementation of the usually rather complex conflict resolving method.
3040  * Yet, it
3041  * will make the conflict analysis less effective. We suggest to first omit the conflict resolving method and check how
3042  * effective the propagation method is. If it produces a lot of propagations for your application, you definitely should
3043  * consider implementing the conflict resolving method.
3044  *
3045  *
3046  * @subsection PROPFREE
3047  *
3048  * If you are using propagator data, you have to implement this method in order to free the propagator data.
3049  * This can be done by the following procedure:
3050  *
3051  * @refsnippet{src/scip/prop_redcost.c,SnippetPropFreeRedcost}
3052  *
3053  * If you have allocated memory for fields in your propagator data, remember to free this memory
3054  * before freeing the propagator data itself.
3055  * If you are using the C++ wrapper class, this method is not available.
3056  * Instead, just use the destructor of your class to free the member variables of your class.
3057  *
3058  * @subsection PROPINIT
3059  *
3060  * The PROPINIT callback is executed after the problem is transformed. The propagator may, e.g., use this call to
3061  * initialize its propagator data.
3062  *
3063  * @subsection PROPCOPY
3064  *
3065  * The PROPCOPY callback is executed when a SCIP instance is copied, e.g. to
3066  * solve a sub-SCIP. By
3067  * defining this callback as
3068  * <code>NULL</code> the user disables the execution of the specified
3069  * propagator for all copied SCIP instances. This may deteriorate the performance
3070  * of primal heuristics using sub-SCIPs.
3071  *
3072  * @subsection PROPEXIT
3073  *
3074  * The PROPEXIT callback is executed before the transformed problem is freed.
3075  * In this method, the propagator should free all resources that have been allocated for the solving process in PROPINIT.
3076  *
3077  * @subsection PROPINITPRE
3078  *
3079  * The PROPINITPRE callback is executed before the preprocessing is started, even if presolving is turned off.
3080  * The propagator may use this call to initialize its presolving data before the presolving process begins.
3081  *
3082  * @subsection PROPEXITPRE
3083  *
3084  * The PROPEXITPRE callback is executed after the preprocessing has been finished, even if presolving is turned off.
3085  * The propagator may use this call, e.g., to clean up its presolving data.
3086  * Besides clean up, no time consuming operations should be done.
3087  *
3088  * @subsection PROPINITSOL
3089  *
3090  * The PROPINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3091  * begin.
3092  * The propagator may use this call to initialize its branch-and-bound specific data.
3093  *
3094  * @subsection PROPEXITSOL
3095  *
3096  * The PROPEXITSOL callback is executed before the branch-and-bound process is freed.
3097  * The propagator should use this call to clean up its branch-and-bound data.
3098  *
3099  * @subsection PROPPRESOL
3100  *
3101  * Seaches for domain propagations, analogous to the \ref PROPEXEC callback.
3102  * However, this callback is called during preprocessing.
3103  *
3104  * To inform SCIP that the presolving method found a reduction the result pointer has to be set in a proper way.
3105  * The following options are possible:
3106  *
3107  * - SCIP_UNBOUNDED : at least one variable is not bounded by any constraint in objective direction
3108  * - SCIP_CUTOFF : at least one domain reduction that renders the problem infeasible has been found
3109  * - SCIP_SUCCESS : the presolver found a domain reduction
3110  * - SCIP_DIDNOTFIND : the presolver searched, but did not find a presolving change
3111  * - SCIP_DIDNOTRUN : the presolver was skipped
3112  * - SCIP_DELAYED : the presolver was skipped, but should be called again
3113  *
3114  *
3115  * Please see also the @ref PROP_ADDITIONALPROPERTIES section to learn about the properties
3116  * PROP_PRESOLTIMING and PROP_PRESOL_MAXROUNDS, which influence the behaviour of SCIP
3117  * calling PROPPRESOL.
3118  *
3119  */
3120 
3121 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3122 
3123 /**@page BRANCH How to add branching rules
3124  *
3125  * Branching rules are used to split the problem at the current node into smaller subproblems. Branching rules can be called at three
3126  * different occasions, which is why they have three different execution methods (see \ref
3127  * BRANCHRULE_ADDITIONALCALLBACKS). Branching is performed if:
3128  * - the LP solution of the current problem is fractional. In this case, the integrality constraint handler calls the
3129  * \ref BRANCHEXECLP methods of the branching rules.
3130  * - the list of external branching candidates is not empty. This will only be the case if branching candidates were added
3131  * by a user's \ref RELAX "relaxation handler" or \ref CONS "constraint handler" plugin, calling SCIPaddExternBranchCand().
3132  * These branching candidates should be processed by the \ref BRANCHEXECEXT method.
3133  * - if an integral solution violates one or more constraints and this infeasibility could not be resolved in the callback methods
3134  * \ref CONSENFOLP and \ref CONSENFOPS of the corresponding constraint handlers. In this case, the \ref BRANCHEXECPS method will be called. This is the
3135  * 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
3136  * branching on pseudo solutions works as a last resort.
3137  *
3138  * The idea of branching rules is to take a global view on the problem. In contrast, branching paradigms which are
3139  * specific to one type of constraint are best implemented within the enforcement callbacks of your constraint handler.
3140  * See, e.g., the constraint specific branching rules provided by the constraint handlers for special ordered sets
3141  * (src/scip/cons_sos{1,2}.c)).
3142  * \n
3143  * All branching rules that come with the default distribution of SCIP create two subproblems by splitting a single
3144  * variable's domain. It is, however, fully supported to implement much more general branching schemes, for example by
3145  * creating more than two subproblems, or by adding additional constraints to the subproblems instead of tightening the
3146  * domains of the variables.
3147  * \n
3148  * A complete list of all branching rules contained in this release can be found \ref BRANCHINGRULES "here".
3149  *
3150  * We now explain how users can add their own branching rules. Take the most infeasible LP branching rule
3151  * (src/scip/branch_mostinf.c) as an example. As all other default plugins, it is written in C. C++ users can easily
3152  * adapt the code by using the scip::ObjBranchrule wrapper base class and implement the scip_...() virtual methods instead of
3153  * the SCIP_DECL_BRANCH... callback methods.
3154  *
3155  * Additional documentation for the callback methods of a branching rule can be found in the file type_branch.h.
3156  *
3157  * Here is what you have to do to implement a branching rule:
3158  * -# Copy the template files src/scip/branch_xyz.c and src/scip/branch_xyz.h into files named
3159  * "branch_mybranchingrule.c" and "branch_mybranchingrule.h".
3160  * \n
3161  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3162  * -# Use SCIPincludeBranchruleMybranchingrule() in order to include the branching rule into your SCIP instance,
3163  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3164  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mybranchingrule".
3165  * -# Adjust the properties of the branching rule (see \ref BRANCHRULE_PROPERTIES).
3166  * -# Define the branching rule data (see \ref BRANCHRULE_DATA). This is optional.
3167  * -# Implement the interface methods (see \ref BRANCHRULE_INTERFACE).
3168  * -# Implement the fundamental callback methods (see \ref BRANCHRULE_FUNDAMENTALCALLBACKS).
3169  * -# Implement the additional callback methods (see \ref BRANCHRULE_ADDITIONALCALLBACKS). This is optional.
3170  *
3171  *
3172  * @section BRANCHRULE_PROPERTIES Properties of a Branching Rule
3173  *
3174  * At the top of the new file "branch_mybranchingrule.c" you can find the branching rule properties.
3175  * These are given as compiler defines.
3176  * In the C++ wrapper class, you have to provide the branching rule properties by calling the constructor
3177  * of the abstract base class scip::ObjBranchrule from within your constructor.
3178  * The properties you have to set have the following meaning:
3179  *
3180  * \par BRANCHRULE_NAME: the name of the branching rule.
3181  * This name is used in the interactive shell to address the branching rule.
3182  * Additionally, if you are searching for a branching rule with SCIPfindBranchrule(), this name is looked up.
3183  * Names have to be unique: no two branching rules may have the same name.
3184  *
3185  * \par BRANCHRULE_DESC: the description of the branching rule.
3186  * This string is printed as a description of the branching rule in the interactive shell.
3187  *
3188  * \par BRANCHRULE_PRIORITY: the default value for the priority of the branching rule.
3189  * In the subproblem processing, the branching rules are called in decreasing order of their priority until
3190  * one succeeded to branch. Since most branching rules are able to generate a branching in all situations,
3191  * only the rule of highest priority is used. In combination with the BRANCHRULE_MAXDEPTH and
3192  * BRANCHRULE_MAXBOUNDDIST settings, however, interesting strategies can be easily employed. For example,
3193  * the user can set the priority of the "full strong branching" strategy to the highest value and assign the
3194  * second highest value to the "reliable pseudo cost" rule. If (s)he also sets the maximal depth for the
3195  * "full strong branching" to 5, in the top 5 depth levels of the search tree the "full strong branching" is
3196  * applied, while in the deeper levels "reliable pseudo cost branching" is used.
3197  * \n
3198  * Note that the BRANCHRULE_PRIORITY property only specifies the default value of the priority. The user can
3199  * change this value arbitrarily.
3200  *
3201  * \par BRANCHRULE_MAXDEPTH: the default value for the maximal depth level of the branching rule.
3202  * This parameter denotes the maximal depth level in the branch-and-bound tree up to which the branching method of the
3203  * branching rule will be applied. Use -1 for no limit.
3204  * \n
3205  * Note that this property only specifies the default value. The user can change this value arbitrarily.
3206  *
3207  * \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.
3208  * At the current branch-and-bound node, the relative distance from its dual bound (local dual bound)
3209  * to the primal bound compared to the best node's dual bound (global dual bound) is considered. The branching method of
3210  * the branching rule will only be applied at the node if this relative distance does not exceed BRANCHRULE_MAXBOUNDDIST.
3211  * \n
3212  * For example, if the global dual bound is 50 and the primal bound is 60, BRANCHRULE_MAXBOUNDDIST = 0.25 means that
3213  * 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
3214  * 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
3215  * current best node only or at all nodes, respectively.
3216  * \n
3217  * Note that the BRANCHRULE_MAXBOUNDDIST property only specifies the default value of the maximal bound distance.
3218  * The user can change this value arbitrarily.
3219  *
3220  *
3221  * @section BRANCHRULE_DATA Branching Rule Data
3222  *
3223  * Below the header "Data structures" you can find a struct which is called "struct SCIP_BranchruleData".
3224  * In this data structure, you can store the data of your branching rule. For example, you should store the adjustable
3225  * parameters of the branching rule in this data structure.
3226  * If you are using C++, you can add branching rule data as usual as object variables to your class.
3227  * \n
3228  * Defining branching rule data is optional. You can leave the struct empty.
3229  *
3230  *
3231  * @section BRANCHRULE_INTERFACE Interface Methods
3232  *
3233  * At the bottom of "branch_mybranchingrule.c", you can find the interface method SCIPincludeBranchruleMybranchingrule(),
3234  * which also appears in "branch_mybranchingrule.h"
3235  * SCIPincludeBranchruleMybranchingrule() is called by the user, if (s)he wants to include the branching rule,
3236  * i.e., if (s)he wants to use the branching rule in his/her application.
3237  *
3238  * This method only has to be adjusted slightly.
3239  * It is responsible for notifying SCIP of the presence of the branching rule. For this, you can either call
3240  * SCIPincludeBranchrule(),
3241  * or SCIPincludeBranchruleBasic() since SCIP version 3.0. In the latter variant, \ref BRANCHRULE_ADDITIONALCALLBACKS "additional callbacks"
3242  * must be added via setter functions as, e.g., SCIPsetBranchruleCopy(). We recommend this latter variant because
3243  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3244  * variant must be manually adjusted with every SCIP release containing new callbacks for branchrule in order to compile.
3245  *
3246  *
3247  * If you are using branching rule data, you have to allocate the memory for the data at this point.
3248  * You can do this by calling:
3249  * \code
3250  * SCIP_CALL( SCIPallocBlockMemory(scip, &branchruledata) );
3251  * \endcode
3252  * You also have to initialize the fields in struct SCIP_BranchruleData afterwards.
3253  *
3254  * You may also add user parameters for your branching rule, see the method SCIPincludeBranchruleRelpscost() in
3255  * src/scip/branch_relpscost.c for an example.
3256  *
3257  *
3258  * @section BRANCHRULE_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Branching Rule
3259  *
3260  * Branching rules do not have any fundamental callback methods, i.e., all callback methods are optional.
3261  * In most cases, however, you want to implement the \ref BRANCHEXECLP method and sometimes the \ref BRANCHEXECPS method.
3262  *
3263  *
3264  * @section BRANCHRULE_ADDITIONALCALLBACKS Additional Callback Methods of a Branching Rule
3265  *
3266  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3267  * implemented for most applications, they can be used, for example, to initialize and free private data.
3268  * Additional callbacks can either be passed directly with SCIPincludeBranchrule() to SCIP or via specific
3269  * <b>setter functions</b> after a call of SCIPincludeBranchruleBasic(), see also @ref BRANCHRULE_INTERFACE.
3270  *
3271  * The most important callback methods are the \ref BRANCHEXECLP, \ref BRANCHEXECEXT,
3272  * and \ref BRANCHEXECPS methods, which perform the actual task of generating a branching.
3273  *
3274  * Additional documentation for the callback methods can be found in type_branch.h.
3275  *
3276  * @subsection BRANCHEXECLP
3277  *
3278  * The BRANCHEXECLP callback is executed during node processing if a fractional LP solution is available. It should
3279  * split the current problem into smaller subproblems. Usually, the branching is done in a way such that the current
3280  * fractional LP solution is no longer feasible in the relaxation of the subproblems. It is, however, possible to
3281  * create a child node for which the fractional LP solution is still feasible in the relaxation, for example, by
3282  * branching on a variable with integral LP value. In every case, you have to make sure that each subproblem is a
3283  * proper restriction of the current problem. Otherwise, you risk to produce an infinite path in the search tree.
3284  *
3285  * The user gains access to the branching candidates, i.e., to the fractional variables, and their LP solution values by
3286  * calling the method SCIPgetLPBranchCands(). Furthermore, SCIP provides two methods for performing the actual
3287  * branching, namely SCIPbranchVar() and SCIPcreateChild().
3288  *
3289  * Given an integral variable \f$x\f$ with fractional LP solution value \f$x^*\f$, the method SCIPbranchVar() creates
3290  * two child nodes; one contains the bound \f$x \le \lfloor x^* \rfloor\f$ and the other one contains the bound \f$x \ge
3291  * \lceil x^* \rceil\f$, see the BRANCHEXECLP callback in src/scip/branch_mostinf.c for an example. In addition, if a
3292  * proven lower objective bound of a created child node is known, like after strong branching has been applied, the user
3293  * may call the method SCIPupdateNodeLowerbound() in order to update the child node's lower bound.
3294  *
3295  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3296  *
3297  * @subsection BRANCHEXECEXT
3298  *
3299  * The BRANCHEXECEXT callback is executed during node processing if no LP solution is available and the list of
3300  * external branching candidates is not empty. It should split the current problem into smaller subproblems. If you
3301  * do not use relaxation handlers or constraints handlers that provide external branching candidates, you do not need to
3302  * implement this callback.
3303  *
3304  * In contrast to the LP branching candidates and the pseudo branching candidates, the list of external branching
3305  * candidates will not be generated automatically. The user has to add all variables to the list by calling
3306  * SCIPaddExternBranchCand() for each of them. Usually, this will happen in the execution method of a relaxation handler or in the
3307  * enforcement methods of a constraint handler.
3308  *
3309  * The user gains access to these branching candidates by calling the method SCIPgetExternBranchCands(). Furthermore,
3310  * SCIP provides two methods for performing the actual branching with a given solution value, namely SCIPbranchVarVal()
3311  * and SCIPcreateChild(). SCIPbranchVarVal() allows users to specify the branching point for a variable in contrast to
3312  * SCIPbranchVar(), which will always use the current LP or pseudo solution.
3313  *
3314  * This paragraph contains additional information regarding how the method SCIPbranchVarVal() works. For external branching candidates,
3315  * there are three principle possibilities:
3316  * - Given a continuous variable \f$x\f$ with solution value \f$x^*\f$, the method SCIPbranchVarVal() creates
3317  * two child nodes; one contains the bound \f$x \le x^* \f$ and the other one contains the bound \f$x \ge x^* \f$.
3318  * - Given an integer variable \f$x\f$ with fractional solution value \f$x^*\f$, the method
3319  * SCIPbranchVarVal() creates two child nodes; one contains the bound \f$x \le \lfloor x^* \rfloor\f$ and the other
3320  * one contains the bound \f$x \ge \lceil x^* \rceil\f$.
3321  * - Given an integer variable \f$x\f$ with integral solution value \f$x^*\f$, the method SCIPbranchVarVal()
3322  * creates three child nodes; one contains the bound \f$x \le x^* -1\f$, one contains the bound \f$x \ge x^* +1\f$,
3323  * one contains the fixing \f$x = x^*\f$.
3324  *
3325  * See the BRANCHEXECEXT callback in src/scip/branch_random.c for an example. In addition, if a proven lower bound of a
3326  * created child node is known the user may call the method SCIPupdateNodeLowerbound() in order to update the child
3327  * node's lower bound.
3328  *
3329  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3330  *
3331  * @subsection BRANCHEXECPS
3332  *
3333  * The BRANCHEXECPS callback is executed during node processing if no LP solution is available and at least one of the
3334  * integer variables is not yet fixed. It should split the current problem into smaller subproblems. PS stands for
3335  * pseudo solution which is the vector of all variables set to their locally best (w.r.t. the objective function)
3336  * bounds.
3337  *
3338  * The user gains access to the branching candidates, i.e., to the non-fixed integer variables, by calling the method
3339  * SCIPgetPseudoBranchCands(). Furthermore, SCIP provides two methods for performing the actual branching, namely
3340  * SCIPbranchVar() and SCIPcreateChild().
3341  *
3342  * Given an integer variable \f$x\f$ with bounds \f$[l,u]\f$ and not having solved the LP, the method SCIPbranchVar()
3343  * creates two child nodes:
3344  * - If both bounds are finite, then the two children will contain the domain reductions \f$x \le x^*\f$, and \f$x \ge
3345  * x^*+1\f$ with \f$x^* = \lfloor \frac{l + u}{2}\rfloor\f$. The current pseudo solution will remain feasible in one
3346  * of the branches, but the hope is that halving the domain's size leads to good propagations.
3347  * - If only one of the bounds is finite, the variable will be fixed to that bound in one of the child nodes. In the
3348  * other child node, the bound will be shifted by one.
3349  * - 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$.
3350 
3351  *
3352  * See the BRANCHEXECPS callback in src/scip/branch_random.c for an example. In addition, if a proven lower bound of a
3353  * created child node is known, the user may call the method SCIPupdateNodeLowerbound() in order to update the child
3354  * node's lower bound.
3355  *
3356  * Please also see the \ref BRANCHEXEC "further information for the three execution methods".
3357  *
3358  * @subsection BRANCHEXEC Further information for the three execution methods
3359  *
3360  * In order to apply more general branching schemes, one should use the method SCIPcreateChild().
3361  * After having created a child node, the additional restrictions of the child node have to be added with calls to
3362  * SCIPaddConsNode(), SCIPchgVarLbNode(), or SCIPchgVarUbNode().
3363  * \n
3364  * In the method SCIPcreateChild(), the branching rule has to assign two values to the new nodes: a node selection
3365  * priority for each node and an estimate for the objective value of the best feasible solution contained in the subtree
3366  * after applying the branching. If the method SCIPbranchVar() is used, these values are automatically assigned. For
3367  * variable based branching schemes, one might use the methods SCIPcalcNodeselPriority() and the method
3368  * SCIPcalcChildEstimate().
3369  *
3370  * In some cases, the branching rule can tighten the current subproblem instead of producing a branching. For example,
3371  * strong branching might have proven that rounding up a variable would lead to an infeasible LP relaxation and thus,
3372  * the variable must be rounded down. Therefore, the BRANCHEXECLP, BRANCHEXECPS and BRANCHEXECREL callbacks may also
3373  * produce domain reductions or add additional constraints to the current subproblem.
3374  *
3375  * The execution callbacks have the following options:
3376  * - detecting that the node is infeasible and can be cut off (result SCIP_CUTOFF)
3377  * - adding an additional constraint (e.g. a conflict constraint) (result SCIP_CONSADDED; note that this action
3378  * must not be performed if the input "allowaddcons" is FALSE)
3379  * - reducing the domain of a variable such that the current LP solution becomes infeasible (result SCIP_REDUCEDDOM)
3380  * - applying a branching (result SCIP_BRANCHED)
3381  * - stating that the branching rule was skipped (result SCIP_DIDNOTRUN).
3382  *
3383  * Only the BRANCHEXECLP callback has the possibility to add a cutting plane to the LP (result SCIP_SEPARATED).
3384  *
3385  * @subsection BRANCHFREE
3386  *
3387  * If you are using branching rule data, you have to implement this method in order to free the branching rule data.
3388  * This can be done by the following procedure:
3389  *
3390  * @refsnippet{src/scip/branch_random.c,SnippetBranchFreeRandom}
3391  *
3392  * If you have allocated memory for fields in your branching rule data, remember to free this memory
3393  * before freeing the branching rule data itself.
3394  * If you are using the C++ wrapper class, this method is not available.
3395  * Instead, just use the destructor of your class to free the member variables of your class.
3396  *
3397  * @subsection BRANCHINIT
3398  *
3399  * The BRANCHINIT callback is executed after the problem is transformed.
3400  * The branching rule may, e.g., use this call to initialize its branching rule data.
3401  *
3402  * @subsection BRANCHCOPY
3403  *
3404  * The BRANCHCOPY callback is executed when a SCIP instance is copied, e.g. to
3405  * solve a sub-SCIP. By
3406  * defining this callback as
3407  * <code>NULL</code> the user disables the execution of the specified
3408  * branching rule for all copied SCIP instances. This may deteriorate the performance
3409  * of primal heuristics using sub-SCIPs.
3410  *
3411  * @subsection BRANCHEXIT
3412  *
3413  * The BRANCHEXIT callback is executed before the transformed problem is freed.
3414  * In this method, the branching rule should free all resources that have been allocated for the solving process in
3415  * BRANCHINIT.
3416  *
3417  * @subsection BRANCHINITSOL
3418  *
3419  * The BRANCHINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3420  * begin.
3421  * The branching rule may use this call to initialize its branch-and-bound specific data.
3422  *
3423  * @subsection BRANCHEXITSOL
3424  *
3425  * The BRANCHEXITSOL callback is executed before the branch-and-bound process is freed.
3426  * The branching rule should use this call to clean up its branch-and-bound data.
3427  */
3428 
3429 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3430 
3431 /**@page NODESEL How to add node selectors
3432  *
3433  * Node selectors are used to decide which of the leaves in the current branching tree is selected as next subproblem
3434  * to be processed. The ordering relation of the tree's leaves for storing them in the leaf priority queue is also
3435  * defined by the node selectors.
3436  * \n
3437  * A complete list of all node selectors contained in this release can be found \ref NODESELECTORS "here".
3438  *
3439  * We now explain how users can add their own node selectors.
3440  * Take the node selector for depth first search (src/scip/nodesel_dfs.c) as an example.
3441  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjNodesel wrapper
3442  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_NODESEL... callback methods.
3443  *
3444  * Additional documentation for the callback methods of a node selector can be found in the file type_nodesel.h.
3445  *
3446  * Here is what you have to do to implement a node selector:
3447  * -# Copy the template files src/scip/nodesel_xyz.c and src/scip/nodesel_xyz.h into files named "nodesel_mynodeselector.c"
3448  * and "nodesel_mynodeselector.h".
3449  * \n
3450  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3451  * -# Use SCIPincludeNodeselMynodeselector() in oder to include the node selector into your SCIP instance,
3452  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3453  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mynodeselector".
3454  * -# Adjust the properties of the node selector (see \ref NODESEL_PROPERTIES).
3455  * -# Define the node selector data (see \ref NODESEL_DATA). This is optional.
3456  * -# Implement the interface methods (see \ref NODESEL_INTERFACE).
3457  * -# Implement the fundamental callback methods (see \ref NODESEL_FUNDAMENTALCALLBACKS).
3458  * -# Implement the additional callback methods (see \ref NODESEL_ADDITIONALCALLBACKS). This is optional.
3459  *
3460  *
3461  * @section NODESEL_PROPERTIES Properties of a Node Selector
3462  *
3463  * At the top of the new file "nodesel_mynodeselector.c" you can find the node selector properties.
3464  * These are given as compiler defines.
3465  * In the C++ wrapper class, you have to provide the node selector properties by calling the constructor
3466  * of the abstract base class scip::ObjNodesel from within your constructor.
3467  * The properties you have to set have the following meaning:
3468  *
3469  * \par NODESEL_NAME: the name of the node selector.
3470  * This name is used in the interactive shell to address the node selector.
3471  * Additionally, if you are searching for a node selector with SCIPfindNodesel(), this name is looked up.
3472  * Names have to be unique: no two node selectors may have the same name.
3473  *
3474  * \par NODESEL_DESC: the description of the node selector.
3475  * This string is printed as a description of the node selector in the interactive shell.
3476  *
3477  * \par NODESEL_STDPRIORITY: the default priority of the node selector in the standard mode.
3478  * The first step of each iteration of the main solving loop is the selection of the next subproblem to be processed.
3479  * The node selector of highest priority (the active node selector) is called to do this selection.
3480  * In particular, if you implemented your own node selector plugin which you want to be applied, you should choose a priority
3481  * which is greater then all priorities of the SCIP default node selectors.
3482  * Note that SCIP has two different operation modes: the standard mode and the memory saving mode. If the memory
3483  * limit - given as a parameter by the user - is almost reached, SCIP switches from the standard mode to the memory saving
3484  * mode in which different priorities for the node selectors are applied. NODESEL_STDPRIORITY is the priority of the
3485  * node selector used in the standard mode.
3486  * \n
3487  * Note that this property only defines the default value of the priority. The user may change this value arbitrarily by
3488  * adjusting the corresponding parameter setting.
3489  *
3490  * \par NODESEL_MEMSAVEPRIORITY: the default priority of the node selector in the memory saving mode.
3491  * The priority NODESEL_MEMSAVEPRIORITY of the node selector has the same meaning as the priority NODESEL_STDPRIORITY, but
3492  * is used in the memory saving mode.
3493  * Usually, you want the best performing node selector, for example best estimate search, to have maximal
3494  * standard priority, while you want a node selector which tends to keep the growth of the search tree limited, for example
3495  * depth first search, to have maximal memory saving priority.
3496  * \n
3497  * Note that this property only defines the default value of the priority. The user may change this value arbitrarily by
3498  * adjusting the corresponding parameter setting.
3499  *
3500  *
3501  * @section NODESEL_DATA Node Selector Data
3502  *
3503  * Below the header "Data structures" you can find a struct which is called "struct SCIP_NodeselData".
3504  * In this data structure, you can store the data of your node selector. For example, you should store the adjustable
3505  * parameters of the node selector in this data structure.
3506  * If you are using C++, you can add node selector data as usual as object variables to your class.
3507  * \n
3508  * Defining node selector data is optional. You can leave the struct empty.
3509  *
3510  *
3511  * @section NODESEL_INTERFACE Interface Methods
3512  *
3513  * At the bottom of "nodesel_mynodeselector.c", you can find the interface method SCIPincludeNodeselMynodeselector(),
3514  * which also appears in "nodesel_mynodeselector.h"
3515  * SCIPincludeNodeselMynodeselector() is called by the user, if (s)he wants to include the node selector,
3516  * i.e., if (s)he wants to use the node selector in his/her application.
3517  *
3518  * This method only has to be adjusted slightly.
3519  * It is responsible for notifying SCIP of the presence of the node selector. For this, you can either call
3520  * SCIPincludeNodesel(),
3521  * or SCIPincludeNodeselBasic() since SCIP version 3.0. In the latter variant, \ref NODESEL_ADDITIONALCALLBACKS "additional callbacks"
3522  * must be added via setter functions as, e.g., SCIPsetNodeselCopy(). We recommend this latter variant because
3523  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3524  * variant must be manually adjusted with every SCIP release containing new callbacks for node selectors in order to compile.
3525  *
3526  *
3527  * If you are using node selector data, you have to allocate the memory for the data at this point.
3528  * You can do this by calling:
3529  * \code
3530  * SCIP_CALL( SCIPallocBlockMemory(scip, &nodeseldata) );
3531  * \endcode
3532  * You also have to initialize the fields in struct SCIP_NodeselData afterwards.
3533  *
3534  * You may also add user parameters for your node selector, see the method SCIPincludeNodeselRestartdfs() in
3535  * src/scip/nodesel_restartdfs.c for an example.
3536  *
3537  *
3538  * @section NODESEL_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Node Selector
3539  *
3540  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
3541  * an operational algorithm.
3542  * They are passed together with the node selector itself to SCIP using SCIPincludeNodesel() or SCIPincludeNodeselBasic(),
3543  * see @ref NODESEL_INTERFACE.
3544  *
3545  * Node selector plugins have two fundamental callback methods, namely the NODESELSELECT method and the NODESELCOMP method.
3546  * These methods have to be implemented for every node selector; the other callback methods are optional.
3547  * They implement the two requirements every node selector has to fulfill: Selecting a node from the queue to be processed
3548  * next and, given two nodes, deciding which of both is favored by the node selector's selection rule. The first
3549  * task is implemented in the NODESELSELECT callback, the second one in the NODESELCOMP callback.
3550  * In the C++ wrapper class scip::ObjNodesel, the scip_select() method and the scip_comp() method (which correspond to the
3551  * NODESELSELECT callback and the NODESELCOMP callback, respectively) are virtual abstract member functions.
3552  * You have to implement them in order to be able to construct an object of your node selector class.
3553  *
3554  * Additional documentation for the callback methods can be found in type_nodesel.h.
3555  *
3556  * @subsection NODESELSELECT
3557  *
3558  * The NODESELSELECT callback is the first method called in each iteration in the main solving loop. It should decide
3559  * which of the leaves in the current branching tree is selected as the next subproblem to be processed.
3560  * It can arbitrarily decide between all leaves stored in the tree, but for performance reasons,
3561  * the current node's children and siblings are often treated different from the remaining leaves.
3562  * This is mainly due to the warm start capabilities of the simplex algorithm and the expectation that the bases of
3563  * neighboring vertices in the branching tree very similar.
3564  * The node selector's choice of the next node to process can
3565  * have a large impact on the solver's performance, because it influences the finding of feasible solutions and the
3566  * development of the global dual bound.
3567  *
3568  * Besides the ranking of the node selector, every node gets assigned a node selection priority by the branching rule
3569  * that created the node. See the \ref BRANCHEXECLP and \ref BRANCHEXECPS callbacks of the branching rules for details.
3570  * For example, the node where the branching went in the same way as the deviation from the branching variable's
3571  * root solution could be assigned a higher priority than the node where the branching went in the opposite direction.
3572  *
3573  * The following methods provide access to the various types of leaf nodes:
3574  * - SCIPgetPrioChild() returns the child of the current node with the largest node selection priority, as assigned by the
3575  * branching rule.
3576  * If no child is available (for example, because the current node was pruned), a NULL pointer is returned.
3577  * - SCIPgetBestChild() returns the best child of the current node with respect to the node selector's ordering relation as
3578  * defined by the \ref NODESELCOMP callback. If no child is available, a NULL pointer is returned.
3579  * - SCIPgetPrioSibling() returns the sibling of the current node with the largest node selection priority.
3580  * If no sibling is available (for example, because all siblings of the current node have already been processed), a NULL
3581  * pointer is returned.
3582  * Note that in binary branching every node has at most one sibling, but since SCIP supports arbitrary branching rules,
3583  * this might not always be the case.
3584  * - SCIPgetBestSibling() returns the best sibling of the current node with respect to the node selector's ordering relation
3585  * as defined by the \ref NODESELCOMP callback. If no sibling is available, a NULL pointer is returned.
3586  * - SCIPgetBestNode() returns the best leaf from the tree (children, siblings, or other leaves) with respect to the node
3587  * selector's ordering relation as defined by the \ref NODESELCOMP callback. If no open leaf exists, a NULL pointer is
3588  * returned. In this case, the optimization is finished, and the node selector should return a NULL pointer as 'selnode'.
3589  * - SCIPgetBestboundNode() returns a leaf from the tree (children, siblings, or other leaves) with the smallest lower (dual)
3590  * objective bound. If the queue is empty, a NULL pointer is returned. In this case, the optimization is finished, and the
3591  * node selector should return a NULL pointer as 'selnode'.
3592  *
3593  *
3594  * @subsection NODESELCOMP
3595  *
3596  * The NODESELCOMP callback is called to compare two leaves of the current branching tree (say node 1 and node 2)
3597  * regarding their ordering relation.
3598  *
3599  * The NODESELCOMP should return the following values:
3600  * - value < 0, if node 1 comes before (is better than) node 2
3601  * - value = 0, if both nodes are equally good
3602  * - value > 0, if node 1 comes after (is worse than) node 2.
3603  *
3604  * @section NODESEL_ADDITIONALCALLBACKS Additional Callback Methods of a Node Selector
3605  *
3606  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3607  * implemented for most applications, they can be used, for example, to initialize and free private data.
3608  * Additional callbacks can either be passed directly with SCIPincludeNodesel() to SCIP or via specific
3609  * <b>setter functions</b> after a call of SCIPincludeNodeselBasic(), see also @ref NODESEL_INTERFACE.
3610  *
3611  * @subsection NODESELFREE
3612  *
3613  * If you are using node selector data, you have to implement this method in order to free the node selector data.
3614  * This can be done by the following procedure:
3615  *
3616  * @refsnippet{src/scip/nodesel_bfs.c,SnippetNodeselFreeBfs}
3617  *
3618  * If you have allocated memory for fields in your node selector data, remember to free this memory
3619  * before freeing the node selector data itself.
3620  * If you are using the C++ wrapper class, this method is not available.
3621  * Instead, just use the destructor of your class to free the member variables of your class.
3622  *
3623  * @subsection NODESELINIT
3624  *
3625  * The NODESELINIT callback is executed after the problem is transformed.
3626  * The node selector may, e.g., use this call to initialize its node selector data.
3627  *
3628  * @subsection NODESELCOPY
3629  *
3630  * The NODESELCOPY callback is executed when a SCIP instance is copied, e.g. to
3631  * solve a sub-SCIP. By
3632  * defining this callback as
3633  * <code>NULL</code> the user disables the execution of the specified
3634  * node selector for all copied SCIP instances. This may deteriorate the performance
3635  * of primal heuristics using sub-SCIPs.
3636  *
3637  * @subsection NODESELEXIT
3638  *
3639  * The NODESELEXIT callback is executed before the transformed problem is freed.
3640  * In this method, the node selector should free all resources that have been allocated for the solving process
3641  * in NODESELINIT.
3642  *
3643  * @subsection NODESELINITSOL
3644  *
3645  * The NODESELINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3646  * begin.
3647  * The node selector may use this call to initialize its branch-and-bound specific data.
3648  *
3649  * @subsection NODESELEXITSOL
3650  *
3651  * The NODESELEXITSOL callback is executed before the branch-and-bound process is freed.
3652  * The node selector should use this call to clean up its branch-and-bound data.
3653  */
3654 
3655 
3656 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3657 
3658 /**@page HEUR How to add primal heuristics
3659  *
3660  * Feasible solutions can be found in two different ways during the traversal of the branch-and-bound tree. On one
3661  * hand, the solution of a node's relaxation may be feasible with respect to the constraints (including the integrality).
3662  * On the other hand, feasible solutions can be discovered by primal heuristics.
3663  * \n
3664  * A complete list of all primal heuristics contained in this release can be found \ref PRIMALHEURISTICS "here".
3665  * \n
3666  * Diving heuristics are primal heuristics that explore an auxiliary search tree in a depth-first manner. Since SCIP
3667  * version 3.2, it is easy to integrate further diving heuristics by using a special controller for the scoring,
3668  * see \ref DIVINGHEUR "here" for information on how to implement a diving heuristic.
3669  * \n
3670  * We now explain how users can add their own primal heuristics.
3671  * Take the simple and fast LP rounding heuristic (src/scip/heur_simplerounding.c) as an example.
3672  * The idea of simple rounding is to iterate over all fractional variables of an LP solution and round them down,
3673  * if the variables appears only with nonnegative coefficients in the system Ax <= b and round them up if
3674  * the variables appears only with nonpositive coefficients.
3675  * If one of both conditions applies for each of the fractional variables, this will give a feasible solution.
3676  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjHeur wrapper
3677  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_HEUR... callback methods.
3678  *
3679  * Additional documentation for the callback methods of a primal heuristic can be found in the file type_heur.h.
3680  *
3681  * Here is what you have to do to implement a primal heuristic:
3682  * -# Copy the template files src/scip/heur_xyz.c and src/scip/heur_xyz.h into files named "heur_myheuristic.c"
3683  * and "heur_myheuristic.h".
3684  * \n
3685  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
3686  * -# Use SCIPincludeHeurMyheuristic() in order to include the heuristic into your SCIP instance,
3687  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
3688  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myheuristic".
3689  * -# Adjust the properties of the primal heuristic (see \ref HEUR_PROPERTIES).
3690  * -# Define the primal heuristic data (see \ref HEUR_DATA). This is optional.
3691  * -# Implement the interface methods (see \ref HEUR_INTERFACE).
3692  * -# Implement the fundamental callback methods (see \ref HEUR_FUNDAMENTALCALLBACKS).
3693  * -# Implement the additional callback methods (see \ref HEUR_ADDITIONALCALLBACKS). This is optional.
3694  *
3695  *
3696  * @section HEUR_PROPERTIES Properties of a Primal Heuristic
3697  *
3698  * At the top of the new file "heur_myheuristic.c" you can find the primal heuristic properties.
3699  * These are given as compiler defines.
3700  * In the C++ wrapper class, you have to provide the primal heuristic properties by calling the constructor
3701  * of the abstract base class scip::ObjHeur from within your constructor.
3702  * Of course, all of them are of relevant, but the most important ones for controlling the performance
3703  * are usually HEUR_FREQ and HEUR_TIMING.
3704  * The properties you have to set have the following meaning:
3705  *
3706  * \par HEUR_NAME: the name of the primal heuristic.
3707  * This name is used in the interactive shell to address the primal heuristic.
3708  * Additionally, if you are searching for a primal heuristic with SCIPfindHeur(), this name is looked up.
3709  * Names have to be unique: no two primal heuristics may have the same name.
3710  *
3711  * \par HEUR_DESC: the description of the primal heuristic.
3712  * This string is printed as a description of the primal heuristic in the interactive shell when you call "display heuristics".
3713  *
3714  * \par HEUR_DISPCHAR: the display character of the primal heuristic.
3715  * In the interactive shell, this character is printed in the first column of a status information row, if the primal
3716  * heuristic found the feasible solution belonging to the primal bound. Note that a star '*' stands for an integral
3717  * LP-relaxation.
3718  * In order to avoid confusion, display characters should be unique: no two primal heuristics should have the same display character.
3719  * You can get a list of all primal heuristics along with their display characters by entering "display heuristics" in the
3720  * SCIP interactive shell.
3721  *
3722  * \par HEUR_PRIORITY: the priority of the primal heuristic.
3723  * At each of the different entry points of the primal heuristics during the solving process (see HEUR_TIMING), they are
3724  * called in decreasing order of their priority.
3725  * \n
3726  * The priority of a primal heuristic should be set according to the complexity of the heuristic and the likelihood to find
3727  * feasible solutions: primal heuristics that provide fast algorithms that often succeed in finding a feasible solution should have
3728  * a high priority (like simple rounding). In addition, the interaction between different types of primal heuristics should be taken into account.
3729  * For example, improvement heuristics, which try to generate improved solutions by inspecting one or more of the feasible
3730  * solutions that have already been found, should have a low priority (like Crossover which by default needs at least 3 feasible solutions).
3731  *
3732  * \par HEUR_FREQ: the default frequency for executing the primal heuristic.
3733  * The frequency together with the frequency offset (see HEUR_FREQOFS) defines the depth levels at which the execution
3734  * method of the primal heuristic \ref HEUREXEC is called. For example, a frequency of 7 together with a frequency offset
3735  * of 5 means, that the \ref HEUREXEC callback is executed for subproblems that are in depth 5, 12, 19, ... of the branching tree. A
3736  * frequency of 0 together with a frequency offset of 3 means, that the execution method is only called at those nodes that are in
3737  * depth level 3 (i.e., at most for \f$2^3 = 8\f$ nodes if binary branching is applied).
3738  * Typical cases are: A frequency of 0 and an offset of 0 which means that
3739  * the heuristic is only called at the root node and a frequency of -1 which disables the heuristic.
3740  * \n
3741  * The frequency can be adjusted by the user. This property of the primal heuristic only defines the default value of the
3742  * frequency. If you want to have a more flexible control of when to execute the primal heuristic, you have to assign
3743  * a frequency of 1 and implement a check at the beginning of your execution method whether you really want to search for feasible
3744  * solutions or not. If you do not want to execute the method, set the result code to SCIP_DIDNOTRUN.
3745  *
3746  * \par HEUR_FREQOFS: the frequency offset for executing the primal heuristic.
3747  * The frequency offset defines the depth of the branching tree at which the primal heuristic is executed for the first
3748  * time. For example, a frequency of 7 (see HEUR_FREQ) together with a frequency offset of 10 means, that the
3749  * callback is executed for subproblems that are in depth 10, 17, 24, ... of the branching tree. In particular, assigning
3750  * different offset values to heuristics of the same type, like diving heuristics, can be useful for evenly spreading the
3751  * application of these heuristics across the branch-and-bound tree.
3752  * Note that if the frequency is equal to 1, the heuristic is applied for all nodes with depth level larger or equal to
3753  * the frequency offset.
3754  *
3755  * \par HEUR_MAXDEPTH: the maximal depth level for executing the primal heuristic.
3756  * This parameter denotes the maximal depth level in the branching tree up to which the execution method of the primal
3757  * heuristic is called. Use -1 for no limit (a usual case).
3758  *
3759  * \par HEUR_TIMING: the execution timing of the primal heuristic.
3760  * Primal heuristics have different entry points during the solving process and the execution timing parameter defines the
3761  * entry point at which the primal heuristic is executed first.
3762  * \n
3763  * The primal heuristic can be called first:
3764  * - before the processing of the node starts (SCIP_HEURTIMING_BEFORENODE)
3765  * - after each LP solve during the cut-and-price loop (SCIP_HEURTIMING_DURINGLPLOOP)
3766  * - after the cut-and-price loop was finished (SCIP_HEURTIMING_AFTERLPLOOP)
3767  * - after the processing of a node <em>with solved LP</em> was finished (SCIP_HEURTIMING_AFTERLPNODE)
3768  * - after the processing of a node <em>without solved LP</em> was finished (SCIP_HEURTIMING_AFTERPSEUDONODE)
3769  * - after the processing of the last node in the current plunge was finished, <em>and only if the LP was solved for
3770  * this node</em> (SCIP_HEURTIMING_AFTERLPPLUNGE)
3771  * - after the processing of the last node in the current plunge was finished, <em>and only if the LP was not solved
3772  * for this node</em> (SCIP_HEURTIMING_AFTERPSEUDOPLUNGE).
3773  * \par
3774  * A plunge is the successive solving of child and sibling nodes in the search tree.
3775  * The flags listed above can be combined to call the heuristic at multiple times by concatenating them with a bitwise OR.
3776  * Two useful combinations are already predefined:
3777  * - after the processing of a node was finished (SCIP_HEURTIMING_AFTERNODE; combines SCIP_HEURTIMING_AFTERLPNODE and
3778  * SCIP_HEURTIMING_AFTERPSEUDONODE)
3779  * - after the processing of the last node in the current plunge was finished (SCIP_HEURTIMING_AFTERPLUNGE; combines
3780  * SCIP_HEURTIMING_AFTERLPPLUNGE and SCIP_HEURTIMING_AFTERPSEUDOPLUNGE)
3781  * \par
3782  * Calling a primal heuristic "before the processing of the node starts" is particularly useful for heuristics
3783  * that do not need to access the LP solution of the current node. If such a heuristic finds a feasible solution, the
3784  * leaves of the branching tree exceeding the new primal bound are pruned. It may happen that even the current node can
3785  * be cut off without solving the LP relaxation. Combinatorial heuristics, like the farthest insert heuristic for the TSP
3786  * (see examples/TSP/src/HeurFarthestInsert.cpp), are often applicable at this point.
3787  * \n
3788  * Very fast primal heuristics that require an LP solution can also be called "after each LP solve during the
3789  * cut-and-price loop". Rounding heuristics, like the simple and fast LP rounding heuristic
3790  * (src/scip/heur_simplerounding.c), belong to this group of primal heuristics.
3791  * \n
3792  * Most heuristics, however, are called either after a node was completely processed
3793  * (e.g. expensive rounding heuristics like RENS), or even only after a full plunge was finished (e.g., diving heuristics).
3794  *
3795  * \par HEUR_USESSUBSCIP: Does the heuristic use a secondary SCIP instance?
3796  * Some heuristics and separators solve MIPs or SAT problems using a secondary SCIP instance. Examples are
3797  * Large Neighborhood Search heuristics such as RINS and Local Branching or the CGMIP separator. To avoid recursion,
3798  * these plugins usually deactivate all other plugins that solve MIPs. If a heuristic uses a secondary SCIP instance,
3799  * this parameter has to be TRUE and it is recommended to call SCIPsetSubscipsOff() for the secondary SCIP instance.
3800  *
3801  * Computational experiments indicate that for the overall performance of a MIP solver, it is important to evenly
3802  * spread the application of the heuristics across the branch-and-bound tree. Thus, the assignment of the parameters
3803  * HEUR_FREQ, HEUR_FREQOFS, and HEUR_TIMING should contribute to this aim.
3804  *
3805  * Note that all diving heuristics in the SCIP distribution (see, e.g., src/scip/heur_guideddiving.c) check whether other diving
3806  * heuristics have already been called at the current node. This can be done by comparing SCIPgetLastDivenode(scip) and
3807  * SCIPgetNNodes(scip). If the two are equal, and if the current node is not the root node (SCIPgetDepth(scip) > 0), diving
3808  * heuristics should be delayed by returning the result code 'SCIP_DELAYED'. This is an additional contribution to the goal of
3809  * not calling multiple similar heuristics at the same node.
3810  *
3811  *
3812  * @section HEUR_DATA Primal Heuristic Data
3813  *
3814  * Below the header "Data structures" you can find a struct which is called "struct SCIP_HeurData".
3815  * In this data structure, you can store the data of your primal heuristic. For example, you should store the adjustable
3816  * parameters of the primal heuristic or a working solution in this data structure.
3817  * If you are using C++, you can add primal heuristic data as usual as object variables to your class.
3818  * \n
3819  * Defining primal heuristic data is optional. You can leave the struct empty.
3820  *
3821  *
3822  * @section HEUR_INTERFACE Interface Methods
3823  *
3824  * At the bottom of "heur_myheuristic.c", you can find the interface method SCIPincludeHeurMyheuristic(),
3825  * which also appears in "heur_myheuristic.h"
3826  * SCIPincludeHeurMyheuristic() is called by the user, if (s)he wants to include the heuristic,
3827  * i.e., if (s)he wants to use the heuristic in his/her application.
3828  *
3829  * This method only has to be adjusted slightly.
3830  * It is responsible for notifying SCIP of the presence of the heuristic. For this, you can either call
3831  * SCIPincludeHeur(),
3832  * or SCIPincludeHeurBasic() since SCIP version 3.0. In the latter variant, \ref HEUR_ADDITIONALCALLBACKS "additional callbacks"
3833  * must be added via setter functions as, e.g., SCIPsetHeurCopy(). We recommend this latter variant because
3834  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
3835  * variant must be manually adjusted with every SCIP release containing new callbacks for heuristics in order to compile.
3836  *
3837  * If you are using primal heuristic data, you have to allocate the memory for the data at this point.
3838  * You can do this by calling:
3839  * \code
3840  * SCIP_CALL( SCIPallocBlockMemory(scip, &heurdata) );
3841  * \endcode
3842  * You also have to initialize the fields in struct SCIP_HeurData afterwards.
3843  *
3844  * You may also add user parameters for your primal heuristic, see the method SCIPincludeHeurFeaspump() in
3845  * src/scip/heur_oneopt.c for an example where a single Boolean parameter is added.
3846  *
3847  *
3848  * @section HEUR_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Primal Heuristic
3849  *
3850  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
3851  * an operational algorithm.
3852  * They are passed together with the primal heuristic itself to SCIP using SCIPincludeHeur() or SCIPincludeHeurBasic(),
3853  * see @ref HEUR_INTERFACE.
3854  *
3855  *
3856  * Primal heuristic plugins have only one fundamental callback method, namely the HEUREXEC method.
3857  * This method has to be implemented for every primal heuristic; the other callback methods are optional.
3858  * In the C++ wrapper class scip::ObjHeur, the scip_exec() method (which corresponds to the HEUREXEC callback) is a virtual
3859  * abstract member function. You have to implement it in order to be able to construct an object of your primal heuristic
3860  * class.
3861  *
3862  * Additional documentation for the callback methods can be found in type_heur.h.
3863  *
3864  * @subsection HEUREXEC
3865  *
3866  * The HEUREXEC callback is called at different positions during the node processing loop, see HEUR_TIMING. It should
3867  * search for feasible solutions and add them to the solution pool. For creating a new feasible solution, the
3868  * methods SCIPcreateSol() and SCIPsetSolVal() can be used. Afterwards, the solution can be added to the storage by
3869  * calling the method SCIPtrySolFree() (or SCIPtrySol() and SCIPfreeSol()).
3870  *
3871  * The HEUREXEC callback gets a SCIP pointer, a pointer to the heuristic itself, the current point in the
3872  * solve loop and a result pointer as input (see type_heur.h).
3873  *
3874  * The heuristic has to set the result pointer appropriately!
3875  * Therefore it has the following options:
3876  * - finding at least one feasible solution (result SCIP_FOUNDSOL)
3877  * - stating that the primal heuristic searched, but did not find a feasible solution (result SCIP_DIDNOTFIND)
3878  * - stating that the primal heuristic was skipped (result SCIP_DIDNOTRUN)
3879  * - stating that the primal heuristic was skipped, but should be called again (result SCIP_DELAYED).
3880  *
3881  *
3882  * @section HEUR_ADDITIONALCALLBACKS Additional Callback Methods of a Primal Heuristic
3883  *
3884  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
3885  * implemented for most applications, they can be used, for example, to initialize and free private data.
3886  * Additional callbacks can either be passed directly with SCIPincludeHeur() to SCIP or via specific
3887  * <b>setter functions</b> after a call of SCIPincludeHeurBasic(), see also @ref HEUR_INTERFACE.
3888  *
3889  * @subsection HEURFREE
3890  *
3891  * If you are using primal heuristic data, you have to implement this method in order to free the primal heuristic data.
3892  * This can be done by the following procedure:
3893  *
3894  * @refsnippet{applications/Coloring/src/heur_init.c,SnippetHeurFreeInit}
3895  *
3896  * If you have allocated memory for fields in your primal heuristic data, remember to free this memory
3897  * before freeing the primal heuristic data itself.
3898  * If you are using the C++ wrapper class, this method is not available.
3899  * Instead, just use the destructor of your class to free the member variables of your class.
3900  *
3901  * @subsection HEURINIT
3902  *
3903  * The HEURINIT callback is executed after the problem is transformed.
3904  * The primal heuristic may, e.g., use this call to initialize its primal heuristic data.
3905  *
3906  * @subsection HEURCOPY
3907  *
3908  * The HEURCOPY callback is executed when a SCIP instance is copied, e.g. to
3909  * solve a sub-SCIP. By
3910  * defining this callback as
3911  * <code>NULL</code> the user disables the execution of the specified
3912  * heuristic for all copied SCIP instances. This may deteriorate the performance
3913  * of primal heuristics using sub-SCIPs.
3914  *
3915  * @subsection HEUREXIT
3916  *
3917  * The HEUREXIT callback is executed before the tDIVINGHEURransformed problem is freed.
3918  * In this method, the primal heuristic should free all resources that have been allocated for the solving process in
3919  * HEURINIT.
3920  *
3921  * @subsection HEURINITSOL
3922  *
3923  * The HEURINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
3924  * begin. The primal heuristic may use this call to initialize its branch-and-bound specific data.
3925  *
3926  * @subsection HEUREXITSOL
3927  *
3928  * The HEUREXITSOL callback is executed before the branch-and-bound process is freed. The primal heuristic should use this
3929  * call to clean up its branch-and-bound data, which was allocated in HEURINITSOL.
3930  */
3931 
3932 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
3933 
3934 /**@page DIVINGHEUR How to implement a diving heuristic
3935  *
3936  * Diving heuristics are an important addon to the branch-and-cut search. A diving heuristic explores a single probing
3937  * path down the search tree. In contrast to the regular search guided by branching rule(s) and the selected
3938  * node selector, the diving is performed in an auxiliary tree originating from the focus node of the main
3939  * search tree where the heuristic was called. The advantage of this approach is that many different scoring mechanisms
3940  * can be safely tried as diving heuristic and may probably lead to better solutions. SCIP has a lot of diving heuristics
3941  * included in its default plugin set.
3942  * \n
3943  *
3944  * Since SCIP version 3.2, the diving heuristics have been redesigned to contain mainly the scoring function used by the
3945  * heuristic. In order to implement a user-defined diving heuristic, it is possible to create one (or several)
3946  * divesets that control the scoring mechanism and add them to the primal heuristic. This has the advantage that
3947  * less code is necessary to create a working diving heuristic. The SCIP statistics now also display some interesting statistics
3948  * about every diveset together in the section 'Diving Statistics'.
3949  * \n
3950  *
3951  * This page contains the necessary steps to understand and include a diveset into ones primal diving heuristic plugin. As
3952  * a prerequisite, you should understand the basic implementation steps for a primal heuristic, see \ref HEUR.
3953  * In order to make use of divesets, they must be included _after_ the primal heuristic to which they should belong
3954  * has been included, by using SCIPincludeDiveset(). This will create the data structure for the diveset and
3955  * append it to the list of divesets belonging to the heuristic, which can be retrieved later together with their number
3956  * by using SCIPheurGetDivesets() and SCIPheurGetNDivesets(), respectively. No further memory allocation or deletion is needed;
3957  * As a member of the heuristic, SCIP automatically takes care of freeing the diveset when it is exiting.
3958  * \n
3959  *
3960  * Before the inclusion, one may think of adjusting the various properties that a diveset offers to control
3961  * the behavior of the algorithm. These are subject to the following section.
3962  * \n
3963  *
3964  * It is mandatory to implement the fundamental scoring callback of the diveset, which is explained in more detail
3965  * in Section \ref DIVING_FUNDAMENTALCALLBACKS.
3966  * \n
3967  *
3968  * Once the properties have been carefully adjusted and the scoring
3969  * has been defined, use the method SCIPperformGenericDivingAlgorithm() inside the execution callback (\ref HEUREXEC) of the primal
3970  * heuristic to which the diveset belongs, after checking possible preliminaries that may not be met at all times of the search.
3971  * \n
3972  *
3973  * For a code example, we refer to \ref heur_guideddiving.h, which guides the diving into the direction of the current incumbent solution.
3974  * Before it calls SCIPperformGenericDivingAlgorithm(), it checks whether an incumbent is available, and returns if there is none.
3975  *
3976  *
3977  * @section DIVING_PARAMETERS User parameters and properties for every diveset
3978  *
3979  * Every diveset controls the diving behavior through a set of user-defined parameters, which are explained in the following:
3980  *
3981  * \par MINRELDEPTH
3982  * the minimal relative depth (to the maximum depth explored during regular search) of the current focus node to start diving
3983  *
3984  * \par MAXRELDEPTH
3985  * the maximal relative depth (to the maximum depth explored during regular search) of the current focus node to start diving
3986  *
3987  * \par MAXLPITERQUOT
3988  * maximal fraction of diving LP iterations compared to node LP iterations that this dive controller may consume
3989  *
3990  * \par MAXLPITEROFS
3991  * an additional number of allowed LP iterations
3992  *
3993  * \par MAXDIVEUBQUOT
3994  * maximal quotient (curlowerbound - lowerbound)/(cutoffbound - lowerbound)
3995  * where diving is performed (0.0: no limit)
3996  *
3997  * \par MAXDIVEAVGQUOT
3998  * maximal quotient (curlowerbound - lowerbound)/(avglowerbound - lowerbound)
3999  * where diving is performed (0.0: no limit)
4000  *
4001  * \par MAXDIVEUBQUOTNOSOL
4002  * maximal UBQUOT when no solution was found yet (0.0: no limit)
4003  *
4004  * \par MAXDIVEAVGQUOTNOSOL
4005  * maximal AVGQUOT when no solution was found yet (0.0: no limit)
4006  *
4007  * \par BACKTRACK
4008  * use one level of backtracking if infeasibility is encountered?
4009  *
4010  * \par LPRESOLVEDOMCHGQUOT
4011  * parameter to control LP resolve dynamically based on this percentage of observed bound changes relative to all variables or
4012  * the LP branching candidates (integer variables with fractional solution values) from the last node where an LP has been solved.
4013  * This property has no effect when the LPSOLVEFREQ is set to 1.
4014  *
4015  * \par LPSOLVEFREQ
4016  * 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
4017  * diveset to solve _all_ intermediate LPs) or 0 to only resolve the LP relaxation after propagation found at least a certain percentage
4018  * domain changes, see also the previous LPRESOLVEDOMCHGQUOT parameter.
4019  *
4020  * \par ONLYLPBRANCHCANDS
4021  * Set this property to TRUE if only LP branching candidates be considered for the execution of the diving algorithm instead of the slower but
4022  * more general constraint handler diving variable selection.
4023  *
4024  * \par DIVETYPES
4025  * bit mask that represents all supported dive types. Irrelevant if only LP branching candidates should be scored, otherwise, different
4026  * constraint handlers may ask the diveset if it supports their preferred divetype. See \ref type_heur.h for a list of
4027  * available dive types.
4028  *
4029  * @section DIVING_FUNDAMENTALCALLBACKS Fundamental callbacks of a diveset
4030  *
4031  * Only one callback is necessary to complete a diveset to guide the diving search performed:
4032  *
4033  * @subsection DIVESETGETSCORE
4034  *
4035  * The scoring callback expects a candidate variable and calculates a score value and a preferred direction. The selected
4036  * variable for diving will be one that _maximizes_ the score function provided by the diveset.
4037  * If the diveset should support more than one possible type of diving, it may use the divetype argument as a hint how
4038  * the caller of the score function (could be the diving algorithm itself or one of the constraint handlers that
4039  * implement diving variable selection) intends to perform the search.
4040  *
4041  * @section DIVING_FURTHERINFO Further information
4042  *
4043  * This is all there is to extend the SCIP set of diving heuristics by a new one. For further information, please see
4044  * diveset related methods in \ref type_heur.h, \ref pub_heur.h, \ref heuristics.h, and \ref heur_guideddiving.h or
4045  * other diving heuristics that implement diving through a diveset.
4046  */
4047 
4048 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4049 
4050 /**@page RELAX How to add relaxation handlers
4051  *
4052  * SCIP provides specific support for LP relaxations of constraint integer programs. In addition, relaxation handlers,
4053  * also called relaxators, can be used to include other relaxations, e.g. Lagrange relaxations or semidefinite
4054  * relaxations. The relaxation handler manages the necessary data structures and calls the relaxation solver to generate dual
4055  * bounds and primal solution candidates.
4056  * \n
4057  * However, the data to define a single relaxation must either be extracted by the relaxation handler itself (e.g., from
4058  * the user defined problem data, the LP information, or the integrality conditions), or be provided by the constraint
4059  * handlers. In the latter case, the constraint handlers have to be extended to support this specific relaxation.
4060  * \n
4061  *
4062  * We now explain how users can add their own relaxation handlers using the C interface. As an example, look into the NLP
4063  * relaxation handler of the \ref RELAXATOR_MAIN "Relaxator example" (examples/Relaxator/src/relax_nlp.c). It is very easy to
4064  * transfer the C explanation to C++: whenever a method should be implemented using the SCIP_DECL_RELAX... notion,
4065  * reimplement the corresponding virtual member function of the abstract scip::ObjRelax wrapper base class.
4066  *
4067  * Additional documentation for the callback methods of a relaxation handler can be found in the file type_relax.h.
4068  *
4069  * Here is what you have to do to implement a relaxation handler:
4070  * -# Copy the template files src/scip/relax_xyz.c and src/scip/relax_xyz.h into files named "relax_myrelaxator.c"
4071  * and "relax_myrelaxator.h".
4072  * \n
4073  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4074  * -# Use SCIPincludeRelaxMyrelaxator() in order to include the relaxation handler into your SCIP instance,
4075  * e.g, in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4076  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myrelaxator".
4077  * -# Adjust the properties of the relaxation handler (see \ref RELAX_PROPERTIES).
4078  * -# Define the relaxation handler data (see \ref RELAX_DATA). This is optional.
4079  * -# Implement the interface methods (see \ref RELAX_INTERFACE).
4080  * -# Implement the fundamental callback methods (see \ref RELAX_FUNDAMENTALCALLBACKS).
4081  * -# Implement the additional callback methods (see \ref RELAX_ADDITIONALCALLBACKS). This is optional.
4082  *
4083  *
4084  * @section RELAX_PROPERTIES Properties of a Relaxation Handler
4085  *
4086  * At the top of the new file "relax_myrelaxator.c" you can find the relaxation handler properties.
4087  * These are given as compiler defines.
4088  * In the C++ wrapper class, you have to provide the relaxation handler properties by calling the constructor
4089  * of the abstract base class scip::ObjRelax from within your constructor.
4090  * The properties you have to set have the following meaning:
4091  *
4092  * \par RELAX_NAME: the name of the relaxation handler.
4093  * This name is used in the interactive shell to address the relaxation handler.
4094  * Additionally, if you are searching for a relaxation handler with SCIPfindRelax(), this name is looked up.
4095  * Names have to be unique: no two relaxation handlers may have the same name.
4096  *
4097  * \par RELAX_DESC: the description of the relaxation handler.
4098  * This string is printed as a description of the relaxation handler in the interactive shell.
4099  *
4100  * \par RELAX_PRIORITY: the priority of the relaxation handler.
4101  * During each relaxation solving round, the included relaxation handlers and the
4102  * price-and-cut loop for solving the LP relaxation are called in a predefined order, which is given by the priorities
4103  * of the relaxation handlers.
4104  * First, the relaxation handlers with non-negative priority are called in the order of decreasing priority.
4105  * Next, the price-and-cut loop for solving the LP relaxation is executed.
4106  * Finally, the relaxation handlers with negative priority are called in the order of decreasing priority.
4107  * \n
4108  * Usually, you will have only one relaxation handler in your application and thus only have to decide whether it should
4109  * be called before or after solving the LP relaxation. For this decision you should consider the complexity of
4110  * the relaxation solving algorithm and the impact of the resulting solution: if your relaxation handler provides a fast
4111  * algorithm that usually has a high impact (i.e. the relaxation is a good approximation of the
4112  * feasible region of the subproblem and the solution severely improves the dual bound), it should have a non-negative
4113  * priority.
4114  * \n
4115  * Note that for certain applications, it is useful to disable the LP relaxation and only use your custom relaxation.
4116  * This can easily be achieved by setting the "lp/solvefreq" parameter to -1.
4117  *
4118  * \par RELAX_FREQ: the default frequency for solving the relaxation.
4119  * The frequency defines the depth levels at which the relaxation solving method \ref RELAXEXEC is called.
4120  * For example, a frequency of 7 means, that the relaxation solving callback is executed for subproblems that are in depth
4121  * 0, 7, 14, ... of the branching tree. A frequency of 0 means that the callback is only executed at the root node, i.e.,
4122  * only the relaxation of the root problem is solved. A frequency of -1 disables the relaxation handler.
4123  *
4124  *
4125  *
4126  * @section RELAX_DATA Relaxation Handler Data
4127  *
4128  * Below the header "Data structures" you can find a struct which is called "struct SCIP_RelaxData".
4129  * In this data structure, you can store the data of your relaxation handler. For example, you should store the adjustable
4130  * parameters of the relaxation handler in this data structure.
4131  * If you are using C++, you can add relaxation handler data as usual as object variables to your class.
4132  * \n
4133  * Defining relaxation handler data is optional. You can leave the struct empty.
4134  *
4135  *
4136  * @section RELAX_INTERFACE Interface Methods
4137  *
4138  * At the bottom of "relax_myrelaxator.c", you can find the interface method SCIPincludeRelaxMyrelaxator(),
4139  * which also appears in "relax_myrelaxator.h".
4140  * SCIPincludeRelaxMyrelaxator() is called by the user, if (s)he wants to include the relaxation handler,
4141  * i.e., if (s)he wants to use the relaxation handler in his/her application.
4142  *
4143  * This method only has to be adjusted slightly.
4144  * It is responsible for notifying SCIP of the presence of the relaxation handler. For this, you can either call
4145  * SCIPincludeRelax(),
4146  * or SCIPincludeRelaxBasic() since SCIP version 3.0. In the latter variant, \ref RELAX_ADDITIONALCALLBACKS "additional callbacks"
4147  * must be added via setter functions as, e.g., SCIPsetRelaxCopy(). We recommend this latter variant because
4148  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
4149  * variant must be manually adjusted with every SCIP release containing new callbacks for relaxation handlers in order to compile.
4150  *
4151  * If you are using relaxation handler data, you have to allocate the memory for the data at this point.
4152  * You can do this by calling:
4153  * \code
4154  * SCIP_CALL( SCIPallocBlockMemory(scip, &relaxdata) );
4155  * \endcode
4156  * You also have to initialize the fields in struct SCIP_RelaxData afterwards.
4157  *
4158  * You may also add user parameters for your relaxation handler, see the method SCIPincludeConshdlrKnapsack() in
4159  * the \ref cons_knapsack.h "knapsack constraint handler" for an example of how to add user parameters.
4160  *
4161  *
4162  * @section RELAX_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Relaxation Handler
4163  *
4164  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
4165  * an operational algorithm.
4166  * They are passed together with the relaxation handler itself to SCIP using SCIPincludeRelax() or SCIPincludeRelaxBasic(),
4167  * see @ref RELAX_INTERFACE.
4168  *
4169  *
4170  * Relaxation handler plugins have only one fundamental callback method, namely the \ref RELAXEXEC method.
4171  * This method has to be implemented for every relaxation handler; the other callback methods are optional.
4172  * In the C++ wrapper class scip::ObjRelax, the scip_exec() method (which corresponds to the \ref RELAXEXEC callback) is a virtual
4173  * abstract member function.
4174  * You have to implement it in order to be able to construct an object of your relaxation handler class.
4175  *
4176  * Additional documentation for the callback methods can be found in type_relax.h.
4177  *
4178  * @subsection RELAXEXEC
4179  * The RELAXEXEC is called in each relaxation solving round. It should solve the current
4180  * subproblem's relaxation.
4181  *
4182  * Note that, like the LP relaxation, the relaxation handler should only operate on variables for which the corresponding
4183  * column exists in the transformed problem. Typical methods called by a relaxation handler are SCIPconstructLP() and SCIPflushLP() to
4184  * make sure that the LP of the current node is constructed and its data can be accessed via calls to SCIPgetLPRowsData()
4185  * and SCIPgetLPColsData(), and SCIPseparateSol() to call the cutting plane separators for a given primal solution.
4186  *
4187  * The lowerbound computed by the relaxation should be returned in the lowerbound pointer. If the relaxation improves on the best
4188  * relaxation already computed (either <code>SCIPisRelaxSolValid()</code> returns FALSE, meaning that no relaxation solution
4189  * is available so far, or the lowerbound is larger than the value returned by <code>SCIPgetRelaxSolObj()</code>), then the primal
4190  * solution of the relaxation should be stored inside the data structures of SCIP with <code>SCIPsetRelaxSolVal()</code>,
4191  * <code>SCIPsetRelaxSolVals()</code> or <code>SCIPsetRelaxSolValsSol()</code>. If you set the values one by one, you will need to call
4192  * <code>SCIPmarkRelaxSolValid()</code> to inform SCIP that the solution is complete and valid. With the "includeslp" argument of
4193  * <code>SCIPsetRelaxSolVals()</code>, <code>SCIPsetRelaxSolValsSol()</code> and <code>SCIPmarkRelaxSolValid()</code> you need to tell SCIP
4194  * whether the relaxation included all lp rows. In this case, the solution will be enforced and, if feasible, added to the solution storage if the
4195  * lowerbound of this relaxator is larger than the LP's. You may also call SCIPtrySolFree() directly from the
4196  * relaxation handler to make sure that a solution is added to the solution storage if it is feasible, even if the relaxator does not
4197  * include the LP or another relaxator produced a stronger bound. Also note that when setting the values of the relaxation solution one by one,
4198  * the objective value of the relaxation solution will be updated incrementally. If the whole solution should be updated, using SCIPsetRelaxSolVals()
4199  * instead or calling SCIPclearRelaxSolVals() before setting the first value to reset the solution and the objective value to 0 may help the numerics.
4200  * Furthermore, there is a list of external branching candidates, that can be filled by relaxation handlers and constraint handlers,
4201  * allowing branching rules to take these candidates as a guide on how to split the problem into subproblems. If the relaxation
4202  * solution is enforced, the integrality constraint handler will add external branching candidates for the relaxation solution
4203  * automatically, but the relaxation handler can also directly call <code>SCIPaddExternBranchCand()</code>.
4204  *
4205  * Usually, the RELAXEXEC callback only solves the relaxation and provides a lower (dual) bound through the corresponding pointer and
4206  * possibly a solution through <code>SCIPsetRelaxSolVal()</code> calls.
4207  * However, it may also produce domain reductions, add additional constraints or generate cutting planes. It has the
4208  * following options:
4209  * - detecting that the node is infeasible in the variable's bounds and can be cut off (result SCIP_CUTOFF)
4210  * - adding an additional constraint and stating that the relaxation handler should not be called again on the same
4211  * relaxation (result SCIP_CONSADDED)
4212  * - reducing a variable's domain and stating that the relaxation handler should not be called again on the same
4213  * relaxation (result SCIP_REDUCEDDOM)
4214  * - adding a cutting plane to the LP and stating that the relaxation handler should not be called again on the same
4215  * relaxation (result SCIP_SEPARATED)
4216  * - stating that the relaxation handler solved the relaxation and should not be called again on the same relaxation
4217  * (result SCIP_SUCCESS)
4218  * - interrupting the solving process to wait for additional input, e.g., cutting planes (result SCIP_SUSPENDED)
4219  * - stating that the separator was skipped (result SCIP_DIDNOTRUN).
4220  *
4221  * In the above criteria, "the same relaxation" means that the LP relaxation stayed unmodified. This means in particular
4222  * that no row has been added and no bounds have been modified. For example, changing the bounds of a variable will, as
4223  * long as it was a COLUMN variable, lead to a modification in the LP such that the relaxation handler is called again
4224  * after it returned with the result code SCIP_REDUCEDDOM. If the relaxation solution should be enforced, the relaxation
4225  * handler has to produce a new solution in this case which satisfies the updated LP. If a relaxation handler should only run
4226  * once per node to compute a lower bound, it should store the node of the last relaxation call itself and return
4227  * SCIP_DIDNOTRUN for subsequent calls in the same node.
4228  *
4229  *
4230  * @section RELAX_ADDITIONALCALLBACKS Additional Callback Methods of a Relaxation Handler
4231  *
4232  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
4233  * implemented for most applications, they can be used, for example, to initialize and free private data.
4234  * Additional callbacks can either be passed directly with SCIPincludeRelax() to SCIP or via specific
4235  * <b>setter functions</b> after a call of SCIPincludeRelaxBasic(), see also @ref RELAX_INTERFACE.
4236  *
4237  * @subsection RELAXFREE
4238  *
4239  * If you are using relaxation handler data, you have to implement this method in order to free the relaxation handler
4240  * data. This can be done by the following procedure:
4241  *
4242  * @refsnippet{tests/src/relax/relax.c,SnippetRelaxFreeUnittest}
4243  *
4244  * If you have allocated memory for fields in your relaxation handler data, remember to free this memory
4245  * before freeing the relaxation handler data itself.
4246  * If you are using the C++ wrapper class, this method is not available.
4247  * Instead, just use the destructor of your class to free the member variables of your class.
4248  *
4249  * @subsection RELAXINIT
4250  *
4251  * The RELAXINIT callback is executed after the problem is transformed.
4252  * The relaxation handler may, e.g., use this call to initialize its relaxation handler data.
4253  *
4254  * @subsection RELAXCOPY
4255  *
4256  * The RELAXCOPY callback is executed when a SCIP instance is copied, e.g. to
4257  * solve a sub-SCIP. By
4258  * defining this callback as
4259  * <code>NULL</code> the user disables the execution of the specified
4260  * relaxation handler for all copied SCIP instances. This may deteriorate the performance
4261  * of primal heuristics using sub-SCIPs.
4262  *
4263  * @subsection RELAXEXIT
4264  *
4265  * The RELAXEXIT callback is executed before the transformed problem is freed.
4266  * In this method, the relaxation handler should free all resources that have been allocated for the solving process in
4267  * RELAXINIT.
4268  *
4269  * @subsection RELAXINITSOL
4270  *
4271  * The RELAXINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
4272  * begin. The relaxation handler may use this call to initialize its branch-and-bound specific data.
4273  *
4274  * @subsection REALXEXITSOL
4275  *
4276  * The RELAXEXITSOL callback is executed before the branch-and-bound process is freed.
4277  * The relaxation handler should use this call to clean up its branch-and-bound data.
4278  */
4279 
4280 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4281 
4282 /**@page READER How to add file readers
4283  *
4284  * Mainly, file readers are called to parse an input file and generate a constraint integer programming model. They
4285  * create constraints and variables and activate variable pricers if necessary. However, they can also be called, for
4286  * example, to parse an input file containing information about a primal solution or fixing of variables. Besides that
4287  * it is possible to use some of them for writing (exporting) the problem in a specific format. \n A complete list of
4288  * all file readers contained in this release can be found \ref FILEREADERS "here".
4289  *
4290  * Since a file reader is also responsible for writing a file, the user may
4291  * ask why the readers have not the name "filehandler". This name would
4292  * represent this plugin much better than the used one.
4293  * \n
4294  * The used name "readers" is historically grown. In the beginning of SCIP
4295  * there was no need to write/export problems. Therefore, the the plugin
4296  * name "readers" was best fitting for this plugin since only reading was essential.
4297  * It turned out, however, that it is quite nice to write/export certain subproblem during
4298  * the solving process mainly for debugging. Therefore, a writing callback
4299  * was added to the "readers" plugin.
4300  *
4301  * We now explain how users can add their own file readers.
4302  * Take the file reader for MIPs in IBM's Mathematical Programming System format (src/scip/reader_mps.c) as an example.
4303  * As all other default plugins, it is written in C. C++ users can easily adapt the code by using the scip::ObjReader wrapper
4304  * base class and implement the scip_...() virtual methods instead of the SCIP_DECL_READER... callback methods.
4305  *
4306  * Additional documentation for the callback methods of a file reader can be found in the file type_reader.h.
4307  *
4308  * Here is what you have to do to implement a file reader named "myreader" in C:
4309  * -# Copy the template files src/scip/reader_xyz.c and src/scip/reader_xyz.h into files named
4310  * "reader_myreader.c" and "reader_myreader.h".
4311  * \n
4312  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4313  * -# Use SCIPincludeReaderMyreader() in order to include the file reader into your SCIP instance,
4314  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4315  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "myreader".
4316  * -# Adjust the \ref READER_PROPERTIES "properties of the file reader".
4317  * -# Define the \ref READER_DATA "file reader data". This is optional.
4318  * -# Implement the \ref READER_INTERFACE "interface methods".
4319  * -# Implement the \ref READER_FUNDAMENTALCALLBACKS "fundamental callback methods".
4320  * -# Implement the \ref READER_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4321  *
4322  *
4323  * @section READER_PROPERTIES Properties of a File Reader
4324  *
4325  * At the top of the new file "reader_myreader.c" you can find the file reader properties.
4326  * These are given as compiler defines.
4327  * In the C++ wrapper class, you have to provide the file reader properties by calling the constructor
4328  * of the abstract base class scip::ObjReader from within your constructor.
4329  * The properties you have to set have the following meaning:
4330  *
4331  * \par READER_NAME: the name of the file reader.
4332  * This name is used in the interactive shell to address the file reader.
4333  * Additionally, if you are searching for a file reader with SCIPfindReader(), this name is looked up.
4334  * Names have to be unique: no two file readers may have the same name.
4335  *
4336  * \par READER_DESC: the description of the file reader.
4337  * This string is printed as a description of the file reader in the interactive shell.
4338  *
4339  * \par READER_EXTENSION: the file name extension of the file reader.
4340  * Each file reader is hooked to a single file name extension. It is automatically called if the user wants to read in a
4341  * file of corresponding name. The extensions of the different file readers have to be unique.
4342  * Note that the additional extension '.gz', '.z', or '.Z' (indicating a gzip compressed file) are ignored for assigning
4343  * an input file to a reader.
4344  * \n
4345  * It is not possible to hook up a (single) file reader with more than one file extension.
4346  * It is, however, not necessary to implement the same (parsing/writing) methods more than once, if you want to
4347  * support several file extension with the same parser. To do so look at the files reader_lp.c
4348  * and reader_rlp.c. Both support the LP format.
4349  *
4350  *
4351  * @section READER_DATA File Reader Data
4352  *
4353  * Below the header "Data structures" you can find a struct which is called "struct SCIP_ReaderData".
4354  * In this data structure, you can store the data of your file reader. For example, you should store the adjustable
4355  * parameters of the file reader in this data structure.
4356  * If you are using C++, you can add file reader data as usual as object variables to your class.
4357  * \n
4358  * Defining file reader data is optional. You can leave the struct empty.
4359  *
4360  *
4361  * @section READER_INTERFACE Interface Methods
4362  *
4363  * At the bottom of "reader_myreader.c", you can find the interface method SCIPincludeReaderMyreader(),
4364  * which also appears in "reader_myreader.h".
4365  * SCIPincludeReaderMyreader() is called by the user, if (s)he wants to include the reader,
4366  * i.e., if (s)he wants to use the reader in his/her application.
4367  *
4368  * This method only has to be adjusted slightly.
4369  * It is responsible for notifying SCIP of the presence of the reader. For this, you can either call
4370  * SCIPincludeReader(),
4371  * or SCIPincludeReaderBasic() since SCIP version 3.0. In the latter variant, \ref READER_ADDITIONALCALLBACKS "additional callbacks"
4372  * must be added via setter functions as, e.g., SCIPsetReaderCopy(). We recommend this latter variant because
4373  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
4374  * variant must be manually adjusted with every SCIP release containing new callbacks for readers in order to compile.
4375  *
4376  * If you are using file reader data, you have to allocate the memory for the data at this point.
4377  * You can do this by calling:
4378  * \code
4379  * SCIP_CALL( SCIPallocBlockMemory(scip, &readerdata) );
4380  * \endcode
4381  * You also have to initialize the fields in struct SCIP_ReaderData afterwards.
4382  *
4383  * You may also add user parameters for your file reader, see the method SCIPincludeReaderLp() in
4384  * src/scip/reader_lp.c for an example.
4385  *
4386  *
4387  * @section READER_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a File Reader
4388  *
4389  * File reader plugins have no fundamental callback methods. This is due to
4390  * the fact that a file reader can be used for reading and/or writing a
4391  * file. A file reader is only useful if the reader method \ref READERREAD
4392  * and/or the writing method \ref READERWRITE is implemented. One of these
4393  * methods should be implemented for every file reader; the other callback
4394  * methods \ref READERCOPY and \ref READERFREE are optional. In the C++ wrapper class scip::ObjReader, the
4395  * scip_read() and scip_write() methods (which corresponds to the \ref
4396  * READERREAD and \ref READERWRITE callback) are virtual member
4397  * functions. At least one of them should be implemented.
4398  *
4399  * Additional documentation for the callback methods can be found in type_reader.h.
4400  *
4401  *
4402  * @section READER_ADDITIONALCALLBACKS Additional Callback Methods of a File Reader
4403  *
4404  * Additional callbacks can either be passed directly with SCIPincludeReader() to SCIP or via specific
4405  * <b>setter functions</b> after a call of SCIPincludeReaderBasic(), see also @ref READER_INTERFACE.
4406  *
4407  *
4408  * File reader plugins contain only additional callback methods, namely the methods \ref READERREAD,
4409  * \ref READERWRITE, \ref READERFREE, and \ref READERCOPY. Therefore, these are not needed to be implemented. However,
4410  * at least \ref READERREAD and/or \ref READERWRITE should be implemented (see notes
4411  * \ref READER_FUNDAMENTALCALLBACKS "above").
4412  *
4413  *
4414  * @subsection READERREAD
4415  *
4416  * The READERREAD callback is called when the user invokes SCIP to read in a file with file name extension
4417  * corresponding to the READER_EXTENSION property of the file reader. This is usually triggered by a call to the method
4418  * SCIPreadProb() or by an interactive shell command.
4419  * The READERREAD callback should parse the input file and perform the desired action, which usually means
4420  * generating a constraint integer programming model, adding a primal solution, fixing variables
4421  * in an existing model.
4422  * \n
4423  * Typical methods called by a file reader that is used to read/generate constraint
4424  * integer programming models are, for example,
4425  *
4426  * - creating an empty problem: SCIPcreateProb()
4427  * - creating the variables: SCIPcreateVar(), SCIPchgVarType(), SCIPchgVarLb(), SCIPchgVarUb(), SCIPaddVar(), and
4428  * SCIPreleaseVar()
4429  * - modifying the objective function: SCIPchgVarObj() and SCIPsetObjsense().
4430  * - creating the constraints: SCIPcreateConsLinear(), SCIPaddCoefLinear(), SCIPchgLhsLinear(), SCIPchgRhsLinear(),
4431  * SCIPaddCons(), and SCIPreleaseCons()
4432  *
4433  * Primal solutions can only be created for the transformed problem. Therefore, the user has to call SCIPtransformProb()
4434  * before (s)he reads in the file containing the solution and adds it to the solution pool via the method SCIPreadSol().
4435  *
4436  *
4437  * @subsection READERWRITE
4438  *
4439  * The READERWRITE callback is called when the user invokes SCIP to write a problem (original or transformed)
4440  * in the format the reader supports. This is only possible if this callback is implemented. To write the problem
4441  * all necessary information is given through the parameters of this callback method (see type_reader.h). This
4442  * information should be used to output the problem in the requested format. This callback method is usually
4443  * triggered by the call of the methods SCIPwriteOrigProblem(), SCIPwriteTransProblem(), SCIPprintOrigProblem(),
4444  * or SCIPprintTransProblem().
4445  * \n
4446  * A typical method called by a file reader which is used to write/export a constraint
4447  * integer programming model is SCIPinfoMessage(). This method outputs a given string into a file
4448  * or into stdout.
4449  * \n
4450  * For an example we refer to the writing method of the MPS reader (see reader_mps.c).
4451  *
4452  *
4453  * @subsection READERCOPY
4454  *
4455  * The READERCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
4456  * callback as <code>NULL</code> the user disables the execution of the specified reader for all copied SCIP
4457  * instances. The question might arise why to copy that plugin. In case of debugging it is nice to be able to
4458  * write/display the copied instances. Since the reader is in charge of that, you might want to copy the plugin. Below
4459  * you see a standard implementation.
4460  *
4461  * @refsnippet{src/scip/reader_mps.c,SnippetReaderCopyMps}
4462  *
4463  * @subsection READERFREE
4464  *
4465  * If you are using file reader data, you have to implement this method in order to free the file reader data.
4466  * This can be done by the following procedure:
4467  *
4468  * @refsnippet{src/scip/reader_mps.c,SnippetReaderFreeMps}
4469  *
4470  * If you have allocated memory for fields in your file reader data, remember to free this memory
4471  * before freeing the file reader data itself.
4472  * If you are using the C++ wrapper class, this method is not available.
4473  * Instead, just use the destructor of your class to free the member variables of your class.
4474  *
4475  */
4476 
4477 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4478 
4479 /**@page DIALOG How to add dialogs
4480  *
4481  * SCIP comes with a command line shell which allows the user to read in problem instances, modify the solver's
4482  * parameters, initiate the optimization and display certain statistics and solution information. This shell consists
4483  * of dialogs, which are organized as a tree in SCIP. A node of this tree which is not a leaf represents a menu in
4484  * the shell and the children of this node correspond to the entries of this menu (which can again be menus). All
4485  * different dialogs are managed by a dialog handler, which, in particular, is responsible for executing the dialog
4486  * corresponding to the user's command in the shell. The concept of a dialog handler is different to that
4487  * of a constraint handler, which is used to manage objects of the same structure, see \ref CONS. In particular, SCIP
4488  * features only one dialog handler (dialog_default.h), whereas there may exist different constraint handlers.
4489  * \n
4490  * A complete list of all dialogs contained in this release can be found \ref DIALOGS "here".
4491  *
4492  * We now explain how users can extend the interactive shell by adding their own dialog.
4493  * We give the explanation for creating your own source file for each additional dialog. Of course, you can collect
4494  * different dialogs in one source file. Take src/scip/dialog_default.c, where all default dialog plugins are collected, as an
4495  * example.
4496  * As all other default plugins, the default dialog plugin and the template dialog are written in C. C++ users can easily
4497  * adapt the code by using the scip::ObjDialog wrapper base class and implement the scip_...() virtual methods instead of the
4498  * SCIP_DECL_DIALOG... callback methods.
4499  *
4500  * Additional documentation for the callback methods of a dialog can be found in the file type_dialog.h.
4501  *
4502  * Here is what you have to do to add a dialog (assuming your dialog is named "mydialog"):
4503  * -# Copy the template files src/scip/dialog_xyz.c and src/scip/dialog_xyz.h into files named "dialog_mydialog.c"
4504  * and "dialog_mydialog.h".
4505  * \n
4506  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4507  * -# Use SCIPincludeDialogMydialog() in order to include the dialog handler into your SCIP instance,
4508  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4509  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mydialog".
4510  * -# Adjust the \ref DIALOG_PROPERTIES "properties of the dialog".
4511  * -# Define the \ref DIALOG_DATA "dialog data". This is optional.
4512  * -# Implement the \ref DIALOG_INTERFACE "interface methods".
4513  * -# Implement the \ref DIALOG_FUNDAMENTALCALLBACKS "fundamental callback methods".
4514  * -# Implement the \ref DIALOG_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4515  *
4516  *
4517  * @section DIALOG_PROPERTIES Properties of a Dialog
4518  *
4519  * At the top of the new file "dialog_mydialog.c" you can find the dialog properties.
4520  * These are given as compiler defines.
4521  * In the C++ wrapper class, you have to provide the dialog properties by calling the constructor
4522  * of the abstract base class scip::ObjDialog from within your constructor.
4523  * The properties you have to set have the following meaning:
4524  *
4525  * \par DIALOG_NAME: the name of the dialog.
4526  * In the interactive shell, this name appears as the command name of the dialog in the parent dialog.
4527  * Additionally, if you are searching an entry in a menu with SCIPdialogFindEntry(), this name is looked up.
4528  * Names within one menu have to be unique: no two dialogs in the same menu may have the same name.
4529  *
4530  * \par DIALOG_DESC: the description of the dialog.
4531  * This string is printed as a description of the dialog in the interactive shell if the additional
4532  * callback method \ref DIALOGDESC is not implemented.
4533  *
4534  * \par DIALOG_ISSUBMENU: whether the dialog is a (sub)menu.
4535  * This parameter states whether the dialog is a menu in the interactive shell, i.e., is the parent of further
4536  * dialogs.
4537  *
4538  *
4539  * @section DIALOG_DATA Dialog Data
4540  *
4541  * Below the header "Data structures" you can find a struct which is called "struct SCIP_DialogData".
4542  * In this data structure, you can store the data of your dialog.
4543  * If you are using C++, you can add dialog data as usual as object variables to your class.
4544  * \n
4545  * Defining dialog data is optional. You can leave the struct empty.
4546  *
4547  *
4548  * @section DIALOG_INTERFACE Interface Methods
4549  *
4550  * At the bottom of "dialog_mydialog.c" you can find the interface method SCIPincludeDialogMydialog(), which also appears
4551  * in "dialog_mydialog.h".
4552  * \n
4553  * This method only has to be adjusted slightly.
4554  * It is responsible for notifying SCIP of the presence of the dialog, which can be done by the following lines of code:
4555  *
4556  * @refsnippet{src/scip/dialog_xyz.c,SnippetDialogAddXyz}
4557  *
4558  * Here "parentdialog" has to be an existing dialog which is defined to be a menu (see DIALOG_ISSUBMENU), e.g.,
4559  * the default root dialog. The method SCIPgetRootDialog() returns the root dialog.
4560  *
4561  * 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
4562  * his/her application.
4563  * Note that in order to be able to link the new dialog to an existing default dialog
4564  * (except the root dialog) it has to be included <b>after the
4565  * default dialogs plugin</b>, i.e., the SCIPincludeDialogMydialog() call has to occur after the
4566  * SCIPincludeDialogDefault() call. The SCIPincludeDialogDefault() method is called from within the SCIPincludeDefaultPlugins()
4567  * method. Therefore, it suffices to include your dialog plugins after you have called SCIPincludeDefaultPlugins().
4568  * In case you want to add a dialog to the <b>root dialog</b>, you just use the following
4569  * lines of code to get/create the root dialog.
4570  *
4571  * \code
4572  * SCIP_DIALOG* root;
4573  *
4574  * root = SCIPgetRootDialog(scip);
4575  * if( root == NULL )
4576  * {
4577  * SCIP_CALL( SCIPcreateRootDialog(scip, &root) );
4578  * }
4579  * assert( root != NULL );
4580  * \endcode
4581  *
4582  * Therefore, in this case you do not have to worry about the calls of
4583  * SCIPincludeDialogDefault() and SCIPincludeDefaultPlugins() .
4584  *
4585  * If you are using dialog data, you have to allocate the memory for the data at this point.
4586  * You can do this by calling:
4587  * \code
4588  * SCIP_CALL( SCIPallocBlockMemory(scip, &dialogdata) );
4589  * \endcode
4590  * You also have to initialize the fields in struct SCIP_DialogData afterwards.
4591  *
4592  * Consider the following example. The user wants to add a "drawgraph" command to the root menu of SCIP.
4593  * (S)he copies the "dialog_xyz.c" and "dialog_xyz.h" files into files "dialog_drawgraph.c" and "dialog_drawgraph.h", respectively.
4594  * Then, (s)he puts the following code into the SCIPincludeDialogDrawgraph() method, compare SCIPincludeDialogDefault() in
4595  * src/scip/dialog_default.c:
4596  * \code
4597  * SCIP_RETCODE SCIPincludeDialogDrawgraph(
4598  * SCIP* scip
4599  * )
4600  * {
4601  * SCIP_DIALOG* root;
4602  * SCIP_DIALOG* dialog;
4603  *
4604  * root = SCIPgetRootDialog(scip);
4605  * if( root == NULL )
4606  * {
4607  * SCIP_CALL( SCIPcreateRootDialog(scip, &root) );
4608  * }
4609  * assert( root != NULL );
4610  *
4611  * if( !SCIPdialogHasEntry(root, "drawgraph") )
4612  * {
4613  * SCIP_CALL( SCIPcreateDialog(scip, &dialog, SCIPdialogExecDrawgraph, NULL, NULL,
4614  * "drawgraph", "draws the graph for the current problem instance", FALSE, NULL) );
4615  * SCIP_CALL( SCIPaddDialogEntry(scip, root, dialog) );
4616  * SCIP_CALL( SCIPreleaseDialog(scip, &dialog) );
4617  * }
4618  *
4619  * return SCIP_OKAY;
4620  * }
4621  * \endcode
4622  *
4623  * Using this code, it is even possible to call SCIPincludeDialogDrawgraph() before including the default dialog plugins,
4624  * and you can also call it multiple times without causing inconsistencies in the dialog structure.
4625  *
4626  *
4627  * @section DIALOG_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Dialog
4628  *
4629  * Dialogs have only one fundamental callback method, namely the \ref DIALOGEXEC method.
4630  * This method has to be implemented for every dialog; the other callback methods are optional.
4631  * In the C++ wrapper class scip::ObjDialog, the scip_exec() method (which corresponds to the \ref DIALOGEXEC callback) is a virtual
4632  * abstract member function.
4633  * You have to implement it in order to be able to construct an object of your dialog class.
4634  *
4635  * Additional documentation for the callback methods can be found in type_dialog.h.
4636  *
4637  * @subsection DIALOGEXEC
4638  *
4639  * The DIALOGEXEC method is invoked, if the user selected the dialog's command name in the parent's menu. It should
4640  * execute what is stated in DIALOG_DESC, e.g., the display constraint handlers dialog should display information about
4641  * the constraint handlers included in SCIP, see src/scip/dialog_default.c.
4642  *
4643  * For typical methods called by the execution method, have a look at src/scip/dialog_default.c.
4644  *
4645  * The callback has to return which dialog should be processed next. This can be, for example, the root dialog
4646  * (SCIPdialoghdlrGetRoot()), the parent dialog (SCIPdialogGetParent()) or NULL, which stands for closing the interactive
4647  * shell.
4648  *
4649  *
4650  * @section DIALOG_ADDITIONALCALLBACKS Additional Callback Methods of a Dialog
4651  *
4652  * The additional callback methods do not need to be implemented in every case.
4653  * They can be used, for example, to free private data.
4654  *
4655  * @subsection DIALOGFREE
4656  *
4657  * If you are using dialog data, you have to implement this method in order to free the dialog data.
4658  * This can be done by the following procedure:
4659  * \code
4660  * static
4661  * SCIP_DECL_DIALOGFREE(dialogFreeMydialog)
4662  * {
4663  * SCIP_DIALOGDATA* dialogdata;
4664  *
4665  * dialogdata = SCIPdialogGetData(dialog);
4666  * assert(dialogdata != NULL);
4667  *
4668  * SCIPfreeMemory(scip, &dialogdata);
4669  *
4670  * SCIPdialogSetData(dialog, NULL);
4671  *
4672  * return SCIP_OKAY;
4673  * }
4674  * \endcode
4675  * If you have allocated memory for fields in your dialog data, remember to free this memory
4676  * before freeing the dialog data itself.
4677  * If you are using the C++ wrapper class, this method is not available.
4678  * Instead, just use the destructor of your class to free the member variables of your class.
4679  *
4680  * @subsection DIALOGDESC
4681  *
4682  * This method is called when the help menu of the parent is displayed. It should output (usually a single line of)
4683  * information describing the meaning of the dialog.
4684  * \n
4685  * If this callback is not implemented, the description string of the dialog (DIALOG_DESC) is displayed instead.
4686  *
4687  * @subsection DIALOGCOPY
4688  *
4689  * The DIALOGCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
4690  * callback as <code>NULL</code> the user disables the execution of this dialog for all copied SCIP instances. In
4691  * general there is no need to copy any dialog since it is most unlikely to start the interactive shell of the copied
4692  * instances.
4693  *
4694  */
4695 
4696 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4697 
4698 /**@page DISP How to add display columns
4699  *
4700  * While solving a constraint integer program, SCIP displays status information in a column-like fashion. The current
4701  * number of processed branching tree nodes, the solving time, and the relative gap between primal and dual bound are
4702  * examples of such display columns. There already exists a wide variety of display columns which can be activated or
4703  * deactivated on demand, see src/scip/disp_default.c. Additionally, the user can implement his/her own display columns
4704  * in order to track problem or algorithm specific values.
4705  * \n
4706  * A complete list of all displays contained in this release can be found \ref DISPLAYS "here".
4707  *
4708  * We now explain how users can add their own display columns.
4709  * We give the explanation for creating your own source file for each additional display column. Of course, you can collect
4710  * different additional display columns in one source file.
4711  * Take src/scip/disp_default.c, where all default display columns are collected, as an example.
4712  * As all other default plugins, the default display column plugins and the display column template are written in C.
4713  * C++ users can easily adapt the code by using the scip::ObjDisp wrapper base class and implement the scip_...() virtual methods
4714  * instead of the SCIP_DECL_DISP... callback methods.
4715  *
4716  *
4717  * Additional documentation for the callback methods of a display column can be found in the file type_disp.h.
4718  *
4719  * Here is what you have to do to implement a display column (assuming your display column is named "mydisplaycolumn"):
4720  * -# Copy the template files src/scip/disp_xyz.c and src/scip/disp_xyz.h into files named "disp_mydisplaycolumn.c"
4721  * and "disp_mydisplaycolumn.h".
4722  \n
4723  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4724  * -# Use SCIPincludeDispMydisplaycolumn() in order to include the display column into your SCIP instance,
4725  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
4726  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mydisplaycolumn".
4727  * -# Adjust the \ref DISP_PROPERTIES "properties of the display column".
4728  * -# Define the \ref DISP_DATA "display column data". This is optional.
4729  * -# Implement the \ref DISP_INTERFACE "interface methods".
4730  * -# Implement the \ref DISP_FUNDAMENTALCALLBACKS "fundamental callback methods".
4731  * -# Implement the \ref DISP_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4732  *
4733  *
4734  * @section DISP_PROPERTIES Properties of a Display Column
4735  *
4736  * At the top of the new file "disp_mydisplaycolumn.c" you can find the display column properties.
4737  * These are given as compiler defines.
4738  * In the C++ wrapper class, you have to provide the display column properties by calling the constructor
4739  * of the abstract base class scip::ObjDisp from within your constructor.
4740  * The properties you have to set have the following meaning:
4741  *
4742  * \par DISP_NAME: the name of the display column.
4743  * This name is used in the interactive shell to address the display column.
4744  * Additionally, if you are searching for a display column with SCIPfindDisp(), this name is looked up.
4745  * Names have to be unique: no two display columns may have the same name.
4746  *
4747  * \par DISP_DESC: the description of the display column.
4748  * This string is printed as a description of the display column in the interactive shell.
4749  *
4750  * \par DISP_HEADER: the header of the display column.
4751  * This string is printed as the header of the display column in the status information display.
4752  *
4753  * \par DISP_WIDTH: the width of the display column.
4754  * This parameter defines the width (number of characters) of the display column. The value of the parameter has to be
4755  * greater than or equal to the number of characters in the header string.
4756  *
4757  * \par DISP_PRIORITY: the priority of the display column.
4758  * The total width of status information lines is bounded by the parameter "display width". The display columns actually contained
4759  * in the status information display are selected in decreasing order of their priority. Furthermore, the user can force
4760  * columns to be displayed or not to be displayed in the status information display. For that, (s)he has to switch the value
4761  * of the display column's parameter "active" from "auto" (its default value) to "on" or "off", respectively.
4762  *
4763  * \par DISP_POSITION: the relative position of the display column.
4764  * In the status information display, the display columns are arranged from left to right in increasing order of their
4765  * relative position.
4766  *
4767  * \par DISP_STRIPLINE: the default for whether the display column should be separated with a line from its right neighbor.
4768  * This parameter states whether the display column should be separated with the string "|" from its right neighbor. In so
4769  * doing, the clearness of the status information display may improve.
4770  *
4771  * @section DISP_DATA Display Column Data
4772  *
4773  * Below the header "Data structures" you can find a struct which is called "struct SCIP_DispData".
4774  * In this data structure, you can store the data of your display column. For example, you should store the adjustable
4775  * parameters of the display column in this data structure.
4776  * If you are using C++, you can add display column data as usual as object variables to your class.
4777  * \n
4778  * Defining display column data is optional. You can leave the struct empty.
4779  *
4780  *
4781  * @section DISP_INTERFACE Interface Methods
4782  *
4783  * At the bottom of "disp_mydisplaycolumn.c" you can find the interface method SCIPincludeDispMydisplaycolumn(), which also
4784  * appears in "disp_mydisplaycolumn.h".
4785  * \n
4786  * This method only has to be adjusted slightly.
4787  * It is responsible for notifying SCIP of the presence of the display column by calling the method
4788  * SCIPincludeDisp().
4789  *
4790  * 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
4791  * application.
4792  *
4793  * If you are using display column data, you have to allocate the memory for the data at this point.
4794  * You can do this by calling:
4795  * \code
4796  * SCIP_CALL( SCIPallocBlockMemory(scip, &dispdata) );
4797  * \endcode
4798  * You also have to initialize the fields in struct SCIP_DispData afterwards.
4799  *
4800  * Although this is very uncommon, you may also add user parameters for your display column, see the method
4801  * SCIPincludeConshdlrKnapsack() in the \ref cons_knapsack.h "knapsack constraint handler" for an example.
4802  *
4803  *
4804  * @section DISP_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Display Column
4805  *
4806  * Display column plugins have only one fundamental callback method, namely the \ref DISPOUTPUT method.
4807  * This method has to be implemented for every display column; the other callback methods are optional.
4808  * In the C++ wrapper class scip::ObjDisp, the scip_output() method (which corresponds to the \ref DISPOUTPUT callback) is a virtual
4809  * abstract member function.
4810  * You have to implement it in order to be able to construct an object of your display column class.
4811  *
4812  * Additional documentation for the callback methods can be found in type_disp.h.
4813  *
4814  * @subsection DISPOUTPUT
4815  *
4816  * The DISPOUTPUT callback is called after each pricing loop during node processing and after a node has been processed.
4817  * In addition, at the root node, the callback is executed after each iteration of the price-and-cut loop.
4818  * It should write the display column information for the current node to a given output file stream.
4819  *
4820  * Typical methods called by a display column are, for example, SCIPdispLongint(), SCIPdispInt(), SCIPdispTime(), and
4821  * SCIPinfoMessage().
4822  *
4823  *
4824  * @section DISP_ADDITIONALCALLBACKS Additional Callback Methods of a Display Column
4825  *
4826  * The additional callback methods do not need to be implemented in every case.
4827  * They can be used, for example, to initialize and free private data.
4828  *
4829  * @subsection DISPCOPY
4830  *
4831  * The DISPCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this callback
4832  * as <code>NULL</code> the user disables the execution of the specified column. In general it is probably not needed to
4833  * implement that callback since the output of the copied instance is usually suppressed. In the other case or for
4834  * debugging the callback should be implement.
4835  *
4836  *
4837  * @subsection DISPFREE
4838  *
4839  * If you are using display column data, you have to implement this method in order to free the display column data.
4840  * This can be done by the following procedure:
4841  * \code
4842  * static
4843  * SCIP_DECL_DISPFREE(dispFreeMydisplaycolumn)
4844  * {
4845  * SCIP_DISPDATA* dispdata;
4846  *
4847  * dispdata = SCIPdispGetData(disp);
4848  * assert(dispdata != NULL);
4849  *
4850  * SCIPfreeMemory(scip, &dispdata);
4851  *
4852  * SCIPdispSetData(disp, NULL);
4853  *
4854  * return SCIP_OKAY;
4855  * }
4856  * \endcode
4857  * If you have allocated memory for fields in your display column data, remember to free this memory
4858  * before freeing the display column data itself.
4859  * If you are using the C++ wrapper class, this method is not available.
4860  * Instead, just use the destructor of your class to free the member variables of your class.
4861  *
4862  * @subsection DISPINIT
4863  *
4864  * The DISPINIT callback is executed after the problem is transformed.
4865  * The display column may, e.g., use this call to initialize its display column data.
4866  *
4867  * @subsection DISPEXIT
4868  *
4869  * The DISPEXIT callback is executed before the transformed problem is freed.
4870  * In this method, the display column should free all resources that have been allocated for the solving process in
4871  * \ref DISPINIT.
4872  *
4873  * @subsection DISPINITSOL
4874  *
4875  * The DISPINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
4876  * begin. The display column may use this call to initialize its branch-and-bound specific data.
4877  *
4878  * @subsection DISPEXITSOL
4879  *
4880  * The DISPEXITSOL callback is executed before the branch-and-bound process is freed. The display column should use this
4881  * call to clean up its branch-and-bound specific data.
4882  */
4883 
4884 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
4885 
4886 /**@page EVENT How to add event handler
4887  *
4888  * While solving a constraint integer program, SCIP drops thousands of events such as SCIP_EVENTTYPE_VARFIXED (a
4889  * complete list of all events is given in type_event.h). These events can be caught and used to do something after a
4890  * certain event happens. Events can be used to speed up the solution process. For example, the set partitioning
4891  * constraint is only worth propagating if one of the involved variables is fixed. This can be detected by
4892  * catching the event SCIP_EVENTTYPE_VARFIXED. To be able to catch an event it is necessary to write an event handler
4893  * which defines what to do after a certain event was caught.
4894  *
4895  * We now explain how users can add their own event handlers. We give the explanation for creating your own
4896  * source file for each additional event handler. Of course, you can collect different event handlers in one source file
4897  * or you can put the event handler directly into the constraint handler. In a \ref EVENTUSAGE "second step" we discuss
4898  * the usage of an event handler. This means how to catch and drop events. \ref EVENTTYPES "Finally", we give some notes on the existing
4899  * types of events.
4900  *
4901  * Take src/scip/cons_logior.c, where the event handler is directly included into the constraint handler. As all other
4902  * default plugins, the event handlers are written in C. C++ users can easily adapt the code by using the scip::ObjEventhdlr
4903  * wrapper base class and implement the scip_...() virtual methods instead of the SCIP_DECL_EVENT... callback methods.
4904  *
4905  * Additional documentation for the callback methods of an event handler can be found in the file type_event.h. There is
4906  * also an example written in C which deals with an event handler. You find this example in the directory
4907  * "examples/Eventhdlr/". An C++ example can be found within the TSP project (examples/TSP/src/EventhdlrNewSol.cpp).
4908  *
4909  * Here is what you have to do to implement an event handler (assuming your event handler is named "bestsol"):
4910  * -# Copy the template files src/scip/event_xyz.c and src/scip/event_xyz.h into files named "event_bestsol.c"
4911  * and "event_bestsol.h".
4912  \n
4913  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
4914  * -# Use SCIPincludeEventBestsol() in order to include the event handler into your SCIP instance,
4915  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Eventhdlr example).
4916  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "bestsol".
4917  * -# Adjust the \ref EVENTHDLR_PROPERTIES "properties of the event handler".
4918  * -# Implement the \ref EVENT_INTERFACE "interface methods".
4919  * -# Implement the \ref EVENT_FUNDAMENTALCALLBACKS "fundamental callback methods".
4920  * -# Implement the \ref EVENT_ADDITIONALCALLBACKS "additional callback methods". This is optional.
4921  *
4922  *
4923  * @section EVENTHDLR_PROPERTIES Properties of a Event Handler
4924  *
4925  * At the top of the new file "event_bestsol.c" you can find the event handler properties.
4926  * These are given as compiler defines.
4927  * In the C++ wrapper class, you have to provide the event handler properties by calling the constructor
4928  * of the abstract base class scip::ObjEventhdlr from within your constructor.
4929  * The properties you have to set have the following meaning:
4930  *
4931  * \par EVENT_NAME: the name of the event handler.
4932  * This name has to be unique with respect to all other event handlers. If you are searching for an event handler with
4933  * SCIPfindEventhdlr(), this name is looked up.
4934  *
4935  * \par EVENT_DESC: the description of the event handler.
4936  * This string is printed as a description of the event handler.
4937  *
4938  * @section EVENTHDLR_DATA Event Handler Data
4939  *
4940  * Below the header "Data structures" you can find a struct which is called "struct SCIP_EventhdlrData".
4941  * In this data structure, you can store the data of your event handler. For example, you should store the adjustable
4942  * parameters of the event handler in this data structure.
4943  * If you are using C++, you can add event handler data as usual as object variables to your class.
4944  * \n
4945  * Defining event handler data is optional. You can leave the struct empty.
4946  *
4947  *
4948  * @section EVENT_INTERFACE Interface Methods
4949  *
4950  * At the bottom of "event_bestsol.c", you can find the interface method SCIPincludeEventBestsol(),
4951  * which also appears in "event_bestsol.h".
4952  * SCIPincludeEventBestsol() is called by the user, if (s)he wants to include the event handler,
4953  * i.e., if (s)he wants to use the event handler in his/her application.
4954  *
4955  * This method only has to be adjusted slightly.
4956  * It is responsible for notifying SCIP of the presence of the event handler. For this, you can either call
4957  * SCIPincludeEventhdlr(),
4958  * or SCIPincludeEventhdlrBasic() since SCIP version 3.0. In the latter variant, \ref EVENT_ADDITIONALCALLBACKS "additional callbacks"
4959  * must be added via setter functions as, e.g., SCIPsetReaderCopy(). We recommend this latter variant because
4960  * it is more stable towards future SCIP versions which might have more callbacks, whereas source code using the first
4961  * variant must be manually adjusted with every SCIP release containing new callbacks for event handlers in order to compile.
4962  *
4963  * If you are using event handler data, you have to allocate the memory for the data at this point.
4964  * You can do this by calling:
4965  * \code
4966  * SCIP_CALL( SCIPallocBlockMemory(scip, &eventhdlrdata) );
4967  * \endcode
4968  * You also have to initialize the fields in struct SCIP_EventhdlrData afterwards.
4969  *
4970  * Although this is very uncommon, you may also add user parameters for your event handler, see the method
4971  * SCIPincludeConshdlrKnapsack() in the \ref cons_knapsack.h "knapsack constraint handler" for an example.
4972  *
4973  *
4974  * @section EVENT_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Event Handler
4975  *
4976  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
4977  * an operational algorithm.
4978  * They are passed together with the event handler itself to SCIP using SCIPincludeEventhdlr() or SCIPincludeEventhdlrBasic(),
4979  * see @ref EVENT_INTERFACE.
4980  *
4981  *
4982  * Event handler plugins have only one fundamental callback method, namely the \ref EVENTEXEC method. This method has
4983  * to be implemented for every event handler; the other callback methods are optional. In the C++ wrapper class
4984  * scip::ObjEventhdlr, the scip_exec() method (which corresponds to the \ref EVENTEXEC callback) is a virtual abstract member
4985  * function. You have to implement it in order to be able to construct an object of your event handler class.
4986  *
4987  * Additional documentation for the callback methods can be found in type_event.h.
4988  *
4989  * @subsection EVENTEXEC
4990  *
4991  * The EVENTEXEC callback is called after the requested event happened. Then the event handler can do some action in
4992  * reaction to the event.
4993  *
4994  * Typical the execution method sets a parameter to TRUE to indicate later in solving process that something happened
4995  * which should be analyzed further. In the \ref cons_knapsack.h "knapsack constraint handler" you find such a typical
4996  * example.
4997  *
4998  * @section EVENT_ADDITIONALCALLBACKS Additional Callback Methods of a Event Handler
4999  *
5000  * The additional callback methods do not need to be implemented in every case. However, some of them have to be
5001  * implemented for most applications, they can be used, for example, to initialize and free private data.
5002  * Additional callbacks can either be passed directly with SCIPincludeEventhdlr() to SCIP or via specific
5003  * <b>setter functions</b> after a call of SCIPincludeEventhdlrBasic(), see also @ref EVENT_INTERFACE.
5004  *
5005  * @subsection EVENTCOPY
5006  *
5007  * The EVENTCOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this
5008  * callback as <code>NULL</code> the user disables the execution of the specified event handler for all copied SCIP
5009  * instances. Note that in most cases the event handler in the copied instance will be initialize by those objects (such
5010  * as constraint handlers or propagators) which need this event handler (see \ref cons_knapsack.h). In these cases the copy
5011  * callback can be ignored. In case of general events, such as a new best solution being found
5012  * (SCIP_EVENTTYPE_BESTSOLFOUND), you might want to implement that callback. The event handler example which you find
5013  * in the directory "examples/Eventhdlr/" uses that callback.
5014  *
5015  * @refsnippet{src/scip/event_softtimelimit.c,SnippetEventCopySofttimelimit}
5016  *
5017  * @subsection EVENTFREE
5018  *
5019  * If you are using event handler data, you have to implement this method in order to free the event handler data.
5020  * This can be done by the following procedure:
5021  *
5022  * @refsnippet{src/scip/event_softtimelimit.c,SnippetEventFreeSofttimelimit}
5023  *
5024  * If you have allocated memory for fields in your event handler data, remember to free this memory
5025  * before freeing the event handler data itself.
5026  * If you are using the C++ wrapper class, this method is not available.
5027  * Instead, just use the destructor of your class to free the member variables of your class.
5028  *
5029  *
5030  * @subsection EVENTINIT
5031  *
5032  * The EVENTINIT callback is executed after the problem is transformed.
5033  * The event handler may, e.g., use this call to initialize its event handler data.
5034  *
5035  * @subsection EVENTEXIT
5036  *
5037  * The EVENTEXIT callback is executed before the transformed problem is freed.
5038  * In this method, the event handler should free all resources that have been allocated for the solving process in
5039  * \ref EVENTINIT.
5040  *
5041  * @subsection EVENTINITSOL
5042  *
5043  * The EVENTINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
5044  * begin. The event handler may use this call to initialize its branch-and-bound specific data.
5045  *
5046  * @subsection EVENTEXITSOL
5047  *
5048  * The EVENTEXITSOL callback is executed before the branch-and-bound process is freed. The event handler should use this
5049  * call to clean up its branch-and-bound specific data.
5050  *
5051  * @section EVENTUSAGE Catching and Dropping Events
5052  *
5053  * After you have implemented the event handler, you have to tell SCIP for which events this event handler should be
5054  * used. This can be a general events, such as <code>SCIP_EVENTTYPE_BESTSOLFOUND</code>, or a variable event which is the most common
5055  * way.
5056  *
5057  * In case of a general (not variable) event you use the function SCIPcatchEvent() to attach to an event and
5058  * SCIPdropEvent() to release this event later.
5059  *
5060  * \code
5061  * SCIP_CALL( SCIPcatchEvent( scip, SCIP_EVENTTYPE_BESTSOLFOUND, eventhdlr, NULL, NULL) );
5062  * \endcode
5063  *
5064  * \code
5065  * SCIP_CALL( SCIPdropEvent( scip, SCIP_EVENTTYPE_BESTSOLFOUND, eventhdlr, NULL, NULL) );
5066  * \endcode
5067  *
5068  * If you want trigger some variable event, you use the method SCIPcatchVarEvent() to attach the variable event and
5069  * SCIPdropVarEvent() to drop it later.
5070  *
5071  * \code
5072  * SCIP_CALL( SCIPcatchVarEvent( scip, var, SCIP_EVENTTYPE_VARFIXED, eventhdlr, NULL, NULL) );
5073  * \endcode
5074  *
5075  * \code
5076  * SCIP_CALL( SCIPdropVarEvent( scip, var, SCIP_EVENTTYPE_VARFIXED, eventhdlr, NULL, NULL) );
5077  * \endcode
5078  *
5079  * @section EVENTTYPES Event types
5080  *
5081  * All available events are listed in type_event.h. There are atomic events such as <code>SCIP_EVENTTYPE_VARFIXED</code>
5082  * and combined events such as <code>SCIP_EVENTTYPE_VARCHANGED</code>. The events are encoded via bit masks. Each atomic
5083  * event has a unique power of two. This enables combination of the atomic events.
5084  *
5085  * SCIP only throws atomic events. However, an event handler might be interested in bunch of events. Through the
5086  * underlying bit masks it is possible to combine the atomic events. For example, <code>SCIP_EVENTTYPE_VARCHANGED</code>
5087  * is an event which combines the events <code>SCIP_EVENTTYPE_VARFIXED</code>, <code>SCIP_EVENTTYPE_VARUNLOCKED</code>,
5088  * <code>SCIP_EVENTTYPE_OBJCHANGED</code>, <code>SCIP_EVENTTYPE_GBDCHANGED</code>,
5089  * <code>SCIP_EVENTTYPE_DOMCHANGED</code>, and <code>SCIP_EVENTTYPE_IMPLADDED</code>.
5090  *
5091  * \code
5092  * #define SCIP_EVENTTYPE_VARCHANGED (SCIP_EVENTTYPE_VARFIXED | SCIP_EVENTTYPE_VARUNLOCKED | SCIP_EVENTTYPE_OBJCHANGED
5093  * | SCIP_EVENTTYPE_GBDCHANGED | SCIP_EVENTTYPE_DOMCHANGED | SCIP_EVENTTYPE_IMPLADDED)
5094  * \endcode
5095  *
5096  * Depending on the event type, the event offers different information. The methods which can be used to gain
5097  * access to this information are given in pub_event.h.
5098  *
5099  */
5100 
5101 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5102 
5103 /**@page NLPI How to add interfaces to nonlinear programming solvers
5104  *
5105  * NLPIs are used to interface a solver for nonlinear programs (NLP).
5106  * It is used, e.g., to solve convex relaxations of the problem or to find locally optimal solutions of
5107  * nonlinear relaxations or subproblems.
5108  * The NLPI has been designed such that it can be used independently from SCIP.
5109  *
5110  * While the NLPI itself corresponds to the solver interface, the NLPIPROBLEM corresponds to the
5111  * (solver specific) representation of a concrete nonlinear program.
5112  * An NLP is specified as a set of indexed variables with variable bounds, an objective function,
5113  * and a set of constraints, where each constraint is specified as a function which is restricted to lie
5114  * between given left and right hand sides (possibly infinite).
5115  * A function consists of a linear, quadratic, and general nonlinear part.
5116  * The linear and quadratic parts are specified via variable indices and coefficients, while the
5117  * general nonlinear part is specified via an expression tree.
5118  * That is, the user of the NLPI does not provide function evaluation callbacks but an algebraic representation of the NLP.
5119  * Interfaces for solvers that require function evaluations can make use of the NLPIORACLE, which
5120  * provides a set of methods to compute functions values, gradients, Jacobians, and Hessians for a given NLP.
5121  * See the interface to Ipopt for an example on how to use the NLPIORACLE.
5122  *
5123  * A complete list of all NLPIs contained in this release can be found \ref NLPIS "here".
5124  *
5125  * We now explain how users can add their own NLP solver interface.
5126  * Take the interface to Ipopt (src/nlpi/nlpi_ipopt.cpp) as an example.
5127  * Unlike most other plugins, it is written in C++.
5128  * Additional documentation for the callback methods of an NLPI, in particular for their input parameters,
5129  * can be found in the file type_nlpi.h.
5130  *
5131  * Here is what you have to do to implement an NLPI:
5132  * -# Copy the template files src/nlpi/nlpi_xyz.c and src/nlpi/nlpi_xyz.h into files named "nlpi_mynlpi.c"
5133  * and "nlpi_mynlpi.h".
5134  * \n
5135  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
5136  * -# Use SCIPcreateNlpSolverMynlpi() in order to include the NLPI into your SCIP instance,
5137  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
5138  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mynlpi".
5139  * -# Adjust the properties of the nlpi (see \ref NLPI_PROPERTIES).
5140  * -# Define the NLPI and NLPIPROBLEM data (see \ref NLPI_DATA).
5141  * -# Implement the interface methods (see \ref NLPI_INTERFACE).
5142  * -# Implement the fundamental callback methods (see \ref NLPI_FUNDAMENTALCALLBACKS).
5143  *
5144  *
5145  * @section NLPI_PROPERTIES Properties of an NLPI
5146  *
5147  * At the top of the new file "nlpi_mynlpi.c", you can find the NLPI properties.
5148  * These are given as compiler defines.
5149  * The properties you have to set have the following meaning:
5150  *
5151  * \par NLPI_NAME: the name of the NLP solver interface.
5152  * This name is used in the interactive shell to address the NLPI.
5153  * Additionally, if you are searching for an NLPI with SCIPfindNLPI(), this name is looked up.
5154  * Names have to be unique: no two NLPIs may have the same name.
5155  *
5156  * \par NLPI_DESC: the description of the NLPI.
5157  * This string is printed as a description of the NLPI in the interactive shell.
5158  *
5159  * \par NLPI_PRIORITY: the priority of the NLPI.
5160  * If an NLP has to be solved, an NLP solver has to be selected.
5161  * By default, the solver with the NLPI with highest priority is selected.
5162  * The priority of an NLPI should be set according to performance of the solver:
5163  * solvers that provide fast algorithms that are usually successful on a wide range of problems should have a high priority.
5164  * An easy way to list the priorities of all NLPIs is to type "display nlpis" in the interactive shell of SCIP.
5165  *
5166  * @section NLPI_DATA NLPI Data
5167  *
5168  * Below the header "Data structures" you can find structs which are called "struct SCIP_NlpiData" and "struct SCIP_NlpiProblem".
5169  * In this data structure, you can store the data of your solver interface and of a specific NLP problem.
5170  * For example, you could store a pointer to the block memory data structure in the SCIP_NlpiData data structure
5171  * and store a pointer to an NLPIoracle in the SCIP_NlpiProblem data structure.
5172  *
5173  * @section NLPI_INTERFACE Interface Methods
5174  *
5175  * At the bottom of "nlpi_mynlpi.c", you can find the interface method SCIPcreateNlpSolverXyz(),
5176  * which also appears in "nlpi_mynlpi.h".
5177  * \n
5178  * This method only has to be adjusted slightly.
5179  * It is responsible for creating an NLPI that contains all properties and callback methods of your
5180  * solver interface by calling the method SCIPnlpiCreate().
5181  * SCIPcreateNlpSolverXyz() is called by the user (e.g., SCIP), if (s)he wants to use this solver interface in his/her application.
5182  *
5183  * If you are using NLPI data, you have to allocate the memory for the data at this point.
5184  * You can do this by calling:
5185  * \code
5186  * SCIP_CALL( SCIPallocBlockMemory(scip, &nlpidata) );
5187  * \endcode
5188  * You also have to initialize the fields in struct SCIP_NlpiData afterwards. For freeing the
5189  * NLPI data, see \ref NLPIFREE.
5190  *
5191  *
5192  * @section NLPI_FUNDAMENTALCALLBACKS Fundamental Callback Methods of an NLPI
5193  *
5194  * The fundamental callback methods of the plugins are the ones that have to be implemented in order to obtain
5195  * an operational algorithm. Currently, all NLPI callbacks are fundamental.
5196  *
5197  * Additional documentation of the callback methods, in particular to their input parameters,
5198  * can be found in type_nlpi.h.
5199  *
5200  * @subsection NLPICOPY
5201  *
5202  * The NLPICOPY callback is executed if the plugin should be copied, e.g., when a SCIP instance is copied.
5203  *
5204  * @subsection NLPIFREE
5205  *
5206  * The NLPIFREE callback is executed if the NLP solver interface data structure should be freed, e.g., when a SCIP instance is freed.
5207  *
5208  * @subsection NLPIGETSOLVERPOINTER
5209  *
5210  * The NLPIGETSOLVERPOINTER callback can be used to pass a pointer to a solver specific data structure to the user.
5211  *
5212  * @subsection NLPICREATEPROBLEM
5213  *
5214  * The NLPICREATEPROBLEM callback is executed if a particular NLP problem is to be created.
5215  * The callback method should initialize a SCIP_NlpiProblem struct here that corresponds to an empty NLP.
5216  *
5217  * @subsection NLPIFREEPROBLEM
5218  *
5219  * The NLPIFREEPROBLEMPOINTER callback is executed if a particular NLP problem is to be freed.
5220  * The callback method should free a SCIP_NlpiProblem struct here.
5221  *
5222  * @subsection NLPIGETPROBLEMPOINTER
5223  *
5224  * The NLPIGETPROBLEMPOINTER callback can be used to pass a pointer to a solver specific data structure of the NLP to the user.
5225  *
5226  * @subsection NLPIADDVARS
5227  *
5228  * The NLPIADDVARS callback is executed if a set of variables with lower and upper bounds and names should be added to a particular NLP.
5229  * The callback method must add the new variables behind the previously added variables, if any.
5230  * If NULL is given for the lower bounds arguments, -infinity is assumed as lower bound for each new variable.
5231  * If NULL is given for the upper bounds arguments, +infinity is assumed as upper bound for each new variable.
5232  * It is also permitted to use NULL for the names argument.
5233  *
5234  * @subsection NLPIADDCONSTRAINTS
5235  *
5236  * The NLPIADDCONSTRAINTS callback is executed if a set of constraints should be added to a particular NLP.
5237  * Constraints are specified by providing left and right hand sides, linear and quadratic coefficients, expression trees, and constraint names.
5238  * All of these arguments are optional, giving NULL for left hand sides corresponds to -infinity, giving NULL for right hand sides corresponds to +infinity.
5239  *
5240  * @subsection NLPISETOBJECTIVE
5241  *
5242  * The NLPISETOBJECTIVE callback is executed to set the objective function of a particular NLP.
5243  *
5244  * @subsection NLPICHGVARBOUNDS
5245  *
5246  * The NLPICHGVARBOUNDS callback is executed to change the bounds on a set of variables of an NLP.
5247  *
5248  * @subsection NLPICHGCONSSIDES
5249  *
5250  * The NLPICHGCONSSIDES callback is executed to change the sides on a set of constraints of an NLP.
5251  *
5252  * @subsection NLPIDELVARSET
5253  *
5254  * The NLPIDELVARSET callback is executed to delete a set of variables from an NLP.
5255  * The caller provides an array in which for each variable it is marked whether it should be deleted.
5256  * In the same array, the method should return the new position of each variable in the NLP, or -1 if it was deleted.
5257  *
5258  * @subsection NLPIDELCONSSET
5259  *
5260  * The NLPIDELCONSSET callback is executed to delete a set of constraints from an NLP.
5261  * The caller provides an array in which for each constraint it is marked whether it should be deleted.
5262  * In the same array, the method should return the new position of each constraint in the NLP, or -1 if it was deleted.
5263  *
5264  * @subsection NLPICHGLINEARCOEFS
5265  *
5266  * The NLPICHGLINEARCOEFS callback is executed to change the coefficients in the linear part of the objective function or a constraint of an NLP.
5267  *
5268  * @subsection NLPICHGQUADCOEFS
5269  *
5270  * The NLPICHGQUADCOEFS callback is executed to change the coefficients in the quadratic part of the objective function or a constraint of an NLP.
5271  *
5272  * @subsection NLPICHGEXPRTREE
5273  *
5274  * The NLPICHGEXPRTREE callback is executed to replace the expression tree of the objective function or a constraint of an NLP.
5275  *
5276  * @subsection NLPICHGNONLINCOEF
5277  *
5278  * 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.
5279  *
5280  * @subsection NLPICHGOBJCONSTANT
5281  *
5282  * The NLPICHGOBJCONSTANT callback is executed to change the constant offset of the objective function of an NLP.
5283  *
5284  * @subsection NLPISETINITIALGUESS
5285  *
5286  * The NLPISETINITIALGUESS callback is executed to provide primal and dual initial values for the variables and constraints of an NLP.
5287  * For a local solver, these values can be used as a starting point for the search.
5288  * 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).
5289  * In this case, the solver should clear previously set starting values and setup its own starting point.
5290  *
5291  * @subsection NLPISOLVE
5292  *
5293  * The NLPISOLVE callback is executed when an NLP should be solved.
5294  * The solver may use the initial guess provided by \ref NLPISETINITIALGUESS as starting point.
5295  * The status of the solving process and solution can be requested by
5296  * \ref NLPIGETSOLSTAT, \ref NLPIGETTERMSTAT, \ref NLPIGETSOLUTION, and \ref NLPIGETSTATISTICS.
5297  *
5298  * @subsection NLPIGETSOLSTAT
5299  *
5300  * The NLPIGETSOLSTAT callback can be used to request the solution status (solved, infeasible, ...) after an NLP has been solved.
5301  *
5302  * @subsection NLPIGETTERMSTAT
5303  *
5304  * The NLPIGETTERMSTAT callback can be used to request the termination reason (normal, iteration limit, ...) after an NLP has been solved.
5305  *
5306  * @subsection NLPIGETSOLUTION
5307  *
5308  * The NLPIGETSOLUTION callback can be used to request the primal and dual solution values after an NLP solve.
5309  * The method should pass pointers to arrays of variable values to the caller.
5310  * 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.
5311  *
5312  * @subsection NLPIGETSTATISTICS
5313  *
5314  * The NLPIGETSTATISTICS callback can be used to request the statistical values (number of iterations, time, ...) after an NLP solve.
5315  * The method should fill the provided NLPSTATISTICS data structure.
5316  *
5317  * <!-- NLPIGETWARMSTARTSIZE, NLPIGETWARMSTARTMEMO, NLPISETWARMSTARTMEMO are not documented,
5318  since they are currently not used, not implemented, and likely to change with a next version. -->
5319  *
5320  * @subsection NLPIGETINTPAR
5321  *
5322  * The NLPIGETINTPAR callback can be used to request the value of an integer valued NLP parameter.
5323  *
5324  * @subsection NLPISETINTPAR
5325  *
5326  * The NLPISETINTPAR callback is executed to set the value of an integer valued NLP parameter.
5327  *
5328  * @subsection NLPIGETREALPAR
5329  *
5330  * The NLPIGETREALPAR callback can be used to request the value of a real valued NLP parameter.
5331  *
5332  * @subsection NLPISETREALPAR
5333  *
5334  * The NLPISETREALPAR callback is executed to set the value of a real valued NLP parameter.
5335  *
5336  * @subsection NLPIGETSTRINGPAR
5337  *
5338  * The NLPIGETSTRINGPAR callback can be used to request the value of a string valued NLP parameter.
5339  *
5340  * @subsection NLPISETSTRINGPAR
5341  *
5342  * The NLPISETSTRINGPAR callback is executed to set the value of a string valued NLP parameter.
5343  */
5344 
5345 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5346 
5347 /**@page EXPRINT How to add interfaces to expression interpreters
5348  *
5349  * An expression interpreter is a tool to compute point-wise and interval-wise the function values, gradients, and
5350  * derivatives of algebraic expressions which are given in the form of an expression tree.
5351  * It is used, e.g., by an NLP solver interface to compute Jacobians and Hessians for the solver.
5352  *
5353  * The expression interpreter interface in SCIP has been implemented similar to those of the LP solver interface (LPI).
5354  * For one binary, exactly one expression interpreter has to be linked.
5355  * The expression interpreter API has been designed such that it can be used independently from SCIP.
5356  *
5357  * A complete list of all expression interpreters contained in this release can be found \ref EXPRINTS "here".
5358  *
5359  * We now explain how users can add their own expression interpreters.
5360  * Take the interface to CppAD (\ref exprinterpret_cppad.cpp) as an example.
5361  * Unlike most other plugins, it is written in C++.
5362  *
5363  * Additional documentation for the callback methods of an expression interpreter, in particular for their input parameters,
5364  * can be found in the file \ref exprinterpret.h
5365  *
5366  * Here is what you have to do to implement an expression interpreter:
5367  * -# Copy the file \ref exprinterpret_none.c into a file named "exprinterpreti_myexprinterpret.c".
5368  * \n
5369  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
5370  * -# Open the new files with a text editor.
5371  * -# Define the expression interpreter data (see \ref EXPRINT_DATA).
5372  * -# Implement the interface methods (see \ref EXPRINT_INTERFACE).
5373  *
5374  *
5375  * @section EXPRINT_DATA Expression Interpreter Data
5376  *
5377  * In "struct SCIP_ExprInt", you can store the general data of your expression interpreter.
5378  * For example, you could store a pointer to the block memory data structure.
5379  *
5380  * @section EXPRINT_INTERFACE Interface Methods
5381  *
5382  * The expression interpreter has to implement a set of interface method.
5383  * In your "exprinterpret_myexprinterpret.c", these methods are mostly dummy methods that return error codes.
5384  *
5385  * @subsection SCIPexprintGetName
5386  *
5387  * The SCIPexprintGetName method should return the name of the expression interpreter.
5388  *
5389  * @subsection SCIPexprintGetDesc
5390  *
5391  * The SCIPexprintGetDesc method should return a short description of the expression interpreter, e.g., the name of the developer of the code.
5392  *
5393  * @subsection SCIPexprintGetCapability
5394  *
5395  * The SCIPexprintGetCapability method should return a bitmask that indicates the capabilities of the expression interpreter,
5396  * i.e., whether it can evaluate gradients, Hessians, or do interval arithmetic.
5397  *
5398  * @subsection SCIPexprintCreate
5399  *
5400  * The SCIPexprintCreate method is called to create an expression interpreter data structure.
5401  * The method should initialize a "struct SCIP_ExprInt" here.
5402  *
5403  * @subsection SCIPexprintFree
5404  *
5405  * The SCIPexprintFree method is called to free an expression interpreter data structure.
5406  * The method should free a "struct SCIP_ExprInt" here.
5407  *
5408  * @subsection SCIPexprintCompile
5409  *
5410  * The SCIPexprintCompile method is called to initialize the data structures that are required to evaluate
5411  * a particular expression tree.
5412  * The expression interpreter can store data that is particular to a given expression tree in the tree by using
5413  * SCIPexprtreeSetInterpreterData().
5414  *
5415  * @subsection SCIPexprintFreeData
5416  *
5417  * The SCIPexprintFreeData method is called when an expression tree is freed.
5418  * The expression interpreter should free the given data structure.
5419  *
5420  * @subsection SCIPexprintNewParametrization
5421  *
5422  * The SCIPexprintNewParametrization method is called when the values of the parameters in a parametrized expression tree have changed.
5423  *
5424  * @subsection SCIPexprintEval
5425  *
5426  * The SCIPexprintEval method is called when the value of an expression represented by an expression tree should be computed for a point.
5427  *
5428  * @subsection SCIPexprintEvalInt
5429  *
5430  * 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.
5431  *
5432  * @subsection SCIPexprintGrad
5433  *
5434  * The SCIPexprintGrad method is called when the gradient of an expression represented by an expression tree should be computed for a point.
5435  *
5436  * @subsection SCIPexprintGradInt
5437  *
5438  * 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.
5439  *
5440  * @subsection SCIPexprintHessianSparsityDense
5441  *
5442  * The SCIPexprintHessianSparsityDense method is called when the sparsity structure of the Hessian matrix should be computed and returned in dense form.
5443  *
5444  * @subsection SCIPexprintHessianDense
5445  *
5446  * The SCIPexprintHessianDense method is called when the Hessian of an expression represented by an expression tree should be computed for a point.
5447  */
5448 
5449 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5450 
5451 /**@page TABLE How to add statistics tables
5452  *
5453  * After solving a constraint integer program, SCIP can display statistics tables with information about, e.g., the solving time,
5454  * number of nodes, LP iterations or the number of calls and successes of different plugins via "display statistics" in the shell
5455  * or via SCIPprintStatistics() in the C-interface. There already exists a wide variety of statistics tables which can be activated
5456  * or deactivated on demand, see src/scip/table_default.c. Additionally, the user can implement his/her own statistics tables
5457  * in order to display problem or algorithm specific values.
5458  * \n
5459  * A complete list of all statistics tables contained in this release can be found \ref TABLES "here".
5460  *
5461  * We now explain how users can add their own statistics tables.
5462  * We give the explanation for creating your own source file for each additional statistics table. Of course, you can collect
5463  * different additional statistics tables in one source file.
5464  * Take src/scip/table_default.c, where all default statistics tables are collected, as an example.
5465  * As all other default plugins, the default statistics table plugins and the statistics table template are written in C.
5466  * C++ users can easily adapt the code by using the scip::ObjTable wrapper base class and implement the scip_...() virtual methods
5467  * instead of the SCIP_DECL_TABLE... callback methods.
5468  *
5469  *
5470  * Additional documentation for the callback methods of a statistics table can be found in the file type_table.h.
5471  *
5472  * Here is what you have to do to implement a statistics table (assuming your statistics table is named "mystatisticstable"):
5473  * -# Copy the template files src/scip/table_xyz.c and src/scip/table_xyz.h into files named "table_mystatisticstable.c"
5474  * and "table_mystatisticstable.h".
5475  * \n
5476  * Make sure to adjust your Makefile such that these files are compiled and linked to your project.
5477  * -# Use SCIPincludeTableMystatisticstable() in order to include the statistics table into your SCIP instance,
5478  * e.g., in the main file of your project (see, e.g., src/cmain.c in the Binpacking example).
5479  * -# Open the new files with a text editor and replace all occurrences of "xyz" by "mystatisticstable".
5480  * -# Adjust the \ref TABLE_PROPERTIES "properties of the statistics table".
5481  * -# Define the \ref TABLE_DATA "statistics table data". This is optional.
5482  * -# Implement the \ref TABLE_INTERFACE "interface methods".
5483  * -# Implement the \ref TABLE_FUNDAMENTALCALLBACKS "fundamental callback methods".
5484  * -# Implement the \ref TABLE_ADDITIONALCALLBACKS "additional callback methods". This is optional.
5485  *
5486  *
5487  * @section TABLE_PROPERTIES Properties of a Statistics Table
5488  *
5489  * At the top of the new file "table_mystatisticstable.c" you can find the statistics table properties.
5490  * These are given as compiler defines.
5491  * In the C++ wrapper class, you have to provide the statistics table properties by calling the constructor
5492  * of the abstract base class scip::ObjTable from within your constructor.
5493  * The properties you have to set have the following meaning:
5494  *
5495  * \par TABLE_NAME: the name of the statistics table.
5496  * This name is used in the interactive shell to address the statistics table.
5497  * Additionally, if you are searching for a statistics table with SCIPfindTable(), this name is looked up.
5498  * Names have to be unique: no two statistic tables may have the same name.
5499  *
5500  * \par TABLE_DESC: the description of the statistics table.
5501  * This string is printed as a description of the statistics table in the interactive shell.
5502  *
5503  * \par TABLE_POSITION: the position of the statistics table.
5504  * In the statistics output, the statistics tables will be ordered by increasing position. Compare with the
5505  * default statistics tables in "table_default.c" to find a value which will give you the desired position
5506  * between the default statistics tables. If you give your table a negative position value, it will appear
5507  * before all SCIP statistcs, with a value larger than 20000 it will appear after all default statistics.
5508  *
5509  * \par TABLE_EARLIEST_STAGE: output of the statistics table is only printed from this stage onwards
5510  * The output routine of your statistics table will only be called if SCIP has reached this stage. For
5511  * example, the default table "tree" will only output information starting from SCIP_STAGE_SOLVING, because
5512  * there is no meaningful information available before, while the "presolver" table can already be called
5513  * in SCIP_STAGE_TRANSFORMED.
5514  *
5515  * @section TABLE_DATA Statistics Table Data
5516  *
5517  * Below the header "Data structures" you can find a struct which is called "struct SCIP_TableData".
5518  * In this data structure, you can store the data of your statistics table. For example, you should store the adjustable
5519  * parameters of the statistics table in this data structure.
5520  * If you are using C++, you can add statistics table data as usual as object variables to your class.
5521  * \n
5522  * Defining statistics table data is optional. You can leave the struct empty.
5523  *
5524  *
5525  * @section TABLE_INTERFACE Interface Methods
5526  *
5527  * At the bottom of "table_mystatisticstable.c" you can find the interface method SCIPincludeTableMystatisticstable(), which also
5528  * appears in "table_mystatisticstable.h".
5529  * \n
5530  * This method only has to be adjusted slightly.
5531  * It is responsible for notifying SCIP of the presence of the statistics table by calling the method
5532  * SCIPincludeTable().
5533  *
5534  * The interface method is called by the user, if (s)he wants to include the statistics table, i.e., if (s)he wants to use the statistics table in an
5535  * application.
5536  *
5537  * If you are using statistics table data, you have to allocate the memory for the data at this point.
5538  * You can do this by calling:
5539  * \code
5540  * SCIP_CALL( SCIPallocBlockMemory(scip, &tabledata) );
5541  * \endcode
5542  * You also have to initialize the fields in struct SCIP_TableData afterwards.
5543  *
5544  * Although this is very uncommon, you may also add user parameters for your statistics table, see the method
5545  * SCIPincludeConshdlrKnapsack() in the \ref cons_knapsack.h "knapsack constraint handler" for an example.
5546  *
5547  *
5548  * @section TABLE_FUNDAMENTALCALLBACKS Fundamental Callback Methods of a Statistics Table
5549  *
5550  * Statistics table plugins have only one fundamental callback method, namely the \ref TABLEOUTPUT method.
5551  * This method has to be implemented for every display column; the other callback methods are optional.
5552  * In the C++ wrapper class scip::ObjTable, the scip_output() method (which corresponds to the \ref TABLEOUTPUT callback) is a virtual
5553  * abstract member function.
5554  * You have to implement it in order to be able to construct an object of your statistics table class.
5555  *
5556  * Additional documentation for the callback methods can be found in type_table.h.
5557  *
5558  * @subsection TABLEOUTPUT
5559  *
5560  * The TABLEOUTPUT callback is called whenever SCIP is asked to print statistics (because the user typed "display statistics"
5561  * in the shell or called SCIPprintStatistics()). In this callback, the table should print all of its information to the given file
5562  * (which may be NULL if the output should be printed to the console).
5563  *
5564  * Typical methods called by a statistics table are, for example, SCIPdispLongint(), SCIPdispInt(), SCIPdispTime(), and
5565  * SCIPinfoMessage().
5566  *
5567  *
5568  * @section TABLE_ADDITIONALCALLBACKS Additional Callback Methods of a Statistics Table
5569  *
5570  * The additional callback methods do not need to be implemented in every case.
5571  * They can be used, for example, to initialize and free private data.
5572  *
5573  * @subsection TABLECOPY
5574  *
5575  * The TABLECOPY callback is executed when a SCIP instance is copied, e.g. to solve a sub-SCIP. By defining this callback
5576  * as <code>NULL</code> the user disables the execution of the specified column. In general it is probably not needed to
5577  * implement that callback since the output of the copied instance is usually suppressed. In the other case or for
5578  * debugging the callback should be implement.
5579  *
5580  *
5581  * @subsection TABLEFREE
5582  *
5583  * If you are using statistics table data, you have to implement this method in order to free the statistics table data.
5584  * This can be done by the following procedure:
5585  * \code
5586  * static
5587  * SCIP_DECL_TABLEFREE(tableFreeMystatisticstable)
5588  * {
5589  * SCIP_TABLEDATA* tabledata;
5590  *
5591  * tabledata = SCIPtableGetData(table);
5592  * assert(tabledata != NULL);
5593  *
5594  * SCIPfreeMemory(scip, &tabledata);
5595  *
5596  * SCIPtableSetData(disp, NULL);
5597  *
5598  * return SCIP_OKAY;
5599  * }
5600  * \endcode
5601  * If you have allocated memory for fields in your statistics table data, remember to free this memory
5602  * before freeing the statistics table data itself.
5603  * If you are using the C++ wrapper class, this method is not available.
5604  * Instead, just use the destructor of your class to free the member variables of your class.
5605  *
5606  * @subsection TABLEINIT
5607  *
5608  * The TABLEINIT callback is executed after the problem is transformed.
5609  * The statistics table may, e.g., use this call to initialize its statistics table data.
5610  *
5611  * @subsection TABLEEXIT
5612  *
5613  * The TABLEEXIT callback is executed before the transformed problem is freed.
5614  * In this method, the statistics table should free all resources that have been allocated for the solving process in
5615  * \ref TABLEINIT.
5616  *
5617  * @subsection TABLEINITSOL
5618  *
5619  * The TABLEINITSOL callback is executed when the presolving is finished and the branch-and-bound process is about to
5620  * begin. The statistics table may use this call to initialize its branch-and-bound specific data.
5621  *
5622  * @subsection TABLEEXITSOL
5623  *
5624  * The TABLEEXITSOL callback is executed before the branch-and-bound process is freed. The statistics table should use this
5625  * call to clean up its branch-and-bound specific data.
5626  */
5627 
5628 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5629 
5630 /**@page CONF How to use conflict analysis
5631  *
5632  * Conflict analysis is a way to automatically use the information obtained from infeasible nodes
5633  * in the branch-and-bound tree.
5634  *
5635  * Once a node is declared infeasible, SCIP automatically tries to infer a constraint that explains the reason for the
5636  * infeasibility, in order to avoid similar situations later in the search. This explanation essentially consists of a
5637  * constraint stating that at least one of its variables should have a bound different from the current infeasible node,
5638  * because the current setting led to infeasibility. Clearly, all variables that are fixed in the current infeasible
5639  * node would yield such a constraint (since this leads to infeasibility). The key point rather is to infer a "small"
5640  * constraint that does the same job. SCIP handles this by several heuristics. For this, SCIP sets up a
5641  * so-called (directed) conflict graph. The nodes in this graph correspond to bound changes of variables and an arc (@a
5642  * 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
5643  * will have several ingoing arcs which represent all bound changes that have been used to infer (propagate) the bound
5644  * change in question. The graph also contains source nodes for each bound that has been changed during branching and an
5645  * artificial target node representing the conflict, i.e., the infeasibility. Essentially, SCIP heuristically constructs
5646  * a cut in this graph that involves few "branching nodes". For details on the techniques that SCIP uses,
5647  * we refer to the paper @par
5648  * Tobias Achterberg, Conflict Analysis in Mixed Integer Programming@n
5649  * Discrete Optimization, 4, 4-20 (2007)
5650  *
5651  * For conflict analysis to work well, the author of a \ref CONS "Constraint Handler" or a
5652  * \ref PROP "Propagator" has to implement three kinds of functionality:
5653  *
5654  * -# If one detects infeasibility, one should initiate conflict analysis, see \ref INITCONFS "below".
5655  * -# During propagation, one should call the right functions to fix variables.
5656  * -# One should implement the <em>so-called reverse propagation</em>.
5657  *
5658  * If this functionality is not implemented, SCIP will still work correctly, but cannot use the information of the constraint
5659  * handler or the propagator for conflict analysis. In this case, each bound reduction performed by the constraint
5660  * handler/propagator will be treated as if it had been a branching decision.
5661  *
5662  * @section INITCONFS Initiating Conflict Analysis
5663  *
5664  * If one detects infeasibility within propagation, one should do the following:
5665  * -# Call SCIPinitConflictAnalysis().
5666  * -# Inform SCIP about the variable bounds that are the reason for the detection of infeasibility
5667  * via the functions SCIPaddConflictLb(), SCIPaddConflictUb(), SCIPaddConflictBd(), or
5668  * SCIPaddConflictBinvar(). If there is more than one valid explanation of infeasibility, either one can be used.
5669  * Typically, smaller explanations tend to be better.
5670  * -# Call SCIPanalyzeConflict() from a propagator or SCIPanalyzeConflictCons() from a constraint
5671  * handler.
5672  *
5673  * This functionality allows SCIP to set up the conflict graph and perform a conflict analysis.
5674  *
5675  * @section Propagation
5676  *
5677  * When propagating variable domains, SCIP needs to be informed that the deduced variable bounds should be
5678  * used in conflict analysis. This can be done by the functions SCIPinferVarLbCons(),
5679  * SCIPinferVarUbCons(), and SCIPinferBinvarCons() for constraint handlers and SCIPinferVarLbProp(),
5680  * SCIPinferVarUbProp(), and SCIPinferBinvarProp() for propagators. You can pass one integer of
5681  * information that should indicate the reason of the propagation and can be used in reverse
5682  * propagation, see the next section.
5683  *
5684  * @section RESPROP Reverse Propagation
5685  *
5686  * Reverse Propagation is used to build up the conflict graph. Essentially, it provides an algorithm to detect the arcs
5687  * leading to a node in the conflict graph, i.e., the bound changes responsible for the new bound change deduced during
5688  * propagation. Reverse Propagation needs to be implemented in the RESPROP callback functions of
5689  * \ref CONSRESPROP "constraint handlers" or \ref PROPRESPROP "propagators".
5690  * These callbacks receive the following information: the variable which is under investigation (@p
5691  * infervar), the corresponding bound change (@p bdchgidx, @p boundtype), and the integer (@p inferinfo) that has been
5692  * supplied during propagation.
5693  *
5694  * One can use SCIPvarGetUbAtIndex() or SCIPvarGetLbAtIndex() to detect the bounds before or after the propagation that
5695  * should be investigated. Then the bounds that were involved should be passed to SCIP via SCIPaddConflictLb() and
5696  * SCIPaddConflictUb(). If there is more than one valid explanation of infeasibility, either one can be used.
5697  * Typically, smaller explanations tend to be better.
5698  *
5699  * Details and (more) examples are given in Sections @ref CONSRESPROP and @ref PROPRESPROP.
5700  *
5701  *
5702  * @section Example
5703  *
5704  * Consider the constraint handler @p cons_linearordering.c in the
5705  * \ref LOP_MAIN "linear ordering example"
5706  * (see @p example/LOP directory). This constraint handler propagates the equations \f$x_{ij} + x_{ji} =
5707  * 1\f$ and triangle inequalities \f$x_{ij} + x_{jk} + x_{ki} \leq 2\f$.
5708  *
5709  * When propagating the equation and <code>vars[i][j]</code> is fixed to 1, the constraint handler uses
5710  * \code
5711  * SCIP_CALL( SCIPinferBinvarCons(scip, vars[j][i], FALSE, cons, i*n + j, &infeasible, &tightened) );
5712  * \endcode
5713  * Thus, variable <code>vars[j][i]</code> is fixed to 0 (@p FALSE), and it passes <code>i*n + j </code> as @p inferinfo.
5714  *
5715  * When it propagates the triangle inequality and both <code>vars[i][j]</code> and <code>vars[j][k]</code>
5716  * are fixed to 1, the constraint handler uses
5717  * \code
5718  * SCIP_CALL( SCIPinferBinvarCons(scip, vars[k][i], FALSE, cons, n*n + i*n*n + j*n + k, &infeasible, &tightened) );
5719  * \endcode
5720  * 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
5721  * passed as <code>inferinfo</code>.
5722  *
5723  * In reverse propagation, the two cases can be distinguished by @p inferinfo: if it is less than @p n*n,
5724  * we deal with an equation, otherwise with a triangle inequality. The constraint handler can then extract the
5725  * indices @p i, @p j (and @p k in the second case) from inferinfo.
5726  *
5727  * In the first case, it has to distinguish whether <code>vars[i][j]</code> is fixed to 0 or 1 &ndash;
5728  * by calling SCIPaddConflictLb()
5729  * or SCIPaddConflictUb(), respectively, with variable <code>vars[j][i]</code>. In the second case, it is clear that the only
5730  * 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>
5731  * are fixed to 1. It then calls
5732  * SCIPaddConflictLb() for both <code>vars[k][i]</code> and <code>vars[j][k]</code>.
5733  */
5734 
5735 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5736 
5737 /**@page REOPT How to use reoptimization
5738  *
5739  * The reoptimization feature of SCIP can be used to solve a sequence of optimization problems \f$(P_{i})_{i \in I}\f$ with
5740  * \f[
5741  * (P_i) \quad \min \{ c_i^T x \;|\; A^ix \geq b^i,\; x_{j} \in \mathbb{Z}\;\forall j \in \mathcal{I} \}
5742  * \f]
5743  * 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
5744  * fuction changes. To use reoptimization the user has to change the parameter <code>reoptimization/enable</code> to
5745  * <code>TRUE</code> before the solving process of the first problem of the sequence starts, i.e., in stage
5746  * <code>SCIP_STAGE_INIT</code> or <code>SCIP_STAGE_PROBLEM</code>. This can be done via the interactive shell or by
5747  * calling SCIPenableReoptimization(). In both cases SCIP changes some parameters and fixes them:
5748  * -# disable conflict analysis based on dual information
5749  * -# set the limit <code>maxorigsol</code> of stored solutions to zero because this is handled by a special solution tree provided
5750  * by the reoptimization feature itself
5751  * -# disable restarts (<code>presolving/maxrestarts = 0</code>)
5752  * -# disable multi-aggegations (<code>presolving/donotmultaggr = TRUE</code>)
5753  * -# disable dual reductions within presolvers and propagators (<code>misc/allowdualreds = FALSE</code>)
5754  * -# disable propagation with current cutoff bound (<code>misc/allowobjprop = FALSE</code>)
5755  *
5756  * In contrast to the presolving and propagating methods that are using dual information, performing strong branching is
5757  * allowed. The bound tightenings resulting from strong branching are handeled in a special way. After changing the objective
5758  * function and solving the modified problem the feasible region that was pruned by strong branching will be reconstructed
5759  * within the tree.
5760  *
5761  * If the reoptimization feature is enabled SCIP tries to reuse the search tree, especially the search frontier at the end
5762  * of the solving process, to speed up the solving process of the following problems. Therefore, the current release
5763  * provides the branching rule <code>branch_nodereopt</code> to reconstruct the tree. SCIP triggers a restart of the
5764  * reoptimization, i.e., solving the problem from scratch, if
5765  *
5766  * -# the stored search tree is too large,
5767  * -# the objective functions changed too much, or
5768  * -# the last \f$n\f$ optimal solution are updated solution of previous runs.
5769  *
5770  * The thresholds to trigger a restart can be set by the user:
5771  *
5772  * -# <code>reoptimization/maxsavednodes</code>
5773  * -# <code>reoptimization/delay</code>
5774  * -# <code>reoptimization/forceheurrestart</code>
5775  *
5776  * Before SCIP discards all the stored information and solves the problem from scratch it tries to compress the search
5777  * tree. Therefore, the current release provides compression heuristics that try to find a good and much smaller
5778  * representation of the current search tree.
5779  *
5780  * After a problem in the sequence of optimization problems was solved, the objective function can be changed in two ways:
5781  * -# Using the provided reader <code>reader_diff</code> the objective function can be changed via using the interactive
5782  * shell
5783  * \code
5784  * SCIP> read new_obj.diff
5785  * \endcode
5786  * or by calling SCIPreadDiff().
5787  * -# The objective function can be changed within the code. Therefore, the transformed problem needs to be freed by
5788  * calling SCIPfreeReoptSolve(). Afterwards, the new objective function can be installed by calling
5789  * SCIPchgReoptObjective().
5790  *
5791  * After changing the objective function the modified problem can be solved as usal.
5792  *
5793  * \note Currently, the compression heuristics used between two successive reoptimization runs only support pure binary
5794  * and mixed binary programs.
5795  *
5796  * For more information on reoptimization we refer to@par
5797  * Jakob Witzig@n
5798  * Reoptimization Techniques in MIP Solvers@n
5799  * Master's Thesis, Technical University of Berlin, 2014.
5800  */
5801 
5802 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5803 
5804 /**@page CONCSCIP How to use the concurrent solving mode
5805  *
5806  * @section Overview
5807  *
5808  * In \SCIP 4.0 a new feature has been added that allows to run multiple \SCIP instances with different settings
5809  * on one problem in parallel. To use this feature \SCIP has to be compiled with an additional make option to
5810  * enable the threading functionality (e.g. TPI=tny, see \ref MAKE).
5811  * Then, a concurrent solve can be started by using the <code>concurrentopt</code> command instead of the <code>optimize</code> command
5812  * in the \SCIP shell, or by calling the interface function SCIPsolveParallel().
5813  * To configure the behavior of the concurrent solving mode there are new parameters in the category <code>concurrent/</code>
5814  * and <code>parallel/</code> which will be explained here shortly.
5815  *
5816  * @section CONTROLNTHREADS Controlling the number of threads
5817  *
5818  * The parameters <code>parallel/maxnthreads</code> and <code>parallel/minnthreads</code> can be used to configure the number of threads
5819  * that sould be used for solving. \SCIP will try to use the configured maximum number of threads. If the
5820  * problem that is currently read is too large \SCIP will automatically use fewer threads, but never
5821  * go below the configured minimum number of threads.
5822  *
5823  * @section USEEMPHSETTINGS Using emphasis settings
5824  *
5825  * The parameters <code>concurrent/scip.../prefprio</code> configure which concurrent solvers should be used.
5826  * The concurrent solver <code>scip</code> will use the same settings as the \SCIP instance configured by the user.
5827  * The other concurrent solvers, e.g. <code>scip-feas</code>, will load the corresponding emphasis setting.
5828  * The behavior of the prefprio parameter is as follows: If it is set to 1.0 for <code>scip-feas</code> and
5829  * <code>scip-opti</code>, and to 0.0 for every other concurrent solver, then the threads will be evenly
5830  * 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
5831  * 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
5832  * and the latter will use 3 threads of the 4 available threads.
5833  *
5834  * @section CUSTOMCONCSOLVERS Running custom solvers
5835  *
5836  * To use custom settings for the concurrent solvers there is the parameter <code>concurrent/paramsetprefix</code>. If custom parameters
5837  * 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).
5838  * The parameter settings must be named after the concurrent solvers, e.g. if only the concurrent solver <code>scip</code> is used
5839  * 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
5840  * starts at one for each of them, e.g. <code>scip-1</code> and <code>scip-feas-1</code>.
5841  */
5842 
5843 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5844 
5845 /**@page OBJ Creating, capturing, releasing, and adding data objects
5846  *
5847  * Data objects (variables, constraints, rows, ... ) are subject to reference counting
5848  * to avoid expensive copying operations. This concept is similar to smart pointers.
5849  * Creating such an object (e.g., by calling SCIPcreateVar()) will set the
5850  * reference counter to one. Capturing an object (e.g., by calling SCIPcaptureVar()) increases the reference counter,
5851  * releasing it (e.g., by calling SCIPreleaseVar()) decreases the counter. If the reference counter gets zero, the
5852  * object will be destroyed automatically.
5853  *
5854  * Remember that a created data object is automatically captured. If the user
5855  * doesn't need the object anymore, (s)he has to call the object's release method.
5856  *
5857  * When a data object is added to SCIP (e.g., by calling SCIPaddVar()) , it is captured again, such that a
5858  * release call does not destroy the object. If SCIP doesn't need the object
5859  * anymore, it is automatically released.
5860  *
5861  * E.g., if the user calls
5862  * \code
5863  * SCIPcreateVar(); // reference counter 1
5864  * SCIPaddVar(); // reference counter 2
5865  * SCIPreleaseVar(); // reference counter 1
5866  * \endcode
5867  * the reference counter will be 1 afterwards, and the variable will be destroyed, if SCIP frees the problem.
5868  * If the user wants to use this variable, e.g. for extracting statistics after SCIP was finished, the user must not call
5869  * SCIPreleaseVar() right after adding the variable, but before terminating the program.
5870  */
5871 
5872 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5873 
5874 /**@page PARAM How to add additional user parameters
5875  *
5876  * Users may add their own parameters to SCIP by calling SCIPaddXyzParam(). Using
5877  * this method, there are two possibilities for where to store the actual parameter value:
5878  * - If the given valueptr is NULL, SCIP stores the parameter value internally, and
5879  * the user can only access the value with the SCIPgetXyzParam() and
5880  * SCIPsetXyzParam() calls.
5881  * - If the given valueptr is not NULL, SCIP stores the parameter value at the given
5882  * address, and the user can directly manipulate the value at this address.
5883  * (S)he has to be careful with memory management in string parameters: when the
5884  * SCIPaddStringParam() method is called, the given address must hold a char*
5885  * pointer with value NULL. The default value is then copied into this pointer,
5886  * allocating memory with BMSallocMemoryArray(). If the parameter is changed, the
5887  * old string is freed with BMSfreeMemoryArray() and the new one is copied to a new
5888  * memory area allocated with BMSallocMemoryArray(). When the parameter is freed,
5889  * the memory is freed with BMSfreeMemoryArray().
5890  * The user should not interfere with this internal memory management. Accessing
5891  * the string parameter through the given valueptr is okay as long as it does not
5892  * involve reallocating memory for the string.
5893  *
5894  * In some cases, it is necessary to keep track of changes in a parameter.
5895  * If this is the case, the user can define a method by the PARAMCHGD callback and use this method as
5896  * the @c paramchgd parameter of the @c SCIPaddXyzParam() method, also giving a pointer to the data, which is
5897  * needed in this method, as @c paramdata. If this method is not NULL, it is called every time
5898  * the value of the parameter is changed.
5899  */
5900 
5901 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
5902 
5903 /**@page MEMORY Using the memory functions of SCIP
5904  *
5905  * SCIP provides three ways for allocating memory:
5906  * -# <b>block memory:</b> efficient handling of memory blocks of similar small sizes
5907  * -# <b>buffer memory:</b> efficient handling of memory that needs to locally be allocated and freed
5908  * -# <b>standard memory:</b> access to standard malloc/free
5909  *
5910  * <em>Whenever possible, the first two should be used, because of reasons detailed below.</em>
5911  *
5912  * In the following, we provide a brief description of these methods. We refer the reader to the dissertation of Tobias
5913  * Achterberg for more details. We also present best practice models.
5914  *
5915  * @section MEMBACK Background
5916  *
5917  * The main goals for providing such particular methods are:
5918  * - <em>Accounting:</em> Using its own functions, SCIP knows the total size of memory allocated internally and can change its
5919  * behavior: for instance, it can change to "memory saving mode" (using depth first search (DFS) and possibly do a garbage
5920  * collection). It also allows for keeping a memory limit.
5921  * - <em>Speed:</em> SCIP often needs to allocate a very large number of small blocks of similar sizes (often powers of
5922  * two). Depending on the operating system and compiler, the methods implemented in SCIP can be faster, since blocks
5923  * of the same size are grouped together. Especially at the end of the 1990ies the standard malloc/free methods were
5924  * quite ineffective. The experiments of Tobias Achterberg in 2007 show a speed improvement of 11 % when using block
5925  * memory.
5926  * - <em>Efficiency:</em> Since blocks are groups in sizes, the blocks do not need to store their sizes within each
5927  * block. In comparison, standard malloc/free stores the size using one word for each memory chunk. The price to pay
5928  * is that one needs to pass the size to the methods that free a block. In any case, the methods in SCIP can save
5929  * memory. Moreover, buffer memory is stored in similar places and not spread out, which also might help cache.
5930  * - <em>Debugging:</em> All of the possibilities provide methods to detect memory leaks. Together with tools like
5931  * valgrind, this can be quite effective in avoiding such problems.
5932  *
5933  * @n
5934  * @section BLKMEM Block memory
5935  *
5936  * SCIP offers its own block memory handling, which allows efficient handling of smaller blocks of memory in cases in
5937  * which many blocks of the same (small) size appear. This is adequate for branch-and-cut codes in which small blocks
5938  * of the same size are allocated and freed very often (for data structures used to store rows or branch-and-bound
5939  * nodes). Actually, most blocks allocated within SCIP have small sizes like 8, 16, 30, 32, 64. The idea is simple:
5940  * There is a separate list of memory blocks for each interesting small size. When allocating memory, the list is
5941  * checked for a free spot in the list; if no such spot exists, the list is enlarged. Freeing just sets the block to be
5942  * available. Very large blocks are handled separately. See the dissertation of Tobias Achterberg for more details.
5943  *
5944  * One important comment is that freeing block memory requires the size of the block in order to find the right list.
5945  *
5946  * The most important functions are
5947  * - SCIPallocBlockMemory(), SCIPallocBlockMemoryArray() to allocate memory
5948  * - SCIPfreeBlockMemory(), SCIPfreeBlockMemoryArray() to free memory
5949  *
5950  * An example code is:
5951  * \code
5952  * SCIP_RETCODE dosomething(
5953  * SCIP* scip
5954  * )
5955  * {
5956  * int nvars;
5957  * int* array;
5958  *
5959  * nvars = SCIPgetNVars(scip);
5960  * SCIP_CALL( SCIPallocBlockMemoryArray(scip, &array, nvars) );
5961  *
5962  * do something ...
5963  *
5964  * SCIPfreeBlockMemoryArray(scip, &array, nvars);
5965  * }
5966  * \endcode
5967  * @n
5968  *
5969  * @section BUFMEM Buffer memory
5970  *
5971  * @subsection BUFMEMSTD Standard Buffer Memory
5972  *
5973  * In addition to block memory, SCIP offers buffer memory. This should be used if memory is locally used within a
5974  * function and freed within the same function. For this purpose, SCIP has a list of memory buffers that are reused for
5975  * this purpose. In this way, a very efficient allocation/freeing is possible.
5976  *
5977  * Note that the buffers are organized in a stack, i.e., freeing buffers in reverse order of allocation is faster.
5978  *
5979  * The most important functions are
5980  * - SCIPallocBuffer(), SCIPallocBufferArray() to allocate memory,
5981  * - SCIPfreeBuffer(), SCIPfreeBufferArray() to free memory.
5982  *
5983  * @subsection BUFMEMCLEAN Clean Buffer Memory
5984  *
5985  * SCIP 3.2 introduced a new type of buffer memory, the <em>clean buffer</em>. It provides memory which is initialized to zero
5986  * and requires the user to reset the memory to zero before freeing it. This can be used at performance-critical
5987  * places where only few nonzeros are added to a dense array and removing these nonzeros individually is much faster
5988  * than clearing the whole array. Similar to the normal buffer array, the clean buffer should be used for temporary memory
5989  * allocated and freed within the same function.
5990  *
5991  * The most important functions are
5992  * - SCIPallocCleanBufferArray() to allocate memory,
5993  * - SCIPfreeCleanBufferArray() to free memory.
5994  *
5995  * @n
5996  * @section STDMEM Standard memory
5997  *
5998  * SCIP provides an access to the standard C functions @c malloc and @c free with the additional feature of tracking
5999  * memory in debug mode. In this way, memory leaks can be easily detected. This feature is automatically activated in
6000  * debug mode.
6001  *
6002  * The most important functions are
6003  * - SCIPallocMemory(), SCIPallocMemoryArray() to allocate memory,
6004  * - SCIPfreeMemory(), SCIPfreeMemoryArray() to free memory.
6005  *
6006  * @n
6007  * @section MEMBESTPRACTICE Best Practice of Using Memory Functions
6008  *
6009  * Since allocating and freeing memory is very crucial for the speed and memory consumption of a program, it is
6010  * important to keep the following notes and recommendations in mind.
6011  *
6012  * @subsection GEN General Notes
6013  *
6014  * The following holds for all three types of memory functions:
6015  * - In debug mode, the arguments are checked for overly large allocations (usually arising from a bug). Note that all
6016  * arguments are converted to unsigned values of type @c size_t, such that negative sizes are converted into very
6017  * large values.
6018  * - The functions always allocate at least one byte and return non-NULL pointers if memory is available. In particular,
6019  * freeing is always possible.
6020  * - The freeing methods set the pointer to the memory to NULL.
6021  * - Debugging can be supported by using the compiler flags @p NOBLKMEM=true, @p NOBUFMEM=true, @p NOBLKBUFMEM=true
6022  * that turn off the usage of block memory, buffer memory, as well as block and buffer memory, respectively. Since,
6023  * the internal block and buffer memory is freed at the end (leaving no memory leaks), turning them off allows tools
6024  * like valgrind to find memory leaks.
6025  * - Moreover, additional checks can be turned on by defining @p CHECKMEM in memory.c.
6026  *
6027  * @n
6028  * @subsection DOS Things to do ...
6029  *
6030  * - Use buffer memory if your memory chunk can be allocated and freed within the same function.
6031  * - Use buffer and block memory wherever possible, because of the reasons explained above.
6032  * - Free memory in the reverse order in which it was allocated! For block and buffer memory this @b significantly
6033  * speeds up the code.
6034  * - Use as few memory allocations/freeing operations as possible, since these functions take a significant amount of time.
6035  *
6036  * @n
6037  * @subsection DONTS Things to avoid ...
6038  *
6039  * - Avoid the usage of standard memory, since SCIP is unaware of the size used in such blocks.
6040  * - Avoid reallocation with only slightly increased size, rather use a geometrically growing
6041  * size allocation. SCIPcalcMemGrowSize() is one way to calculate new sizes.
6042  * - Be careful with buffer memory reallocation: For single buffers, the memory is reallocated (using malloc); since
6043  * the actual space might be larger than what was needed at allocation time, reallocation sometimes comes without
6044  * extra cost. Note that reallocating block memory in most cases implies moving memory arround.
6045  */
6046 
6047 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6048 
6049 /**@page DEBUG Debugging
6050  *
6051  * If you need to debug your own code that uses SCIP, here are some tips and tricks:
6052  *
6053  * - Use <b>asserts</b> in your code to show preconditions for the parameters, invariants and postconditions.
6054  * Assertions are boolean expressions which inevitably have to evaluate to <code>TRUE</code>. Consider the
6055  * following example:
6056  *
6057  * @refsnippet{src/scip/cons_linear.c,SnippetDebugAssertions}
6058  *
6059  * As you can see, both pointers and integers are checked for valid values at the beginning of the
6060  * function <code>consdataCatchEvent()</code>. This is particularly important for, e.g., array indices like
6061  * the variable <code>pos</code> in this example, where using the <code>consdata->nvars[pos]</code>
6062  * pointer could result in unexspected behaviour
6063  * if the asserted precondition on <code>pos</code> were not matched and <pos> were an arbitrary index
6064  * outside the array range.
6065  *
6066  * - In order to activate assertions, use the <b>Debug mode</b> by compiling SCIP via
6067  * \code
6068  * make OPT=dbg
6069  * \endcode and run the code. See \ref MAKE for further information about compiler options for SCIP.
6070  *
6071  * - Spending only little extra time on
6072  * asserting preconditions saves most of the time spent on debugging!
6073  *
6074  * - Turn on <b>additional debug output</b> by adding the line
6075  * \code
6076  * #define SCIP_DEBUG
6077  * \endcode
6078  * at the top of SCIP files you want to analyze. This will output messages included in the code using
6079  * <code>SCIPdebugMsg(scip, ...)</code> (or <code>SCIPdebugMessage()</code>), see \ref EXAMPLE_1.
6080  * We recommend to also use <code>SCIPdebugMsg(scip, ...)</code> in your own code for being able to activate
6081  * debug output in the same way.
6082  * - If available on your system, we recommend to use a debugger like <code>gdb</code>
6083  * to trace all function calls on the stack,
6084  * display values of certain expressions, manually break the running code, and so forth.
6085  * - If available on your system, you can use software like <a href="http://valgrind.org">valgrind</a> to check for uninitialized
6086  * values or segmentation faults.
6087  * - For checking the usage of SCIP memory, you can use
6088  * <code>SCIPprintMemoryDiagnostic()</code>. This outputs memory that is currently in use,
6089  * which can be useful after a <code>SCIPfree()</code> call.
6090  * - If there are memory leaks for which you cannot detect the origin, you can remake your code with the option NOBLKBUFMEM=true
6091  * (do not forget to clean your code before with <code>make OPT=... LPS=... clean</code>). After that valgrind (or similar) helps
6092  * to detect leaked memory.
6093  * - If your code cuts off a feasible solution, but you do not know which component is responsible,
6094  * you can use the debugging mechanism (see \ref EXAMPLE_2). Therefore, a given solution is read and it
6095  * is checked for every reduction, whether the solution will be pruned globally.
6096  *
6097  * @section EXAMPLE_1 How to activate debug messages
6098  * For example, if we include a <code>\#define SCIP_DEBUG</code> at the top of \ref heur_oneopt.h, recompile SCIP
6099  * in DBG mode, and run the SCIP interactive shell to solve p0033.mps from the
6100  * <a href="http://miplib.zib.de/miplib3/miplib.html">MIPLIB 3.0</a> , we get some output like:
6101  *
6102  * \include debugexamples/example1.txt
6103  *
6104  * @section EXAMPLE_2 How to add a debug solution
6105  *
6106  * Continuing the example above, we finish the solving process.
6107  * The optimal solution can now be written to a file:
6108  * \include debugexamples/example2_1.txt
6109  *
6110  * If we afterwards recompile SCIP with the additional compiler flag <code>DEBUGSOL=true</code>,
6111  * set the parameter <code>misc/debugsol = check/p0033.sol</code>, and run SCIP again it will output:
6112  * \include debugexamples/example2_2.txt
6113  * Further debug output would only appear, if the solution was cut off in the solving process.
6114  */
6115 
6116 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6117 
6118 /**@page TEST How to run automated tests with SCIP
6119  *
6120  * SCIP comes along with a set of useful tools that allow to perform automated tests. The
6121  * following is a step-by-step guide from setting up the test environment for evaluation and
6122  * customization of test runs.
6123  *
6124  *
6125  * @section SETUP Setting up the test environment
6126  *
6127  * At first you should create a file listing all problem instances that should be part of the test.
6128  * This file has to be located in the the directory <code>scip/check/testset/</code>
6129  * and has to have the file extension <code>.test</code>, e.g., <code>testrun.test</code>,
6130  * in order to be found by the <code>scip/check/check.sh</code> script.
6131  * \n
6132  * All test problems can be listed in the <code>test</code>-file by a relative path,
6133  * e.g., <code>../../problems/instance1.lp</code> or absolute path, e.g., <code>/home/problems/instance2.mps</code>
6134  * in this file. Only one problem should be listed on every line (since the command <code>cat</code> is used to parse this file).
6135  * Note that these problems have to be readable for SCIP in order to solve them.
6136  * However, you can use different file formats.
6137  *
6138  * Optionally, you can provide a solution file in the <code>scip/check/testset/</code> directory containing
6139  * known information about the feasibility and the best known objective values for the test instances.
6140  * SCIP can use these values to verify the results. The file has to have the same basename as the
6141  * <code>.test</code>-file, i.e., in our case <code>testrun.solu</code>. One line can only contain
6142  * information about one test instance. A line has to start with the type of information given:
6143  *
6144  * - <code>=opt=</code> stating that a problem name with an optimal objective value follows
6145  * - <code>=best=</code> stating that a problem name with a best know objective value follows
6146  * - <code>=inf=</code> stating that a problem name follows which is infeasible
6147  *
6148  * With these information types you can encode for an instance named <code>instance1.lp</code> the following
6149  * information:
6150  * - The instance has a known optimal (objective) value of 10.
6151  * \code
6152  * =opt= instance1 10
6153  * \endcode
6154  * - The instance has a best known solution with objective value 15.
6155  * \code
6156  * =best= instance1 15
6157  * \endcode
6158  * - The instance is feasible (but has no objective function or we don't know a solution value)
6159  * \code
6160  * =feas= instance1
6161  * \endcode
6162  * - The instance is infeasible.
6163  * \code
6164  * =inf= instance1
6165  * \endcode
6166  *
6167  * If you don't know whether the instance is feasible or not (so the status is unknown),
6168  * you can omit the instance in the <code>solu</code>-file or write
6169  * \code
6170  * =unkn= instance1
6171  * \endcode
6172  *
6173  * <b>Note that in all lines the file extension of the file name is omitted.</b>
6174  * \n
6175  * See the files <code>scip/check/testset/short.test</code> and <code>scip/check/testset/short.solu</code>
6176  * for an example of a <code>test</code>-file and its corresponding <code>solu</code>-file.
6177  *
6178  *
6179  *
6180  * @section STARTING Starting a test run
6181  *
6182  *
6183  * \code
6184  * make TEST=testrun test
6185  * \endcode
6186  *
6187  * in the SCIP root directory. Note that <code>testrun</code> is exactly the basename of our
6188  * <code>test</code>-file (<code>testrun.test</code>). This will cause SCIP to solve our test instances
6189  * one after another and to create various output files (see \ref EVAL).
6190  *
6191  *
6192  * @section EVAL Evaluating a test run
6193  *
6194  * During computation, SCIP automatically creates the directory <code>scip/check/results/</code>
6195  * (if it does not already exist) and stores the following output files there.
6196  *
6197  * \arg <code>*.out</code> - output of <code>stdout</code>
6198  * \arg <code>*.err</code> - output of <code>stderr</code>
6199  * \arg <code>*.set</code> - copy of the used settings file
6200  *
6201  * \arg <code>*.res</code> - ASCII table containing a summary of the computational results
6202  * \arg <code>*.tex</code> - TeX table containing a summary of the computational results
6203  * \arg <code>*.pav</code> - <a href="http://www.gamsworld.org/performance/paver/">PAVER</a> output
6204  *
6205  * The last three files in the above list, i.e., the files containing a summary of the computational results,
6206  * can also be generated manually. Therefore the user has to call the <code>evalcheck.sh</code> script in the
6207  * @c check directory with the corresponding @c out file as argument. For example, this may be useful if the user stopped the
6208  * test before it was finished, in which case the last three files will not be automatically generated by SCIP.
6209  *
6210  * The last column of the ASCII summary table contains the solver status. We distinguish the following statuses: (in order of priority)
6211  *
6212  * \arg abort: solver broke before returning solution
6213  * \arg fail: solver cut off a known feasible solution (value of the <code>solu</code>-file is beyond the dual bound;
6214  * especially if problem is claimed to be solved but solution is not the optimal solution)
6215  * <b>or</b> if a final solution check revealed a violation of one of the original constraints.
6216  * \arg ok: solver solved problem with the value in solu-file
6217  * \arg solved: solver solved problem which has no (optimal) value in solu-file (since we here cannot detect the direction
6218  * of optimization, it is possible that a solver claims an optimal solution which contradicts a known feasible solution)
6219  * \arg better: solver found solution better than known best solution (or no solution was noted in the <code>solu</code>-file so far)
6220  * \arg gaplimit, sollimit: solver reached gaplimit or limit of number of solutions (at present: only in SCIP)
6221  * \arg timeout: solver reached any other limit (like time or nodes)
6222  * \arg unknown: otherwise
6223  *
6224  * Additionally the <code>evalcheck.sh</code> script can generate a <code>solu</code>-file by calling
6225  * \code
6226  * ./evalcheck.sh writesolufile=1 NEWSOLUFILE=<solu-file> <out-file>
6227  * \endcode
6228  * where <code><solu-file></code> denotes the filename of the new file where the solutions shall be
6229  * (and <code><out-file></code> denotes the output (<code>.out</code>) files to evaluate).
6230  *
6231  * Another feature can be enabled by calling:
6232  * \code
6233  * ./evalcheck.sh printsoltimes=1 ...
6234  * \endcode
6235  * The output has two additional columns containing the solving time until the first and the best solution was found.
6236  *
6237  *
6238  * @b Note: The @em basename of all these files is the same and has the following structure
6239  * which allows us to reconstruct the test run:
6240  *
6241  * \code
6242  * check.<test name>.<binary>.<machine name>.<setting name>
6243  * \endcode
6244  *
6245  * \arg <<code>test name</code>> indicates the name of the the test file, e.g., <code>testrun</code>
6246  * \arg <<code>binary</code>> defines the used binary, e.g., <code>scip-3.2.0.linux.x86_64.gnu.opt.spx</code>
6247  * \arg <<code>machine name</code>> tells the name of the machine, e.g., <code>mycomputer</code>
6248  * \arg <<code>setting name</code>> denotes the name of the used settings, e.g., <code>default</code>
6249  * means the (SCIP) default settings were used
6250  *
6251  * Using the examples out of the previous listing the six file names would have the name:
6252  *
6253  * \code
6254  * check.testrun.scip-1.1.0.linux.x86.gnu.opt.spx.mycomputer.default.<out,err,set,res,tex,pav>
6255  * \endcode
6256  *
6257  *
6258  * @section USING Using customized setting files
6259  *
6260  * It is possible to use customized settings files for the test run instead of testing SCIP with default settings.
6261  * These have to be placed in the directory <code>scip/settings/</code>.
6262  *
6263  * @b Note: Several common user parameters such as, e.g., the time limit and node limit parameters,
6264  * <b>cannot</b> be controlled by the settings file, whose specifications would be overwritten
6265  * by optional command line arguments to the <code>make test</code> command, see @ref ADVANCED
6266  * for a list of available advanced testing options that have to be specified from the command line.
6267  *
6268  * @b Note: Accessing settings files in subfolders of the @c settings directory is currently not supported.
6269  *
6270  * To run SCIP with a custom settings file, say for example <code>fast.set</code>, we call
6271  *
6272  * \code
6273  * make TEST=testrun SETTINGS=fast test
6274  * \endcode
6275  *
6276  * in the SCIP root directory. It is possible to enter a list of settings files as a double-quoted,
6277  * comma-separated list of settings names as <code>fast</code> above, i.e. <code>SETTINGS="fast,medium,slow"</code>
6278  * will invoke the solution process for every instance with the three settings <code>fast.set, medium.set, slow.set</code>
6279  * before continuing with the next instance from the <code>.test</code>-file. This may come in handy if the
6280  * whole test runs for a longer time and partial results are already available.
6281  *
6282  *
6283  * @section ADVANCED Advanced options
6284  *
6285  * We can further customize the test run by specifying the following options in the <code>make</code> call:
6286  *
6287  * \arg <code>CONTINUE</code> - continue the test run if it was previously aborted [default: "false"]
6288  * \arg <code>DISPFREQ</code> - display frequency of the output [default: 10000]
6289  * \arg <code>FEASTOL</code> - LP feasibility tolerance for constraints [default: "default"]
6290  * \arg <code>LOCK</code> - should the test run be locked to prevent other machines from performing the same test run [default: "false"]
6291  * \arg <code>MAXJOBS=n</code> - run tests on 'n' cores in parallel. Note that several instances are solved in parallel, but
6292  * only one thread is used per job (parallelization is not that easy) [default: 1]
6293  * \arg <code>MEM</code> - memory limit in MB [default: 6144]
6294  * \arg <code>NODES</code> - node limit [default: 2100000000]
6295  * \arg <code>TIME</code> - time limit for each test instance in seconds [default: 3600]
6296  * \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]
6297  * \arg <code>THREADS</code> - the number of threads used for solving LPs, if the linked LP solver supports multithreading [default: 1]
6298  * \arg <code>VALGRIND</code> - run valgrind on the SCIP binary; errors and memory leaks found by valgrind are reported as fails [default: "false"]
6299  *
6300  *
6301  * @section COMPARE Comparing test runs for different settings
6302  *
6303  * Often test runs are performed on the basis of different settings. In this case, it is useful to
6304  * have a performance comparison. For this purpose, we can use the <code>allcmpres.sh</code> script in
6305  * the @c check directory.
6306  *
6307  * Suppose, we performed our test run with two different settings, say <code>fast.set</code> and
6308  * <code>slow.set</code>. Assuming that all other parameters (including the SCIP binary), were the same,
6309  * we may have the following <code>res</code>-files in the directory <code>scip/check/results/</code>
6310  *
6311  * \code
6312  * check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.fast.res
6313  * check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.slow.res
6314  * \endcode
6315  *
6316  * For a comparison of both computations, we simply call
6317  *
6318  * \code
6319  * allcmpres.sh results/check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.fast.res \
6320  * results/check.testrun.scip-3.2.0.linux.x86_64.gnu.opt.spx.mycomputer.slow.res
6321  * \endcode
6322  *
6323  * in the @c check directory. This produces an ASCII table on the console that provide a detailed
6324  * performance comparison of both test runs. Note that the first <code>res</code>-file serves as reference
6325  * computation. The following list explains the output.
6326  * (The term "solver" can be considered as the combination of SCIP with a specific setting file.)
6327  *
6328  * \arg <code>Nodes</code> - Number of processed branch-and-bound nodes.
6329  * \arg <code>Time</code> - Computation time in seconds.
6330  * \arg <code>F</code> - If no feasible solution was found, then '#', empty otherwise.
6331  * \arg <code>NodQ</code> - Equals Nodes(i) / Nodes(0), where 'i' denotes the current solver and '0' stands for the reference solver.
6332  * \arg <code>TimQ</code> - Equals Time(i) / Time(0).
6333  * \arg <code>bounds check</code> - Status of the primal and dual bound check.
6334  *
6335  * \arg <code>proc</code> - Number of instances processed.
6336  * \arg <code>eval</code> - Number of instances evaluated (bounds check = "ok", i.e., solved to optimality
6337  * within the time and memory limit and result is correct). Only these instances are used in the calculation
6338  * of the mean values.
6339  * \arg <code>fail</code> - Number of instances with bounds check = "fail".
6340  * \arg <code>time</code> - Number of instances with timeout.
6341  * \arg <code>solv</code> - Number of instances correctly solved within the time limit.
6342  * \arg <code>wins</code> - Number of instances on which the solver won (i.e., the
6343  * solver was at most 10% slower than the fastest solver OR had the best
6344  * primal bound in case the instance was not solved by any solver within
6345  * the time limit).
6346  * \arg <code>bett</code> - Number of instances on which the solver was better than the
6347  * reference solver (i.e., more than 10% faster).
6348  * \arg <code>wors</code> - Number of instances on which the solver was worse than the
6349  * reference solver (i.e., more than 10% slower).
6350  * \arg <code>bobj</code> - Number of instances on which the solver had a better primal
6351  * bound than the reference solver (i.e., a difference larger than 10%).
6352  * \arg <code>wobj</code> - Number of instances on which the solver had a worse primal
6353  * bound than the reference solver (i.e., a difference larger than 10%).
6354  * \arg <code>feas</code> - Number of instances for which a feasible solution was found.
6355  * \arg <code>gnodes</code> - Geometric mean of the processed nodes over all evaluated instances.
6356  * \arg <code>shnodes</code> - Shifted geometric mean of the processed nodes over all evaluated instances.
6357  * \arg <code>gnodesQ</code> - Equals nodes(i) / nodes(0), where 'i' denotes the current
6358  * solver and '0' stands for the reference solver.
6359  * \arg <code>shnodesQ</code> - Equals shnodes(i) / shnodes(0).
6360  * \arg <code>gtime</code> - Geometric mean of the computation time over all evaluated instances.
6361  * \arg <code>shtime</code> - Shifted geometric mean of the computation time over all evaluated instances.
6362  * \arg <code>gtimeQ</code> - Equals time(i) / time(0).
6363  * \arg <code>shtimeQ</code> - Equals shtime(i) / shtime(0).
6364  * \arg <code>score</code> - N/A
6365  *
6366  * \arg <code>all</code> - All solvers.
6367  * \arg <code>optimal auto settings</code> - Theoretical result for a solver that performed 'best of all' for every instance.
6368  * \arg <code>diff</code> - Solvers with instances that differ from the reference solver in the number of
6369  * processed nodes or in the total number of simplex iterations.
6370  * \arg <code>equal</code> - Solvers with instances whose number of processed nodes and total number of
6371  * simplex iterations is equal to the reference solver (including a 10% tolerance) and where no timeout
6372  * occured.
6373  * \arg <code>all optimal</code> - Solvers with instances that could be solved to optimality by
6374  * <em>all</em> solvers; in particular, no timeout occurred.
6375  *
6376  * Since this large amount of information is not always needed, one can generate a narrower table by calling:
6377  * \code
6378  * allcmpres.sh short=1 ...
6379  * \endcode
6380  * where <code>NodQ</code>, <code>TimQ</code> and the additional comparison tables are omitted.
6381  *
6382  * If the <code>res</code>-files were generated with the parameter <code>printsoltimes=1</code>
6383  * we can enable the same feature here as well by calling:
6384  * \code
6385  * allcmpres.sh printsoltimes=1 ...
6386  * \endcode
6387  * As in the evaluation, the output contains the two additional columns of the solving time until the first and the best solution was found.
6388  *
6389  * @section STATISTICS Statistical tests
6390  *
6391  * The \c allcmpres script also performs two statistical tests for comparing different settings: For deciding whether
6392  * more feasible solutions have been found or more instances have been solved to optimality or not, we use a McNemar
6393  * test. For comparing the running time and number of nodes, we use a variant of the Wilcoxon signed rank test. A
6394  * detailed explanation can be found in the PhD thesis of Timo Berthold (Heuristic algorithms in global MINLP solvers).
6395  *
6396  * @subsection McNemar McNemar test
6397  *
6398  * Assume that we compare two settings \c S1 and \c S2 with respect to the number of instances solved to optimality
6399  * within the timelimit. The null hypothesis would be "Both settings lead to an equal number of instances being solved
6400  * to optimality", which we would like to disprove. Let \f$n_1\f$ be the number of instances solved by setting \c S1
6401  * 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
6402  * McNemar test statistic is
6403  * \f[
6404  * \chi^2 = \frac{(n_1 - n_2)^2}{n_1 + n_2}.
6405  * \f]
6406  * Under the null hypothesis, \f$\chi^2\f$ is chi-squared distributed with one degree of freedom. This allows to compute
6407  * a \f$p\f$-value as the probability for obtaining a similar or even more extreme result under the null hypothesis.
6408  * More explicitly, \c allcmpres uses the following evaluation:
6409  * - \f$0.05 < p\f$: The null hypothesis is accepted (marked by "X").
6410  * - \f$0.005 < p \leq 0.05\f$: The null hypothesis might be false (marked by "!").
6411  * - \f$0.0005 < p \leq 0.005\f$: The null hypothesis can be false (marked by "!!").
6412  * - \f$p \leq 0.0005\f$: The null hypothesis is very likely false (marked by "!!!").
6413  *
6414  * As an example consider the following output:
6415  * \code
6416  * McNemar (feas) x2 0.0000, 0.05 < p X
6417  * McNemar (opt) x2 6.0000, p ~ (0.005, 0.05] !
6418  * \endcode
6419  * Here, \c x2 represents \f$\chi^2\f$.
6420  *
6421  * In this case, the test with respect to the number of found feasible solutions is irrelevant, since their number is
6422  * equal. In particular, the null hypothesis gets accepted (i.e., there is no difference in the settings - this is
6423  * marked by "X").
6424  *
6425  * With respect to the number of instances solved to optimality within the timelimit, we have that \f$0.005 < p <=
6426  * 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
6427  * settings perform differently; this is marked by "!". In the concrete case, we have 230 instances, all of which are
6428  * solved by setting \c S2, but only 224 by setting \c S1.
6429  *
6430  * @subsection Wilcoxon Wilcoxon signed rank test
6431  *
6432  * Assume that we compare two settings \c S1 and \c S2 with respect to their solution times (within the time limit). We
6433  * generate a sorted list of the ratios of the run times, where ratios that are (absolutely or relatively) within 1\%
6434  * of 1.0 are discarded, and ratios between 0.0 and 0.99 are replaced with their negative inverse in order to
6435  * obtain a symmetric distribution for the ratios around the origin.
6436  * We then assign ranks 1 to \c N to the remaining \c N data points in nondecreasing
6437  * order of their absolute ratio. This yields two groups \c G1
6438  * 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
6439  * setting \c S1 is faster). Then the sums of the ranks in groups \c G1 and \c G2 are computed, yielding values \c R1
6440  * and \c R2, respectively.
6441  *
6442  * The Wilcoxon test statistic is then
6443  * \f[
6444  * z = \frac{\min(R1, R2) - \frac{N(N+1)}{4}}{\sqrt{\frac{N(N+1)(2N+1)}{24}}},
6445  * \f]
6446  * which we assume to be (approximately) normally distributed (with zero mean) and allows to compute the probability
6447  * \f$p\f$ that one setting is faster than the other. (Note that for \f$N \leq 60\f$, we apply a correction by
6448  * subtracting 0.5 from the numerator).
6449  *
6450  * As an example consider the following output:
6451  * \code
6452  * Wilcoxon (time) z -0.1285, 0.05 <= p X
6453  * Wilcoxon (nodes) z -11.9154, p < 0.0005 !!!
6454  * \endcode
6455  * While the \f$z\f$-value is close to zero for the run time, it is extremely negative regarding the solving nodes. This latter
6456  * 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
6457  * nodes than setting \c S2 is negligible (this null hypothesis is rejected - marked by "!!!").
6458  *
6459  * However, the null hypothesis is not rejected with respect to the run time. In the concrete case, setting \c S1 has a
6460  * 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
6461  * 0.88. Still - the null hypothesis is not rejected.
6462  *
6463  * @section SOLVER Testing and Evaluating using GAMS
6464  *
6465  * Analogously to the target <code>test</code> there is another target to run automated tests with <a href="http://www.gams.com/">gams</a>
6466  * \code
6467  * make testgams GAMSSOLVER=xyz
6468  * \endcode
6469  * For this target, the option GAMSSOLVER has to be given to specify the name of a GAMS solver to run, e.g. GAMSSOLVER=SCIP.
6470  * Additional advanced options specific to this target are:
6471  * GAMS to specify the GAMS executable (default: gams),
6472  * GAP to specify a gap limit (default: 0.0),
6473  * CLIENTTMPDIR to specify a directory where GAMS should put its scratch files (default: /tmp),
6474  * 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).
6475  * The following options are NOT supported (and ignored): DISPFREQ, FEASTOL, LOCK.
6476  * 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).
6477  *
6478  * Note: This works only if the referred programs are installed globally on your machine.
6479  *
6480  * The above options like <code>TIME</code> are also available for gams.
6481  *
6482  * After the testrun there should be an <code>.out</code>, an <code>.err</code> and a <code>.res</code> file
6483  * with the same basename as described above.
6484  *
6485  * Furthermore you can also use the script <code>allcmpres.sh</code> for comparing results.
6486  *
6487  */
6488 
6489 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6490 
6491 /**@page CHG1 Interface changes between SCIP 0.9 and SCIP 1.0
6492  *
6493  * @section CHGPARAM New parameters
6494  *
6495  * - All functions SCIP<datatype>Param() got a new parameter "isadvanced".
6496  * \n
6497  * This does not influence the performance of SCIP, but the position of the parameter in the settings menu.
6498  * Hence, if you do not care about this, you can assign any value to it.
6499  * You should add the corresponding flag to the SCIP<datatype>Param() calls in your own source code.
6500  *
6501  */
6502 
6503 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6504 
6505 /**@page CHG2 Interface changes between SCIP 1.0 and SCIP 1.1
6506  *
6507  * - SCIPcreateChild() has a new last parameter giving an estimate for value of best feasible solution in the subtree to
6508  * be created. One possibility is to use SCIPgetLocalOrigEstimate() for this value.
6509  *
6510  * - The callback \ref CONSCHECK in the constraint handlers now has a new parameter <code>printreason</code> that tells
6511  * a constraint handler to output the reason for a possible infeasibility of the solution to be checked using
6512  * SCIPinfoMessage(). Have a look at one of the constraint handlers implemented in SCIP to see how it works. This
6513  * methodology makes it possible to output the reason of a violation in human readable form, for instance, for the check
6514  * at the end of a SCIP run, where the obtained best solution is checked against the original formulation.\n This change
6515  * often has little effect on C-implementations, since this parameter can be safely ignored with respect to the
6516  * correctness of the code. The corresponding C++ method scip::ObjConshdlr::scip_check(), however, has to be extended
6517  * and will not compile otherwise.
6518  *
6519  * - SCIPcheckSolOrig() is restructured. The last two parameters have changed. They are now bools indicating
6520  * whether the reason for the violation should be printed to the standard output and whether all violations should be
6521  * printed. This reflects the changes in the constraint handlers above, which allow the automation of the feasibility
6522  * test. The pointers to store the constraint handler or constraint are not needed anymore.
6523  *
6524  * - New parameters "extension" and "genericnames" in SCIPprintTransProblem(), SCIPprintOrigProblem(),
6525  * SCIPwriteOrigProblem(), and SCIPwriteTransProblem() defining the requested format or NULL for default CIP format
6526  * and using generic names for the variables and constraints. Examples are
6527  * - <code>SCIPprintTransProblem(scip, NULL, NULL, TRUE)</code> displays the transformed problem in CIP format with
6528  * generic variables and constraint names
6529  * - <code>SCIPprintOrigProblem(scip, NULL, "lp", FALSE)</code> displays the original problem in LP format with
6530  * original variables and constraint names.
6531  *
6532  * - New callback method SCIP_DECL_READERWRITE(x) in type_reader.h; this method is called to write a problem to file
6533  * stream in the format the reader stands for; useful for writing the transformed problem in LP or MPS format. Hence,
6534  * also SCIPincludeReader() has changed.
6535  *
6536  * - New parameter "conshdlrname" in SCIPincludeLinconsUpgrade().
6537  *
6538  * - Added user pointer to callback methods of hash table, see pub_misc.h.
6539  *
6540  * - New parameter "extension" in SCIPreadProb(), defining a desired file format or NULL if file extension should be used.
6541  */
6542 
6543 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6544 
6545 /**@page CHG3 Interface changes between SCIP 1.1 and SCIP 1.2
6546  *
6547  *
6548  * @section CHGCALLBACKS New and changed callbacks
6549  *
6550  * - The callback SCIP_DECL_PRICERREDCOST(x) in the \ref PRICER "pricers" has two new parameters:
6551  * - A <code>result</code> pointer determines whether the pricer guarantees that there exist no more variables. This allows for early branching.
6552  * - A pointer for providing a lower bound.
6553  *
6554  * - The \ref CONS "constraint handlers" have two new callback methods (see type_cons.h for more details).
6555  * - SCIP_DECL_CONSCOPY(x) - this method can be used to copy a constraint.
6556  * - SCIP_DECL_CONSPARSE(x) - this method can be used to parse a constraint in CIP format.
6557  *
6558  * @section CHGINTERFUNC New parameters in interface methods
6559  *
6560  * - SCIPcalcMIR() in scip.h has two new parameter "mksetcoefsvalid" and "sol". The parameter "mksetcoefsvalid" stores
6561  * whether the coefficients of the mixed knapsack set ("mksetcoefs") computed in SCIPlpCalcMIR() are valid. If the mixed knapsack constraint obtained after aggregating LP rows
6562  * 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.
6563  * The input parameter "sol" can be used to separate a solution different from the LP solution.
6564  *
6565  * - 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.
6566  *
6567  * @section MISCELLANEOUS Miscellaneous
6568  *
6569  * - A significant change for <b>C++ users</b> is that all include files of SCIP
6570  * automatically detect C++ mode, i.e., no <code>extern "C"</code> is needed anymore.
6571  *
6572  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6573  */
6574 
6575 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6576 
6577 /**@page CHG4 Interface changes between SCIP 1.2 and SCIP 2.0
6578  *
6579  *
6580  * @section CHGCALLBACKS4 New and changed callbacks
6581  *
6582  *
6583  * - <b>Copying a SCIP instance</b>:
6584  * <br>
6585  * <br>
6586  * - All plugins, like \ref BRANCH "branching rules" and \ref HEUR "primal heuristics", have a new callback method (see, e.g.,
6587  * type_branch.h and type_heur.h for more details):
6588  * - SCIP_DECL_BRANCHCOPY(x), SCIP_DECL_HEURCOPY(x) etc.
6589  * - When copying a SCIP instance, these methods are called to copy the plugins.
6590  * <br>
6591  * <br>
6592  * - Constraint handlers have two new callback methods. One for copying the constraint handler plugins
6593  * SCIP_DECL_CONSHDLRCOPY() and the other for copying a constraint itself, SCIP_DECL_CONSCOPY().
6594  * <br>
6595  * <br>
6596  * - Variables have a new callback method (see type_var.h for more details):
6597  * - SCIP_DECL_VARCOPY(x) - When copying a SCIP instance, this method is called to copy the variables' data.
6598  * <br>
6599  * <br>
6600  * - The main problem has a new callback method (see type_prob.h for more details):
6601  * - SCIP_DECL_PROBCOPY(x) - When copying a SCIP instance, this method is called to copy the problem's data.
6602  * <br>
6603  * <br>
6604  * - The argument success in SCIP_DECL_CONSCOPY has been renamed to valid.
6605  *
6606  * - <b>Branching on externally given candidates</b>:
6607  * <br>
6608  * <br>
6609  * - The \ref BRANCH "branching rules" have a second new callback method (see type_branch.h for more details):
6610  * - SCIP_DECL_BRANCHEXECEXT(x) - This method can be used to branch on external branching candidates,
6611  * which can be added by a user's "relaxation handler" or "constraint handler" plugin, calling <code>SCIPaddExternBranchCand()</code>.
6612  *
6613  * - <b>Restarts</b>:
6614  * <br>
6615  * <br>
6616  * - The callback SCIP_DECL_PROBEXITSOL(x) in the main problem has one new parameter (see type_prob.h for more details):
6617  * - The parameter <code>restart</code> is <code>TRUE</code> if the callback method was triggered by a restart.
6618  *
6619  *
6620  * <br>
6621  * @section CHGINTERFUNC4 Changed interface methods
6622  *
6623  * - <b>Copying a SCIP instance</b>:
6624  * <br>
6625  * <br>
6626  * - Every new callback method resulted in a new parameter of the include function for the corresponding plugin,
6627  * e.g., SCIPincludeBranchrule() has two new parameters <code>SCIP_DECL_BRANCHCOPY((*branchcopy))</code> and
6628  * <code>SCIP_DECL_BRANCHEXECREL((*branchexecrel))</code>. In the same fashion, the new callbacks
6629  * SCIP_DECL_VARCOPY and SCIP_DECL_PROBCOPY led to new parameters in SCIPcreateVar() and SCIPcreateProb() in
6630  * scip.c, respectively.
6631  * <br><br>
6632  * - SCIPincludeHeur() and SCIPincludeSepa() in \ref scip.h, as well as scip::ObjSepa() and scip::ObjHeur(), have a new parameter:
6633  * - <code>usessubscip</code> - It can be used to inform SCIP that the heuristic/separator to be included uses a secondary SCIP instance.
6634  * <br><br>
6635  * - SCIPapplyRens() in \ref heur_rens.h has a new parameter <code>uselprows</code>. It can be used to switch from LP rows
6636  * to constraints as basis of the sub-SCIP constructed in the RENS heuristic.
6637  * <br>
6638  * <br>
6639  * - W.r.t. to copy and the C++ wrapper classes there are two new classes. These are <code>ObjCloneable</code> and
6640  * <code>ObjProbCloneable</code>. The constraint handlers and variables pricers are derived from
6641  * <code>ObjProbCloneable</code> and all other plugin are derived from <code>ObjCloneable</code>. Both
6642  * classes implement the function <code>iscloneable()</code> which return whether a plugin is clone
6643  * able or not. Besides that
6644  * each class has a function named <code>clone()</code> which differ in their signature.
6645  * See objcloneable.h, objprobcloneable.h, and the TSP example for more details.
6646  *
6647  * - <b>Branching</b>:
6648  * <br><br>
6649  * - The method SCIPgetVarStrongbranch() has been replaced by two methods SCIPgetVarStrongbranchFrac() and
6650  * SCIPgetVarStrongbranchInt().
6651  * <br><br>
6652  * - The methods SCIPgetVarPseudocost() and SCIPgetVarPseudocostCurrentRun() in \ref scip.h now return the pseudocost value of
6653  * one branching direction, scaled to a unit interval. The former versions of SCIPgetVarPseudocost() and
6654  * SCIPgetVarPseudocostCurrentRun() are now called SCIPgetVarPseudocostVal() and SCIPgetVarPseudocostValCurrentRun(), respectively.
6655  * <br>
6656  * <br>
6657  * - The methods SCIPgetVarConflictScore() and SCIPgetVarConflictScoreCurrentRun() in \ref scip.h are now called
6658  * SCIPgetVarVSIDS() and SCIPgetVarVSIDSCurrentRun(), respectively.
6659  * <br><br>
6660  * - The methods SCIPvarGetNInferences(), SCIPvarGetNInferencesCurrentRun(), SCIPvarGetNCutoffs(), and
6661  * SCIPvarGetNCutoffsCurrentRun() are now called SCIPvarGetInferenceSum(), SCIPvarGetInferenceSumCurrentRun(),
6662  * SCIPvarGetCutoffSum(), and SCIPvarGetCutoffSumCurrentRun(), respectively. Furthermore, they now return
6663  * <code>SCIP_Real</code> instead of <code>SCIP_Longint</code> values.
6664  *
6665  * - <b>Others</b>:
6666  * <br><br>
6667  * - SCIPcutGenerationHeuristicCmir() in sepa_cmir.h has three new parameters:
6668  * - <code>maxmksetcoefs</code> - If the mixed knapsack constraint obtained after aggregating LP rows contains more
6669  * than <code>maxmksetcoefs</code> nonzero coefficients the generation of the <b>c-MIR cut</b> is aborted.
6670  * - <code>delta</code> - It can be used to obtain the scaling factor which leads to the best c-MIR cut found within
6671  * the cut generation heuristic. If a <code>NULL</code> pointer is passed, the corresponding c-MIR cut will already be
6672  * added to SCIP by SCIPcutGenerationHeuristicCmir(). Otherwise, the user can generate the cut and add it to SCIP
6673  * on demand afterwards.
6674  * - <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>,
6675  * <code>deltavalid</code> will be <code>TRUE</code> if the stored scaling factor <code>delta</code> will lead to a violated c-MIR cut.
6676  * <br>
6677  * <br>
6678  * - All functions for setting <b>user parameters</b> of different types like SCIPparamSetBool(), SCIPparamSetChar(),
6679  * SCIPparamSetInt(), SCIPparamSetLongint(), and SCIPparamSetString() in pub_paramset.h have a new parameter:
6680  * - <code>quiet</code> - It prevents any output during the assign to a new value.
6681  *
6682  * <br>
6683  * @section MISCELLANEOUS4 Miscellaneous
6684  *
6685  * - The NLPI library is now a separate library that is required when linking against the SCIP library.
6686  * This requires changes to Makefiles that use SCIP, see the \ref RELEASENOTES "Release notes" for more details.
6687  *
6688  * - We do not distinguish between <b>block memory</b> for the original and the transformed problem anymore. The same
6689  * block memory is now used in both problem stages.
6690  *
6691  * - The usage of <b>strong branching</b> changed. Now, SCIPstartStrongbranch() and SCIPendStrongbranch() must be
6692  * called before and after strong branching, respectively.
6693  *
6694  * - All <b>C++</b> objects and constructors have a SCIP pointer, now.
6695  *
6696  * - The <b>predefined setting files</b> like "settings/cuts/off.set,aggressive.set,fast.set" have been replaced by
6697  * interface methods like SCIPsetHeuristics(), SCIPsetPresolving(), SCIPsetSeparating(), and SCIPsetEmphasis() in
6698  * \ref scip.h and by user dialogs in the interactive shell like
6699  * <br>
6700  * <br>
6701  * <code>SCIP&gt; set {heuristics|presolving|separating} emphasis {aggressive|fast|off}</code>
6702  * <br>
6703  * <br>
6704  * or
6705  * <br>
6706  * <br>
6707  * <code>SCIP&gt; set emphasis {counter|cpsolver|easycip|feasibility|hardlp|optimality}</code>
6708  *
6709  *
6710  * <br>
6711  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6712  */
6713 
6714 /* - SCIP now has "lazy bounds", which are useful for column generation - see @ref PRICER_REMARKS "pricer remarks" for an explanation.
6715  *
6716  * - SCIP has rudimentary support to solve quadratic nonlinear integer programs - see \ref cons_quadratic.h.
6717  *
6718  * - There are LP-interfaces to QSopt and Gurobi (rudimentary).
6719  *
6720  * - SCIP can now handle indicator constraints (reading (from LP, ZIMPL), writing, solving, ...) - see \ref cons_indicator.h.
6721  *
6722  * - One can now do "early branching" useful for column generation.
6723  *
6724  * - Can now run a black-box lexicographic dual simplex algorithm.
6725  */
6726 
6727  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6728  /**@page CHG5 Interface changes between SCIP 2.0 and SCIP 2.1
6729  *
6730  *
6731  * @section CHGCALLBACKS5 New and changed callbacks
6732  *
6733  * - <b>Presolving</b>:
6734  * <br>
6735  * <br>
6736  * - The new parameters "nnewaddconss" and "naddconss" were added to the constraint handler callback method SCIP_DECL_CONSPRESOL()
6737  * and the presolver callback method SCIP_DECL_PRESOLEXEC(). These parameters were also added to corresponding C++ wrapper class methods.
6738  * - Propagators are now also called in during presolving, this is supported by the new callback methods SCIP_DECL_PROPINITPRE(),
6739  * SCIP_DECL_PROPEXITPRE(), and SCIP_DECL_PROPPRESOL().
6740  * - New parameters "isunbounded" and "isinfeasible" for presolving initialization (SCIP_DECL_CONSINITPRE(),
6741  * SCIP_DECL_PRESOLINITPRE(), SCIP_DECL_PROPINITPRE()) and presolving deinitialization (SCIP_DECL_CONSEXITPRE(),
6742  * SCIP_DECL_PRESOLEXITPRE(), SCIP_DECL_PROPEXITPRE()) callbacks of presolvers,
6743  * constraint handlers and propagators, telling the callback whether the problem was already declared to be
6744  * unbounded or infeasible. This allows to avoid expensive steps in these methods in case the problem is already
6745  * solved, anyway.
6746  * <br>
6747  * <br>
6748  * <DIV class="note">
6749  * Note, that the C++ methods
6750  * - scip::ObjConshdlr::scip_presol() corresponding to SCIP_DECL_CONSPRESOL()
6751  * - scip::ObjConshdlr::scip_initpre() corresponding to SCIP_DECL_CONSINITPRE()
6752  * - scip::ObjPresol::scip_initpre() corresponding to SCIP_DECL_PRESOLINITPRE()
6753  * - scip::ObjProp::scip_initpre() corresponding to SCIP_DECL_PROPINITPRE()
6754  * - scip::ObjConshdlr::scip_exitpre() corresponding to SCIP_DECL_CONSEXITPRE()
6755  * - scip::ObjPresol::scip_exitpre() corresponding to SCIP_DECL_PRESOLEXITPRE()
6756  * - scip::ObjProp::scip_exitpre() corresponding to and SCIP_DECL_PROPEXITPRE()
6757  * .
6758  * are virtual functions. That means, if you are not adding the new parameters, your code will still compile, but these methods are not executed.
6759  * </DIV>
6760  *
6761  * - <b>Constraint Handler</b>:
6762  * <br>
6763  * <br>
6764  * - The new constraint handler callback SCIP_DECL_CONSDELVARS() is called after variables were marked for deletion.
6765  * This method is optional and only of interest if you are using SCIP as a branch-and-price framework. That means,
6766  * you are generating new variables during the search. If you are not doing that just define the function pointer
6767  * to be NULL.
6768  * <br>
6769  * If this method gets implemented you should iterate over all constraints of the constraint handler and delete all
6770  * variables that were marked for deletion by SCIPdelVar().
6771  *
6772  * - <b>Problem Data</b>:
6773  * <br>
6774  * <br>
6775  * - 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.
6776  *
6777  * - <b>Conflict Analysis</b>:
6778  * <br>
6779  * <br>
6780  * - Added parameter "separate" to conflict handler callback method SCIP_DECL_CONFLICTEXEC() that defines whether the conflict constraint should be separated or not.
6781  *
6782  * - <b>NLP Solver Interface</b>:
6783  * <br>
6784  * <br>
6785  * - The callbacks SCIP_DECL_NLPIGETSOLUTION() and SCIP_DECL_NLPISETINITIALGUESS() got new parameters to get/set values of dual variables.
6786  * - The callback SCIP_DECL_NLPICOPY() now passes the block memory of the target SCIP as an additional parameter.
6787  *
6788  * <br>
6789  * @section CHGINTERFUNC5 Changed interface methods
6790  *
6791  * - <b>Writing and Parsing constraints</b>:
6792  * <br>
6793  * <br>
6794  * - The methods SCIPwriteVarName(), SCIPwriteVarsList(), and SCIPwriteVarsLinearsum() got a new boolean parameter "type"
6795  * that indicates whether the variable type should be written or not.
6796  * - The method SCIPwriteVarsList() got additionally a new parameter "delimiter" that defines the character which is used for delimitation.
6797  * - The methods SCIPparseVarName() and SCIPparseVarsList() got a new output parameter "endptr" that is filled with the position where the parsing stopped.
6798  *
6799  * - <b>Plugin management</b>:
6800  * <br>
6801  * <br>
6802  * - 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.
6803  * - SCIPincludeConshdlr() got additional parameters to set the variable deletion callback function and the timing mask for propagation.
6804  *
6805  * - <b>Constraint Handlers</b>:
6806  * <br>
6807  * <br>
6808  * - Method SCIPseparateRelaxedKnapsack() in knapsack constraint handler got new parameter "cutoff", which is a pointer to store whether a cutoff was found.
6809  * - Method SCIPincludeQuadconsUpgrade() of quadratic constraint handler got new parameter "active" to indicate whether the upgrading method is active by default.
6810  *
6811  * - <b>Nonlinear expressions, relaxation, and solver interface</b>:
6812  * <br>
6813  * <br>
6814  * - The methods SCIPexprtreeEvalSol(), SCIPexprtreeEvalIntLocalBounds(), and SCIPexprtreeEvalIntGlobalBounds() have been renamed to SCIPevalExprtreeSol(),
6815  * SCIPevalExprtreeLocalBounds(), and SCIPevalExprtreeGlobalBounds() and are now located in scip.h.
6816  * - Various types and functions dealing with polynomial expressions have been renamed to use the proper terms "monomial" and "polynomial".
6817  * - The methods SCIPnlpGetObjective(), SCIPnlpGetSolVals(), and SCIPnlpGetVarSolVal() have been removed, use SCIPgetNLPObjval(), SCIPvarGetNLPSol()
6818  * and SCIPcreateNLPSol() to retrieve NLP solution values instead.
6819  * - Removed methods SCIPmarkRequireNLP() and SCIPisNLPRequired(), because the NLP is now always constructed if nonlinearities are present.
6820  * - SCIPgetNLP() has been removed and NLP-methods from pub_nlp.h have been moved to scip.h, which resulted in some renamings, too.
6821  * - The functions SCIPnlpiGetSolution() and SCIPnlpiSetInitialGuess() got additional arguments to get/set dual values.
6822  * - The method SCIPgetNLPI() got a new parameter "nlpiproblem", which is a pointer to store the NLP solver interface problem.
6823  *
6824  * - <b>Others</b>:
6825  * <br>
6826  * <br>
6827  * - 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
6828  * the given variable is contained in the given hash map.
6829  * - Removed method SCIPreadSol(); call solution reading via SCIPreadProb() which calls the solution reader for .sol files.
6830  * - SCIPchgVarType() got an extra boolean parameter to store if infeasibility is recognized while upgrading a variable from continuous type to an integer type.
6831  * - SCIPdelVar() got a new parameter "deleted", which stores whether the variable was successfully marked to be deleted.
6832  * - SCIPcalcNodeselPriority() got a new parameter "branchdir", which defines the type of branching that was performed: upwards, downwards, or fixed.
6833  * - The parameters "timelimit" and "memorylimit" were removed from SCIPapplyRens().
6834  *
6835  * <br>
6836  * @section MISCELLANEOUS5 Miscellaneous
6837  *
6838  * - The result value SCIP_NEWROUND has been added, it allows a separator/constraint handler to start a new separation round
6839  * (without previous calls to other separators/conshdlrs).
6840  * - All timing flags are now defined type_timing.h.
6841  * - The variable deletion event is now a variable specific event and not global, anymore.
6842  * - The emphasis setting types now distinguish between plugin-type specific parameter settings (default, aggressive, fast, off), which are changed by
6843  * SCIPsetHeuristics/Presolving/Separating(), and global emphasis settings (default, cpsolver, easycip, feasibility, hardlp, optimality, counter),
6844  * which can be set using SCIPsetEmphasis().
6845  *
6846  * <br>
6847  * For further release notes we refer to the \ref RELEASENOTES "Release notes".
6848  */
6849 
6850  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
6851  /**@page CHG6 Interface changes between SCIP 2.1 and SCIP 3.0
6852  *
6853  *
6854  * @section CHGCALLBACKS6 New and changed callbacks
6855  *
6856  * - <b>Conflict Analysis</b>:
6857  * <br>
6858  * <br>
6859  * - Added parameter "relaxedbds" to conflict handler callback method SCIP_DECL_CONFLICTEXEC(). This array contains
6860  * bounds which are sufficient to create a valid conflict
6861  *
6862  * - <b>Constraint Handler</b>:
6863  * <br>
6864  * <br>
6865  * - New optional callback methods in constraint handlers: SCIP_DECL_CONSGETVARS and SCIP_DECL_CONSGETNVARS.
6866  * These callbacks, if implemented, should return an array of all variables and the number of all variables used
6867  * by the given constraint, respectively. (This method might, e.g., be called by a presolver)
6868  * - Added a propagation timing parameter "proptiming" to SCIP_DECL_CONSPROP(), giving the current timing at which
6869  * this method is called
6870  * - Added a parameter 'restart' to the SCIP_DECL_CONSEXITSOL() callback method, indicating whether this call was
6871  * triggered by a restart.
6872  * - Added a parameter 'relaxedbd' to SCIP_DECL_CONSRESPROP() callback method. If explaining a given bound change
6873  * (index), it is sufficient to explain the reason for reaching the 'relaxedbd' value, see above
6874  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_CONSINITPRE() and
6875  * SCIP_DECL_CONSEXITPRE() callback methods. It is not allowed to determine unboundedness or infeasibility in
6876  * these callbacks, anymore.
6877  *
6878  * - <b>Message Handler</b>:
6879  * <br>
6880  * <br>
6881  * - New callback method SCIP_DECL_MESSAGEHDLRFREE() which is called when the message handler is freed.
6882  * - The old callback method SCIP_DECL_MESSAGEERROR() was replaced by the callback method SCIP_DECL_ERRORPRINTING().
6883  *
6884  * - <b>Presolving</b>:
6885  * <br>
6886  * <br>
6887  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_PRESOLINITPRE() and
6888  * SCIP_DECL_PRESOLSEXITPRE(). It is not allowed to determine unboundedness or infeasibility in these
6889  * callbacks, anymore.
6890  *
6891  * - <b>Propagator</b>:
6892  * <br>
6893  * <br>
6894  * - Added a propagation timing parameter "proptiming" to SCIP_DECL_PROPEXEC(), giving the
6895  * current timing at which this method is called.
6896  * - Added a parameter 'restart' to SCIP_DECL_PROPEXITSOL() callback method, indicating whether this call was
6897  * triggered by a restart.
6898  * - Added a parameter 'relaxedbd' to SCIP_DECL_PROPRESPROP() callback method. If explaining a given bound change
6899  * (index), it is sufficient to explain the reason for reaching the 'relaxedbd' value.
6900  * - Removed parameters "isunbounded", "isinfeasible" and "result" from SCIP_DECL_PROPINITPRE() and
6901  * SCIP_DECL_PROPEXITPRE() callback methods. It is not allowed to determined unboundedness or infeasibility in
6902  * these callbacks, anymore.
6903  *
6904  * - <b>NLP Solver Interface</b>:
6905  * <br>
6906  * <br>
6907  * - New NLPI callback SCIP_DECL_NLPISETMESSAGEHDLR() to set message handler in NLP solver interfaces.
6908  *
6909  * <br>
6910  * @section CHGINTERFUNC6 Changed interface methods
6911  *
6912  * - <b>Plugin management</b>:
6913  * <br>
6914  * <br>
6915  * - Added basic include methods for almost all plugin types, e.g., SCIPincludeConshdlrBasic();
6916  * these methods should make the usage easier, sparing out optional callbacks and parameters.
6917  * - To extend the basic functionalities, there are setter method to add
6918  * optional callbacks. For example SCIPsetConshdlrParse(), SCIPsetPropCopy() or SCIPsetHeurInitsol().
6919  *
6920  * - <b>Constraint Handlers</b>:
6921  * <br>
6922  * <br>
6923  * - Added basic creation methods for all constraints types, e.g., SCIPcreateConsBasicLinear(); these methods should make the usage easier,
6924  * sparing out optional callbacks and parameters.
6925  * - New methods SCIPgetConsVars() and SCIPgetConsNVars() (corresponding callbacks need to be implemented, see above)
6926  *
6927  * - <b>Problem</b>:
6928  * <br>
6929  * <br>
6930  * - Added basic creation methods SCIPcreateVarBasic() and SCIPcreateProbBasic() and setter functions
6931  * - Added method SCIPisPresolveFinished() which returns whether the presolving process would be stopped after the
6932  * current presolving round, given no further reductions will be found.
6933  * - Forbid problem modifications in SCIP_STAGE_{INIT,EXIT}PRESOLVE (see pre-conditions for corresponding methods in scip.h).
6934  *
6935  * - <b>Variable usage</b>:
6936  * <br>
6937  * <br>
6938  * - Renamed SCIPvarGetBestBound() to SCIPvarGetBestBoundLocal(), SCIPvarGetWorstBound() to
6939  * SCIPvarGetWorstBoundLocal() and added new methods SCIPvarGetBestBoundGlobal() and SCIPvarGetWorstBoundGlobal().
6940  * - Method SCIPvarGetProbvarSum() is not public anymore, use SCIPgetProbvarSum() instead.
6941  * - Replaced method SCIPvarGetRootRedcost() by SCIPvarGetBestRootRedcost().
6942  *
6943  * - <b>Message Handler</b>:
6944  * <br>
6945  * <br>
6946  * - Changed the message handler system within SCIP heavily such that it is thread-safe. SCIPcreateMessagehdlr() in
6947  * scip.{c,h} was replaced by SCIPmessagehdlrCreate() in pub_message.h/message.c with a changed parameter list.
6948  * - Error messages (SCIPerrorMessage()) are not handled via the message handler anymore; per default the error
6949  * message is written to stderr.
6950  *
6951  * - <b>Separation</b>:
6952  * <br>
6953  * <br>
6954  * - New functions SCIPcreateEmptyRowCons(), SCIPcreateEmptyRowSepa(), SCIPcreateRowCons(), and SCIPcreateRowSepa()
6955  * that allow to set the originating constraint handler or separator of a row respectively; this is, for instance,
6956  * needed for statistics on the number of applied cuts. If rows are created outside a constraint handler or separator
6957  * use SCIPcreateRowUnspec() and SCIPcreateEmptyRowUnspec(). The use of SCIPcreateEmptyRow() and SCIPcreateRow() is
6958  * deprecated.
6959  * - New functions SCIProwGetOrigintype(), SCIProwGetOriginCons(), and SCIProwGetOriginSepa() to obtain the originator
6960  * that created a row.
6961  *
6962  * - <b>LP interface</b>:
6963  * <br>
6964  * <br>
6965  * - SCIPlpiCreate() got a new parameter 'messagehdlr'.
6966  * - SoPlex LPI supports setting of SCIP_LPPAR_DUALFEASTOL when using SoPlex version 1.6.0.5 and higher.
6967  *
6968  * - <b>Nonlinear expressions, relaxation, and solver interface</b>:
6969  * <br>
6970  * <br>
6971  * - Renamed SCIPmarkNonlinearitiesPresent() to SCIPenableNLP() and SCIPhasNonlinearitiesPresent() to
6972  * SCIPisNLPEnabled().
6973  * - Method SCIPexprtreeRemoveFixedVars() is not public anymore.
6974  *
6975  * - <b>Counting</b>:
6976  * <br>
6977  * <br>
6978  * - Changed the counting system within SCIP heavily. SPARSESOLUTION was renamed to SCIP_SPARSESOL. New method for
6979  * SCIP_SPARSESOL usage, SCIPsparseSolCreate(), SCIPsparseSolFree(), SCIPsparseSolGetVars(),
6980  * SCIPsparseSolGetNVars(), SCIPsparseSolGetLbs(), SCIPsparseSolGetUbs() in (pub_)misc.{c,h}.
6981  * - Renamed SCIPgetCountedSparseSolutions() to SCIPgetCountedSparseSols() in cons_countsols.{c,h}.
6982  *
6983  * <br>
6984  * @section MISCELLANEOUS6 Miscellaneous
6985  *
6986  * - Replaced SCIPparamSet*() by SCIPchg*Param() (where * is either Bool, Int, Longint, Real, Char, or String).
6987  * - New parameter in SCIPcopy() and SCIPcopyPlugins() to indicate whether the message handler from the source SCIP
6988  * should be passed to the target SCIP (only the pointer is copied and the usage counter of the message handler is
6989  * increased).
6990  * - SCIPprintCons() does not print termination symbol ";\n" anymore; if wanted, use SCIPinfoMessage() to print
6991  * ";\n" manually
6992  * - All objscip *.h file now use the default SCIP interface macros.
6993  * - The methods SCIPsortedvecInsert*() have an additional parameter which can be used to receive the position where
6994  * the new element was inserted.
6995  * - New macro SCIPdebugPrintCons() to print constraint only if SCIP_DEBUG flag is set.
6996  *
6997  * <br>
6998  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
6999  */
7000 
7001  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
7002  /**@page CHG7 Interface changes between SCIP 3.0 and SCIP 3.1
7003  *
7004  *
7005  * @section CHGCALLBACKS7 New and changed callbacks
7006  *
7007  * - <b>Branching Rules</b>:
7008  * <br>
7009  * <br>
7010  * - new possible return value "SCIP_DIDNOTFIND" for SCIP_DECL_BRANCHEXECLP(), SCIP_DECL_BRANCHEXECPS(), and
7011  * SCIP_DECL_BRANCHEXECEXT() callbacks to state that the branching rule searched, but did not find a branching.
7012  *
7013  * - <b>Domain Propagation</b>:
7014  * <br>
7015  * <br>
7016  * - added parameter "nmarkedconss" to SCIP_DECL_CONSPROP() callback which gives the number of constraints marked
7017  * for propagation (these constraints are listed first in the conss array given as parameter).
7018  *
7019  * - <b>Message Handler</b>:
7020  * <br>
7021  * <br>
7022  * - New generic messagehandler output callback method SCIP_DECL_MESSAGEOUTPUTFUNC().
7023  * - Removed parameter "msglength" from callback method SCIP_DECL_ERRORPRINTING().
7024  *
7025  * - <b>Variable Pricers</b>:
7026  * <br>
7027  * <br>
7028  * - Added parameter "stopearly" to callback method SCIP_DECL_PRICERREDCOST(). This boolean pointer should be used
7029  * by the pricer to state whether early branching should be performed, even if new variables were added in the
7030  * current pricing round.
7031  *
7032  * - <b>Primal Heuristics</b>:
7033  * <br>
7034  * <br>
7035  * - Added parameter "nodeinfeasible" to SCIP_DECL_HEUREXEC() callback which states whether the current subproblem
7036  * was already detected to be infeasible. In this case, the current LP solution might not respect local bounds,
7037  * and the heuristic must not assume that it does.
7038  *
7039  *
7040  * <br>
7041  * @section CHGINTERFUNC7 Changed interface methods
7042  *
7043  * - <b>Branching Rules</b>:
7044  * <br>
7045  * <br>
7046  * - Added parameter "nfracimplvars" to SCIPgetLPBranchCands()
7047  *
7048  * - <b>Constraint Handlers</b>:
7049  * <br>
7050  * <br>
7051  * - New method SCIPconshdlrGetStrongBranchPropTime() which returns the time used for domain propagation methods
7052  * of the constraint handler during strong branching.
7053  * - New method SCIPconsIsMarkedPropagate() which returns whether a constraint is marked for propagation.
7054  * - New methods SCIPconsAddUpgradeLocks() and SCIPconsGetNUpgradeLocks() to increase or get the number of upgrade
7055  * locks of a constraint.
7056  *
7057  * - <b>Domain Propagation</b>:
7058  * <br>
7059  * <br>
7060  * - New method SCIPpropGetStrongBranchPropTime() which returns the time spent by a domain propagator during strong
7061  * branching.
7062  * - New methods SCIPmarkConsPropagate() and SCIPunmarkConsPropagate to (un)mark a constraint for propagation.
7063  *
7064  * - <b>LP and Cutting Planes</b>:
7065  * <br>
7066  * <br>
7067  * - New methods SCIProwChgRank() and SCIProwGetRank() to change and get the rank of a cutting plane, respectively.
7068  * - Added parameter "sidetypes" to SCIPcalcMIR() to specify the specify row side type to be used.
7069  * - Added parameter "cutrank" to SCIPcalcMIR() and SCIPcalcStrongCG() which stores the rank of the returned cut.
7070  * - New method SCIPisCutApplicable() which returns whether a cut is good enough to be applied.
7071  * - Added parameter "infeasible" to SCIPaddCut() which is a pointer to store whether the cut is infeasible for the
7072  * local bounds.
7073  * - delayed cutpool
7074  * - New methods SCIPchgRowLhsDive() and SCIPchgRowRhsDive() to change left and right hand side of a row during diving.
7075  * - Added parameter "cutoff" to SCIPsolveDiveLP(), SCIPsolveProbingLP(), and SCIPsolveProbingLPWithPricing()
7076  * which is a pointer to store whether the diving/probing LP was infeasible or the objective limit was reached.
7077  *
7078  * - <b>Message Handler</b>:
7079  * <br>
7080  * <br>
7081  * - New method SCIPmessageVPrintError() to print an error message.
7082  * - Removed method SCIPmessagePrintWarningHeader().
7083  *
7084  * - <b>Parameters</b>:
7085  * <br>
7086  * <br>
7087  * - New method SCIPparamGetCharAllowedValues() to get the allowed values for a char parameter.
7088  *
7089  * - <b>Variables</b>:
7090  * <br>
7091  * <br>
7092  * - New structure to store value-based branching and inference history (see pub_history.h).
7093  * - New method SCIPvarGetValuehistory() to get the value-based history of a variable.
7094  *
7095  * - <b>Data structures</b>:
7096  * <br>
7097  * <br>
7098  * - New method SCIPgmlWriteNodeWeight() to write a node section including weight to a .gml graph file.
7099  * - New methods SCIPsparseSolGetFirstSol() and SCIPsparseSolGetNextSol() to get the first sparse solution
7100  * or iterate over the sparse solutions, respectively.
7101  * - New methods in pub_misc.h to handle a (circular) queue, e.g., SCIPqueueCreate(), SCIPqueueFree(),
7102  * SCIPqueueInsert(), ...
7103  * - New methods for hash tables: SCIPhashtableRemoveAll(), SCIPhashtableGetNElements(), SCIPhashtableGetLoad()
7104  * - New methods in pub_misc.h to handle a resource activity, e.g., SCIPactivityCreate(), SCIPactivityFree(),
7105  * SCIPactivityGetVar(), SCIPactivityGetDemand() ...
7106  * - New methods for digraphs: SCIPdigraphResize() to resize the graph and SCIPdigraphSetNodeDatas() and
7107  * SCIPdigraphGetNodeDatas() to set and get the data attached to the nodes.
7108  *
7109  * - <b>Misc</b>:
7110  * <br>
7111  * <br>
7112  * - New method SCIPcopyOrig() to copy the original problem. Analoguosly, use SCIPcopyOrigProb(), SCIPcopyOrigVars(),
7113  * and SCIPcopyOrigConss() to copy original problem data, variables, or constraints, respectively.
7114  * - New method SCIPcopyImplicationsCliques() to copy implications and cliques to a copied SCIP instance.
7115  * - New method SCIPgetParam() to get the parameter with a given name.
7116  * - New method SCIPaddOrigObjoffset() to add an offset to the objective function.
7117  * - New method SCIPgetNCheckConss() which returns the number of checked constraints.
7118  * - Added parameter "endptr" to SCIPparseVar() which stores the final string position after parsing.
7119  * - Added parameter "enablepropagation" to SCIPstartStrongbranch(), which can be used to enable strong branching
7120  * with domain propagation.
7121  * - New method SCIPgetVarStrongbranchWithPropagation() which performs strong branching with propagation on a variable.
7122  * - New method SCIPwriteCliqueGraph() to write the clique graph.
7123  * - New method SCIPdoNotMultaggr() which returns whether multi-aggregation was disabled.
7124  * - Added parameter "lazyconss" to SCIPwriteMIP() to swith writing removable rows as lazy constraints.
7125  * - New method SCIPcreateFiniteSolCopy() to create a copy of a solution with infinite fixings removed.
7126  * - New method SCIPadjustImplicitSolVals() which sets implicit integer variables to an integer value in the given
7127  * solution without deteriorating its objective value.
7128  * - New method SCIPprintDualSol() which prints the dual solution for a pure LP (works only with preprocessing disabled).
7129  * - New method SCIPgetOpenNodesData() which returns all unprocessed nodes.
7130  * - New method SCIPgetFirstLPTime() and SCIPgetNRootFirstLPIterations() to return time and iterations for the first
7131  * LP solve and SCIPgetFirstLPDualboundRoot() and SCIPgetFirstLPLowerboundRoot() to return the first root LP dual and
7132  * lower bound.
7133  * - New method SCIPgetNLimSolsFound() returning the number of feasible primal solution respecting the objective limit.
7134  * - Added parameter "endline" to SCIPprintDisplayLine() to switch printing a newline symbol at the end of the line.
7135  *
7136  * <br>
7137  * @section MISCELLANEOUS7 Miscellaneous
7138  *
7139  * - Moved LP solver interfaces to subdirectory src/lpi.
7140  *
7141  * <br>
7142  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
7143  */
7144 
7145 
7146  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
7147  /**@page CHG8 Interface changes between SCIP 3.1 and SCIP 3.2
7148  *
7149  *
7150  * @section CHGCALLBACKS8 New and changed callbacks
7151  *
7152  * - <b>Branching Rules</b>:
7153  * - Added parameter "forcestrongbranch" to SCIPselectVarStrongBranching()
7154  * - Added parameter "executebranching" SCIPexecRelpscostBranching()
7155  * - Added parameter "presoltiming" to SCIPpropCumulativeCondition()
7156  *
7157  * <br>
7158  * - <b>Domain Propagation</b>:
7159  *
7160  * <br>
7161  * - <b>Message Handler</b>:
7162  *
7163  * <br>
7164  * - <b>Variable Pricers</b>:
7165  *
7166  * <br>
7167  * - <b>Primal Heuristics</b>:
7168  * - Added parameter "freesubscip" to SCIPapplyProximity()
7169  *
7170  * <br>
7171  * @section CHGINTERFUNC8 Changed interface methods
7172  *
7173  * <br>
7174  * - <b>Branching Rules</b>:
7175  *
7176  * <br>
7177  * - <b>Constraint Handlers</b>:
7178  * - Removed method SCIPconshdlrIsPresolvingDelayed()
7179  * - Removed method SCIPconshdlrWasPresolvingDelayed()
7180  * - Renamed method SCIPconshdlrGetPropTimingmask() to SCIPconshdlrGetPropTiming()
7181  *
7182  * <br>
7183  * - <b>Domain Propagation</b>:
7184  *
7185  * <br>
7186  * - <b>LP and Cutting Planes</b>:
7187  * - Added parameter "inds" to SCIPgetLPBInvRow()
7188  * - Added parameter "ninds" to SCIPgetLPBInvRow()
7189  * - Added parameter "inds" to SCIPgetLPBInvCol()
7190  * - Added parameter "ninds" to SCIPgetLPBInvCol()
7191  * - Added parameter "inds" to SCIPgetLPBInvARow()
7192  * - Added parameter "ninds" to SCIPgetLPBInvARow()
7193  * - Added parameter "inds" to SCIPgetLPBInvACol()
7194  * - Added parameter "ninds" to SCIPgetLPBInvACol()
7195  * - Added parameter "maxweight" to SCIPcalcMIR()
7196  * - Added parameter "weightinds" to SCIPcalcMIR()
7197  * - Added parameter "nweightinds" to SCIPcalcMIR()
7198  * - Added parameter "rowlensum" to SCIPcalcMIR()
7199  * - Added parameter "inds" to SCIPcalcStrongCG()
7200  * - Added parameter "ninds" to SCIPcalcStrongCG()
7201  *
7202  * <br>
7203  * - <b>Message Handler</b>:
7204  *
7205  * <br>
7206  * - <b>Parameters</b>:
7207  *
7208  * <br>
7209  * - <b>Variables</b>:
7210  * - Removed method SCIPvarGetNBinImpls()
7211  *
7212  * <br>
7213  * - <b>Data structures</b>:
7214  * - Renamed method SCIPdigraphGetNodeDatas() to SCIPdigraphGetNodeData()
7215  * - Renamed method SCIPdigraphSetNodeDatas() to SCIPdigraphSetNodeData()
7216  * - Renamed method SCIPdigraphGetSuccessorsDatas() to SCIPdigraphGetSuccessorsData()
7217  *
7218  * <br>
7219  * - <b>Misc</b>:
7220  * - Removed parameter "delaypos" from SCIPincludeConshdlr()
7221  * - Added parameter "presoltiming" to SCIPincludeConshdlr()
7222  * - Added parameter "consgetdivebdchgs" to SCIPincludeConshdlr()
7223  * - Removed parameter "delaypos" from SCIPsetConshdlrPresol()
7224  * - Added parameter "presoltiming" to SCIPsetConshdlrPresol()
7225  * - Removed parameter "delaypos" from SCIPincludePresol()
7226  * - Added parameter "presoltiming" to SCIPincludePresol()
7227  * - Removed parameter "delaypos" from SCIPincludePresolBasic()
7228  * - Added parameter "presoltiming" to SCIPincludePresolBasic()
7229  * - Removed parameter "presoldelay" from SCIPincludePresol()
7230  * - Removed parameter "presoltiming" from SCIPincludePresol()
7231  * - Removed parameter "presoldelay" from SCIPsetPropPresol()
7232  * - Removed parameter "presoltiming" from SCIPsetPropPresol()
7233  * - Added parameter "ndomredsdown" to SCIPgetVarStrongbranchWithPropagation()
7234  * - Added parameter "ndomredsup" to SCIPgetVarStrongbranchWithPropagation()
7235  * - Added parameter "isequation" to SCIPaddClique()
7236  * - Removed parameter "writeimplications" from SCIPwriteCliqueGraph()
7237  * - Removed method SCIPallocBufferSize()
7238  * - Removed method SCIPduplicateBufferSize()
7239  * - Removed method SCIPreallocBufferSize()
7240  * - Removed method SCIPfreeBufferSize()
7241  * - Removed method callback SCIPdialogExecConflictgraph()
7242  * <br>
7243  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
7244  */
7245 
7246 
7247 /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
7248  /**@page CHG9 Interface changes between SCIP 3.2 and SCIP 4.0
7249  *
7250  *
7251  * @section CHGCALLBACKS9 New and changed callbacks
7252  *
7253  * - <b>Constraint Handlers</b>:
7254  * - new optional callback CONSENFORELAX to enforce a relaxation solution, see \ref CONS
7255  * - added argument "infeasible" to CONSINITLP
7256  *
7257  * <br>
7258  * - <b>Concurrent SCIP</b>:
7259  * - extended interface to support concurrent solving mode
7260  *
7261  * <br>
7262  * - <b>Message Handler</b>:
7263  *
7264  * <br>
7265  * - <b>Variable Pricers</b>:
7266  *
7267  * <br>
7268  * - <b>Primal Heuristics</b>:
7269  *
7270  * <br>
7271  * @section CHGINTERFUNC9 Changed interface methods
7272  *
7273  * <br>
7274  * - <b>Copying</b>:
7275  * - added arguments "fixedvars", "fixedvals", "nfixedvars" to SCIPcopyVars()
7276  * - added arguments "fixedvars", "fixedvals", "nfixedvars" to SCIPcopyOrigVars()
7277  * - renamed argument "success" to valid in SCIPgetConsCopy()
7278  *
7279  * <br>
7280  * - <b>Parameters</b>:
7281  * - renamed method SCIPcheckBoolParam() to SCIPisBoolParamValid()
7282  * - renamed method SCIPcheckLongintParam() to SCIPisLongintParamValid()
7283  * - renamed method SCIPcheckRealParam() to SCIPisRealParamValid()
7284  * - renamed method SCIPcheckCharParam() to SCIPisCharParamValid()
7285  * - renamed method SCIPcheckStringParam() to SCIPisStringParamValid()
7286  *
7287  * <br>
7288  * - <b>Relaxators</b>:
7289  * - added argument "includeslp" to SCIPincludeRelax() and SCIPincludeRelaxBasic()
7290  *
7291  * <br>
7292  * - <b>Primal Heuristics</b>:
7293  * - introduced new type SCIP_HEURTIMING for primal heuristic timing masks
7294  * - changed type of argument "timingmask" from unsigned int to SCIP_HEURTIMING in SCIPincludeHeur(), SCIPincludeHeurBasic()
7295  * - added argument "initialseed" to SCIPcreateDiveset()
7296  * <br>
7297  * - <b>Reoptimization</b>:
7298  * - renamed function SCIPgetReopSolsRun() to SCIPgetReoptSolsRun()
7299  *
7300  * <br>
7301  * - <b>Variables</b>:
7302  * - Removed method SCIPvarGetNBinImpls()
7303  *
7304  * <br>
7305  * - <b>Conflict Analysis</b>:
7306  * - added arguments "conftype" and "iscutoffinvolved" to SCIPinitConflictAnalysis()
7307  *
7308  * <br>
7309  * - <b>Constraint Handlers</b>:
7310  * - added argument "infeasible" to SCIPinitlpCons()
7311  *
7312  * <br>
7313  * - <b>Nonlinear Relaxation</b>:
7314  * - added argument "curvature" to SCIPcreateNlRow()
7315  *
7316  * <br>
7317  * - <b>Solutions</b>:
7318  * - added argument "completely" to SCIPtrySol(), SCIPtrySolFree(), SCIPcheckSol()
7319  *
7320  * - <b>Hashmap and Hashtable</b>:
7321  * - removed function SCIPcalcHashtableSize() since not required anymore for SCIP_HASHTABLE and SCIP_HASHMAP
7322  * - based on the initial size SCIP_HASHTABLE and SCIP_HASHMAP choose an appropriate size internally to allow insertion of that many elements without resizing
7323  * - SCIP_MULTIHASH behaves like the old SCIP_HASHTABLE and SCIPcalcMultihashSize() should be used as replacement for SCIPcalcHashtableSize()
7324  *
7325  * <br>
7326  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
7327  */
7328 
7329  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
7330  /**@page CHG10 Interface changes between SCIP 4.0 and SCIP 5.0
7331  *
7332  *
7333  * @section CHGCALLBACKS10 New and changed callbacks
7334  *
7335  * - <b>New types</b>:
7336  * - added new abstract selection algorithm SCIP_BANDIT together with callbacks
7337  * - added new type SCIP_TABLE together with callbacks to output SCIP statistics
7338  * - added new types for symmetry handling
7339  *
7340  * - <b>Separation callbacks</b>:
7341  * - added parameter "allowlocal" to SCIP_DECL_SEPAEXECLP and SCIP_DECL_SEPAEXECSOL
7342  *
7343  * - <b>NLP callbacks</b>
7344  * - added parameter "dstatssize" to SCIP_DECL_NLPIDELVARSET and SCIP_DECL_NLPIDELCONSSET
7345  * - added parameter "objval" to SCIP_DECL_NLPIGETSOLUTION
7346  *
7347  *
7348  * <br>
7349  * @section CHGINTERFUNC10 Changed interface methods
7350  *
7351  * <br>
7352  * - <b>Cutting plane separation methods</b>:
7353  * - changed function signature of SCIPcalcMIR()
7354  * - changed function signature of SCIPcalcStrongCG()
7355  * - added parameter "allowlocal" to SCIPseparateSol()
7356  * - new method SCIPaddRow() to replace deprecated SCIPaddCut()
7357  * - removed parameter "scaling" from SCIPgetRowprepViolation()
7358  *
7359  * <br>
7360  * - <b>Relaxator methods</b>:
7361  * - removed parameter "includeslp" from SCIPincludeRelax()
7362  * - added parameter "includeslp" to SCIPmarkRelaxSolValid(), SCIPsetRelaxSolVals(), and SCIPsetRelaxSolValsSol()
7363  * - removed functions SCIPrelaxIncludesLp() and SCIPrelaxSetIncludesLp()
7364  * - replaced method SCIPgetRelaxFeastolFactor() by SCIPrelaxfeastol() and added SCIPchgRelaxfeastol()
7365  *
7366  * <br>
7367  * - <b>LP interface</b>:
7368  * - replaced LP parameters SCIP_LPPARAM_LOBJLIM and SCIP_LPPARAM_UOBJLIM by SCIP_LPPARAM_OBJLIM
7369  *
7370  * <br>
7371  * - <b>Branching rules</b>:
7372  * - removed parameter "allowaddcons" from SCIPselectVarPseudoStrongBranching(), SCIPselectVarStrongBranching(), and
7373  * SCIPincludeBranchruleRelpscost()
7374  *
7375  * <br>
7376  * - <b>Primal heuristics</b>:
7377  * - SCIPheurPassIndicator() has a new parameter which allows to pass the objective of the solution
7378  *
7379  * <br>
7380  * - <b>Constraint Handlers</b>:
7381  * - generalized SCIPcreateConsOrbitope() and SCIPcreateConsBasicOrbitope() method to three orbitope types (full, partitioning, packing)
7382  *
7383  * <br>
7384  * - <b>NLP interface</b>:
7385  * - added argument "dstatssize" to SCIPnlpiDelVarSet() and SCIPnlpiDelConsSet()
7386  * - added modifier const to "exprtree" argument of SCIPnlpiChgExprtree()
7387  * - added parameter "objval" to SCIPnlpiGetSolution()
7388  * - added argument "varnameslength" to SCIPexprParse()
7389  * - dropped NLP termination status "SCIP_NLPTERMSTAT_UOBJLIM"
7390  * - SCIPnlpStatisticsCreate() and SCIPnlpStatisticsFree() now require a pointer to the block memory as argument
7391  *
7392  * <br>
7393  * - <b>Data structures</b>:
7394  * - methods SCIPrandomCreate() and SCIPrandomFree() are no longer public and should be replaced
7395  * by SCIPcreateRandom() and SCIPfreeRandom(), respectively (the new methods respect
7396  * the global parameter "randomization/randomseedshift" automatically)
7397  * - methods SCIPdigraphCreate() and SCIPdigraphCopy() are no longer public and should be replaced
7398  * by SCIPcreateDigraph() and SCIPcopyDigraph(), respectively, which receive a \SCIP argument
7399  * and are more robust towards future interface changes
7400  *
7401  * <br>
7402  * - <b>Misc</b>:
7403  * - added parameter "copytables" to SCIPcopyPlugins()
7404  * - allowed SCIPgetNConss() in stage SCIP_STAGE_INITSOLVE
7405  * - SCIPsolveParallel() is deprecated; use SCIPsolveConcurrent() instead
7406  * - changed return type of SCIPcliqueGetId() from "int" to "unsigned int"
7407  * - removed SCIPvarGetCliqueComponentIdx(); the connectedness information
7408  * of the clique table is now stored as a SCIP_DISJOINTSET member of the clique table
7409  * and cannot be publicly accessed
7410  *
7411  * <br>
7412  * @section CHGPARAMS10 Changed parameters
7413  *
7414  * - fixed typo: "heuristics/completesol/maxunkownrate" has changed to "heuristics/completesol/maxunknownrate"
7415  * - removed parameters "constraints/{abspower,bivariate,nonlinear,quadratic,soc}/scaling"
7416  * - replaced "constraints/quadratic/disaggregate" by "constraints/quadratic/maxdisaggrsize" to bound
7417  * the total number of created constraints when disaggregating a quadratic constraint
7418  * - removed parameters "constraints/{abspower,bivariate,quadratic,nonlinear}/mincutefficacysepa",
7419  * "constraints/{abspower,bivariate,quadratic,nonlinear}/mincutefficacyenfofac", and "constraints/soc/minefficacy"
7420  * - removed parameters "conflict/usemir" and "conflict/prefermir"
7421  * - removed parameter "separating/feastolfac"
7422  * - removed parameter "separating/orthofac"
7423  * - parameter "separating/maxstallrounds" only applies to nodes in the tree (not the root node, anymore); use the new
7424  * parameter "separating/maxstallroundsroot" for the root node
7425  * - removed parameters "heuristics/clique/{multiplier,initseed}"
7426  * - replaced parameter "heuristics/{clique,vbounds}/minfixingrate" by "heuristics/{clique,vbounds}/minintfixingrate" and
7427  * "heuristics/{clique,vbounds}/minmipfixingrate", which check the fixing rate before LP solving and after sub-MIP presolve
7428  * - removed parameter "separating/cgmip/allowlocal" (use parameter passed to separation callback instead)
7429  * - removed parameter "separating/{gomory,strongcg}/maxweightrange"
7430  * - changed and removed several parameters for zerohalf separator
7431  * - moved parameters for flowcover and cmir separators to "separating/aggregation"
7432  *
7433  *
7434  * <br>
7435  * For further information we refer to the \ref RELEASENOTES "Release notes" and the \ref CHANGELOG "Changelog".
7436  */
7437 
7438  /*--+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
7439 
7440 /**@page COUNTER How to use SCIP to count/enumerate feasible solutions
7441  *
7442  * SCIP is capable of computing (count or enumerate) the number of feasible solutions of a given constraint integer
7443  * program. In case continuous variables are present, the number of feasible solutions for the projection to the
7444  * integral variables is counted/enumerated. This means, an assignment to the integer variables is counted if the
7445  * remaining problem (this is the one after fixing the integer variables w.r.t. to this assignment) is feasible.
7446  *
7447  * As a first step you have to load or create your problem in the usual way. In case of using the
7448  * interactive shell, you use the <code>read</code> command:
7449  *
7450  * <code>SCIP&gt; read &lt;file name&gt;</code>
7451  *
7452  * Afterwards you can count the number of feasible solution with the command <code>count</code>.
7453  *
7454  * <code>SCIP&gt; count</code>
7455  *
7456  * That means SCIP will count the number of solution but does not store (enumerate) them. If you are interested in that see
7457  * \ref COLLECTALLFEASEBLES.
7458  *
7459  * @note Since SCIP version 2.0.0 you do not have to worry about <tt>dual</tt> reductions anymore. These are
7460  * automatically turned off. The only thing you should switch off are restarts. These restarts can lead to a wrong
7461  * counting process. We recommend using the counting settings which can be set in the interactive shell as follows:
7462  *
7463  * <code>SCIP&gt; set emphasis counter</code>
7464  *
7465  * The SCIP callable library provides an interface method SCIPcount() which allows users to count the number of feasible
7466  * solutions to their problem. The method SCIPsetParamsCountsols(), which is also located in cons_countsols.h, loads the
7467  * predefined counting settings to ensure a safe count. The complete list of all methods that can be used for counting
7468  * via the callable library can be found in cons_countsols.h.
7469  *
7470  *
7471  * @section COUNTLIMIT Limit the number of solutions which should be counted
7472  *
7473  * It is possible to give a (soft) upper bound on the number solutions that should be counted. If this upper bound is
7474  * exceeded, SCIP will be stopped. The name of this parameter is <code>constraints/countsols/sollimit</code>. In
7475  * the interactive shell this parameter can be set as follows:
7476  *
7477  * <code>SCIP&gt; set constraints countsols sollimit 1000</code>
7478  *
7479  * In case you are using the callable library, this upper bound can be assigned by calling SCIPsetLongintParam() as follows:
7480  *
7481  * \code
7482  * SCIP_CALL( SCIPsetLongintParam( scip, "constraints/countsols/sollimit", 1000) );
7483  * \endcode
7484  *
7485  *
7486  * The reason why this upper bound is soft comes from the fact that, by default, SCIP uses a technique called unrestricted
7487  * subtree detection. Using this technique it is possible to detect several solutions at once. Therefore, it can happen
7488  * that the solution limit is exceeded before SCIP is stopped.
7489  *
7490  * @section COLLECTALLFEASEBLES Collect all feasible solution
7491  *
7492  * Per default SCIP only counts all feasible solutions. This means, these solutions are not stored. If you switch the
7493  * parameter <code>constraints/countsols/collect</code> to TRUE (the default value is FALSE) the detected solutions are
7494  * stored. Changing this parameter can be done in the interactive shell
7495  *
7496  * <code>SCIP&gt; set constraints countsols collect TRUE</code>
7497  *
7498  * as well as via the callable library
7499  *
7500  * \code
7501  * SCIP_CALL( SCIPsetBoolParam( scip, "constraints/countsols/collect", TRUE) );
7502  * \endcode
7503  *
7504  * @note The solution which are collected are stored w.r.t. the active variables. These are the variables which got not
7505  * removed during presolving.
7506  *
7507  * In case you are using the interactive shell you can write all collected solutions to a file as follows
7508  *
7509  * <code>SCIP&gt; write allsolutions &lt;file name&gt;</code>
7510  *
7511  * In that case the sparse solutions are unrolled and lifted back into the original variable space.
7512  *
7513  * The callable library provides a method which gives access to all collected sparse solutions. That is,
7514  * SCIPgetCountedSparseSolutions(). The sparse solutions you get are defined w.r.t. active variables. To get solutions
7515  * w.r.t. to the original variables. You have to do two things:
7516  *
7517  * -# unroll each sparse solution
7518  * -# lift each solution into original variable space by extending the solution by those variable which got removed
7519  * during presolving
7520  *
7521  * The get the variables which got removed during presolving, you can use the methods SCIPgetFixedVars() and
7522  * SCIPgetNFixedVars(). The method SCIPgetProbvarLinearSum() transforms given variables, scalars and constant to the
7523  * corresponding active variables, scalars and constant. Using this method for a single variable gives a representation
7524  * for that variable w.r.t. the active variables which can be used to compute the value for the considered solution (which
7525  * is defined w.r.t. active variables).
7526  *
7527  * For that complete procedure you can also check the source code of
7528  * \ref SCIP_DECL_DIALOGEXEC(SCIPdialogExecWriteAllsolutions) "SCIPdialogExecWriteAllsolutions()" cons_countsols.c which
7529  * does exactly that.
7530  *
7531  *
7532  * @section COUNTOPTIMAL Count number of optimal solutions
7533  *
7534  * If you are interested in counting the number of optimal solutions, this can be done with SCIP using the
7535  * <code>count</code> command by applying the following steps:
7536  *
7537  * -# Solve the original problem to optimality and let \f$c^*\f$ be the optimal value
7538  * -# Added the objective function as constraint with left and right hand side equal to \f$c^*\f$
7539  * -# load the adjusted problem into SCIP
7540  * -# use the predefined counting settings
7541  * -# start counting the number of feasible solutions
7542  *
7543  * If you do this, SCIP will collect all optimal solutions of the original problem.
7544  *
7545  */
7546 
7547 /**@page LICENSE License
7548  *
7549  * \verbinclude COPYING
7550  */
7551 
7552 /**@page FAQ Frequently Asked Questions (FAQ)
7553  * \htmlinclude faq.inc
7554  */
7555 
7556 /**@page RELEASENOTES Release notes
7557  *
7558  * Please consult the <a href="https://opus4.kobv.de/opus4-zib/frontdoor/index/index/docId/6629">release report</a> for version 5.0 that explains many of the new features in detail.
7559  *
7560  * \verbinclude SCIP-release-notes-5.0.1
7561  *
7562  * \verbinclude SCIP-release-notes-5.0
7563  *
7564  * A release report with an in-depth description of many of the new features in version 4.0 is available on <a href="http://www.optimization-online.org/DB_HTML/2017/03/5895.html">Optimization Online</a>.
7565  *
7566  * \verbinclude SCIP-release-notes-4.0.1
7567  *
7568  * \verbinclude SCIP-release-notes-4.0
7569  *
7570  * Please consult the <a href="http://nbn-resolving.de/urn:nbn:de:0297-zib-57675">release report</a> for version 3.2 that explains many of the new features in detail.
7571  *
7572  * \verbinclude SCIP-release-notes-3.2.1
7573  *
7574  * \verbinclude SCIP-release-notes-3.2
7575  *
7576  * \verbinclude SCIP-release-notes-3.1
7577  *
7578  * \verbinclude SCIP-release-notes-3.0.2
7579  *
7580  * \verbinclude SCIP-release-notes-3.0.1
7581  *
7582  * \verbinclude SCIP-release-notes-3.0
7583  *
7584  * \verbinclude SCIP-release-notes-2.1.1
7585  *
7586  * \verbinclude SCIP-release-notes-2.1
7587  *
7588  * \verbinclude SCIP-release-notes-2.0.2
7589  *
7590  * \verbinclude SCIP-release-notes-2.0.1
7591  *
7592  * \verbinclude SCIP-release-notes-2.0
7593  *
7594  * \verbinclude SCIP-release-notes-1.2
7595  *
7596  * \verbinclude SCIP-release-notes-1.1
7597  */
7598 
7599 /**@page CHANGELOG CHANGELOG
7600  *
7601  * \verbinclude CHANGELOG
7602  *
7603  */
7604 
7605 
7606 
7607 /**@page PARAMETERS List of all SCIP parameters
7608  *
7609  * This page list all parameters of the current SCIP version. This list can
7610  * easily be generated by SCIP via the interactive shell using the following command:
7611  *
7612  * <code>SCIP&gt; set save &lt;file name&gt;</code>
7613  *
7614  * or via the function call:
7615  *
7616  * <code>SCIP_CALL( SCIPwriteParams(scip, &lt;file name&gt;, TRUE, FALSE) );</code>
7617  *
7618  * \verbinclude parameters.set
7619  */
7620 
7621 /**@page INTERFACES Interfaces
7622  *
7623  * There are several ways of accessing the \SCIP Optimization Suite from other software packages or programming
7624  * platforms.
7625  *
7626  *
7627  * @section FILEFORMATS File formats
7628  *
7629  * The easiest way to load a problem into SCIP is via an input file, given in a format that SCIP can parse directly,
7630  * see \ref SHELL "the tutorial on how to use the interactive shell".
7631  * \SCIP is capable of reading more than ten different file formats, including formats for nonlinear
7632  * problems and constraint programs. This gives researchers from different communities an easy, first access to the
7633  * \SCIP Optimization Suite. See also the \ref AVAILABLEFORMATS "list of readable file formats".
7634  *
7635  * @section MODELLING Modeling languages and Matlab interface
7636  *
7637  * A natural way of formulating an optimization problem is to use a modeling language. Besides ZIMPL there are several
7638  * other modeling tools with a direct interface to \SCIP. These include <a href="http://dynadec.com/">Comet</a>, a
7639  * modeling language for constraint programming, <a href="http://www.ampl.com/">AMPL</a> and <a
7640  * href="http://www.gams.com/">GAMS</a>, which are well-suited for modeling mixed-integer linear and nonlinear
7641  * optimization problems, and <a href="https://projects.coin-or.org/Cmpl">CMPL</a> for mixed-integer linear problems.
7642  * The AMPL, GAMS, and ZIMPL interfaces are included in the \SCIP distribution, the GAMS interface originated <a
7643  * href="https://projects.coin-or.org/GAMSlinks">here</a>.
7644  *
7645  * With \SCIP 3.0, a first beta version of a functional MATLAB interface has been released. It supports solving MIPs
7646  * and LPs defined by Matlab's matrix and vector types. The <a href="http://www.i2c2.aut.ac.nz/Wiki/OPTI/index.php">OPTI
7647  * project</a> by Jonathan Currie provides an external MATLAB interface for the \SCIP Optimization Suite. On top of this,
7648  * <a href="http://users.isy.liu.se/johanl/yalmip/pmwiki.php?n=Main.HomePage">YALMIP</a> by Johan L&ouml;fberg provides a
7649  * free modeling language.
7650  *
7651  *
7652  * @section CPLUSPLUS C++ wrapper classes
7653  *
7654  * Since \SCIP is written in C, its callable library can be directly accessed from C++. If a user wants to program own
7655  * plugins in C++, there are wrapper classes for all different types of plugins available in the <code>src/objscip</code>
7656  * directory of the \SCIP standard distribution. SCIP provides several examples that were written in C++, see
7657  * \ref EXAMPLES "Examples" and select an example written in C++.
7658  *
7659  *
7660  * @section OTHER Interfaces for other programming languages
7661  *
7662  * Interfaces for other programming languages are developed and maintained independently from the SCIP Optimization Suite
7663  * on <a href="https://github.com/SCIP-Interfaces">GitHub</a> in order to provide extensions and patches faster
7664  * and to collaborate on them more easily. Besides the popular interfaces for Python and Java, there is also an interface
7665  * for Julia available. Contributions to these projects are very welcome.
7666  *
7667  * There are also several third-party python interfaces to the \SCIP Optimization Suite, e.g., <a
7668  * href="http://numberjack.ucc.ie/">NUMBERJACK</a> and <a
7669  * href="http://code.google.com/p/python-zibopt/">python-zibopt</a>. <a href="http://numberjack.ucc.ie/">NUMBERJACK</a>
7670  * is a constraint programming platform implemented in python. It supports a variety of different solvers, one of them
7671  * being the \SCIP Optimization Suite. <a href="http://code.google.com/p/python-zibopt/">python-zibopt</a> was developed
7672  * by Ryan J. O'Neil and is a python extension of the \SCIP Optimization Suite. <a
7673  * href="http://picos.zib.de/">PICOS</a> is a python interface for conic optimization, provided by Guillaume Sagnol.
7674  *
7675  *
7676  */
7677 
7678  /**@defgroup PUBLICAPI Public API of SCIP
7679  * @brief methods and headers of the public C-API of \SCIP
7680  *
7681  * \PUBLICAPIDESCRIPTION
7682  *
7683  *
7684  */
7685 
7686 /**@defgroup PUBLICCOREAPI Core API
7687  * @ingroup PUBLICAPI
7688  * @brief methods and headers of the plugin-independent C-API provided by the \SCIP header file scip.h.
7689  *
7690  * This module comprises methods provided by the header file scip.h. Including this header into a user-written extension
7691  * suffices to have all plugin-independent functionality of \SCIP available. Plugin-independent
7692  * user functionality includes the
7693  *
7694  * - creation of problems that \SCIP should solve
7695  * - fine-grained access to initiate the solving process of \SCIP
7696  * - access to all sorts of solving process statistics
7697  * - commonly used data structures and algorithms
7698  * - the management of plugins
7699  * - ...
7700  *
7701  * In order facilitate the navigation through the core API of \SCIP, it is structured into different modules.
7702  */
7703 
7704 /**@defgroup TYPEDEFINITIONS Type Definitions
7705  * @ingroup PUBLICCOREAPI
7706  * @brief type definitions and callback declarations
7707  *
7708  * This page lists headers which contain type definitions of callback methods.
7709  *
7710  * All headers below include the descriptions of callback methods of
7711  * certain plugins. For more detail see the corresponding header.
7712  */
7713 
7714 /**@defgroup PublicProblemMethods Problem Creation
7715  * @ingroup PUBLICCOREAPI
7716  * @brief methods to create a problem that \SCIP should solve
7717  *
7718  * This module summarizes the main methods needed to create a problem for \SCIP, and access its most important members:
7719  * - Declaring, adding, acessing, and changing variables of the problem
7720  * - Declaring, adding, acessing, and changing constraints of the problem
7721  * - Creating, adding, acessing, changing, and checking of solutions to the problem
7722  *
7723  * @note These core methods are not sufficient to create constraints of a certain type that is provided by the default plugins of \SCIP.
7724  * An example would be the creation of a linear constraint for which the methods provided by the
7725  * \ref cons_linear.h "linear constraint handler" must be used. Such methods are provided by the default plugins of \SCIP
7726  * and can be found in the \ref PUBLICPLUGINAPI.
7727  */
7728 
7729 /**@defgroup GeneralSCIPMethods SCIP
7730  * @ingroup PublicProblemMethods
7731  * @brief methods to manipulate a SCIP object
7732  */
7733 
7734 /**@defgroup GlobalProblemMethods Global Problem
7735  * @ingroup PublicProblemMethods
7736  * @brief methods to create, read and modify a global problem together with its callbacks
7737  */
7738 
7739 /**@defgroup PublicVariableMethods Problem Variables
7740  * @ingroup PublicProblemMethods
7741  * @brief public methods for problem variables
7742  */
7743 
7744 /**@defgroup PublicConstraintMethods Problem Constraints
7745  * @ingroup PublicProblemMethods
7746  * @brief Public methods for constraints
7747  */
7748 
7749 /**@defgroup PublicSolutionMethods Primal Solution
7750  * @ingroup PublicProblemMethods
7751  * @brief methods to create and change primal solutions of \SCIP
7752  */
7753 
7754 /**@defgroup CopyMethods Problem Copies
7755  * @ingroup PublicProblemMethods
7756  * @brief methods to copy problems between a source and a target \SCIP
7757  */
7758 
7759 
7760  /**@defgroup PublicSolveMethods Solving Process
7761  * @ingroup PUBLICCOREAPI
7762  * @brief methods to control the solving process of \SCIP
7763  *
7764  * This large group of methods and modules comprises the solving process related API of \SCIP. This includes
7765  *
7766  * -# changing parameters to control the solver behavior
7767  * -# access search tree related information
7768  * -# access relaxation information
7769  * -# access various solving process statistics
7770  * -# solve auxiliary relaxations and subproblems using LP/NLP diving or probing mode
7771  */
7772 
7773 /**@defgroup PublicSolvingStatsMethods Solving Statistics
7774  * @ingroup PublicSolveMethods
7775  * @brief methods to query statistics about the solving process
7776  */
7777 
7778 /**@defgroup ParameterMethods Parameter
7779  * @ingroup PublicSolveMethods
7780  * @brief methods to create, query, and print user parameters
7781  */
7782 
7783 /**@defgroup PublicEventMethods Event Handling
7784  * @ingroup PublicSolveMethods
7785  * @brief methods to create, catch, process, and drop events during the solving process of \SCIP
7786  *
7787  * Events can only be caught during the operation on the transformed problem.
7788  * Events on variables can only be caught for transformed variables.
7789  * If you want to catch an event for an original variable, you have to get the corresponding transformed variable
7790  * with a call to SCIPgetTransformedVar() and catch the event on the transformed variable.
7791  */
7792 
7793 /**@defgroup PublicLPMethods LP Relaxation
7794  * @ingroup PublicSolveMethods
7795  * @brief methods to build and access LP relaxation information
7796  * @see methods to interact with \ref PublicColumnMethods "LP columns" and \ref PublicRowMethods "LP rows"
7797  */
7798 
7799 /**@defgroup PublicColumnMethods LP Column
7800  * @ingroup PublicLPMethods
7801  * @brief public methods for LP columns
7802  */
7803 
7804 /**@defgroup PublicRowMethods LP Row
7805  * @ingroup PublicLPMethods
7806  * @brief methods for LP rows
7807  */
7808 
7809 /**@defgroup PublicCutMethods Cuts and Cutpools
7810  * @ingroup PublicLPMethods
7811  * @brief common methods used to manipulate, generate, and strengthen cuts and to organize the cutpool
7812  */
7813 
7814 /**@defgroup PublicLPDivingMethods LP Diving
7815  * @ingroup PublicLPMethods
7816  * @brief methods to initiate and conduct LP diving
7817  */
7818 
7819 /**@defgroup PublicNLPMethods NLP Relaxation
7820  * @ingroup PublicSolveMethods
7821  * @brief methods for the nonlinear relaxation
7822  */
7823 
7824 /**@defgroup PublicExpressionTreeMethods Expression (Tree)
7825  * @ingroup PublicNLPMethods
7826  * @brief methods for expressions and expression trees
7827  */
7828 
7829 /**@defgroup PublicNLRowMethods Nonlinear Rows
7830  * @ingroup PublicNLPMethods
7831  * @brief methods for the creation and interaction with rows of the NLP relaxation
7832  */
7833 
7834 /**@defgroup PublicNLPDiveMethods NLP Diving
7835  * @ingroup PublicNLPMethods
7836  * @brief methods to initiate and conduct NLP Diving
7837  */
7838 
7839 /**@defgroup PublicBranchingMethods Branching
7840  * @ingroup PublicSolveMethods
7841  * @brief methods for branching on LP solutions, relaxation solutions, and pseudo solutions
7842  *
7843  * @see \ref PublicVariableMethods "Public Variable methods" contains some typical variable branching score functions
7844  */
7845 
7846 /**@defgroup LocalSubproblemMethods Local Subproblem
7847  * @ingroup PublicSolveMethods
7848  * @brief methods to query information about or strengthen the problem at the current local search node
7849  */
7850 
7851 /**@defgroup PublicTreeMethods Search Tree
7852  * @ingroup PublicSolveMethods
7853  * @brief methods to query search tree related information
7854  * @see \ref PublicNodeMethods "Public methods for nodes"
7855  */
7856 
7857 /**@defgroup PublicNodeMethods Nodes
7858  * @ingroup PublicTreeMethods
7859  * @brief methods for nodes of the search tree of \SCIP
7860  */
7861 
7862 /**@defgroup PublicProbingMethods Probing
7863  * @ingroup PublicSolveMethods
7864  * @brief methods to initiate and control the probing mode of \SCIP
7865  */
7866 
7867 /**@defgroup PublicReoptimizationMethods Reoptimization
7868  * @ingroup PublicSolveMethods
7869  * @brief methods for reoptimization related tasks
7870  */
7871 
7872 
7873 /** @defgroup DataStructures Data Structures
7874  * @ingroup PUBLICCOREAPI
7875  * @brief commonly used data structures
7876  *
7877  * Below you find a list of available data structures
7878  */
7879 
7880 /** @defgroup DisjointSet Disjoint Set (Union Find)
7881  * @ingroup DataStructures
7882  * @brief weighted disjoint set (union find) data structure with path compression
7883  *
7884  * Weighted Disjoint Set is a data structure to quickly update and query connectedness information
7885  * between nodes of a graph. Disjoint Set is also known as Union Find.
7886  */
7887 
7888 /**@defgroup DirectedGraph Directed Graph
7889  * @ingroup DataStructures
7890  * @brief graph structure with common algorithms for directed and undirected graphs
7891  */
7892 
7893 /**@defgroup MiscellaneousMethods Miscellaneous Methods
7894  * @ingroup PUBLICCOREAPI
7895  * @brief commonly used methods from different categories
7896  *
7897  * Below you find a list of miscellaneous methods grouped by different categories
7898  */
7899 
7900 /**@defgroup PublicMemoryMethods Memory Management
7901  * @ingroup MiscellaneousMethods
7902  * @brief methods and macros to use the \SCIP memory management
7903  *
7904  * @see \ref MEMORY "Using the memory functions of SCIP" for more information
7905  */
7906 
7907 /**@defgroup PublicNonlinearMethods Nonlinear Data
7908  * @ingroup MiscellaneousMethods
7909  * @brief methods for nonlinear data
7910  */
7911 
7912 /**@defgroup PublicTimingMethods Timing
7913  * @ingroup MiscellaneousMethods
7914  * @brief methods for timing
7915  */
7916 
7917 /**@defgroup PublicBanditMethods Bandit Algorithms
7918  * @ingroup MiscellaneousMethods
7919  * @brief methods for bandit algorithms
7920  */
7921 
7922 
7923 
7924 /**@defgroup DebugSolutionMethods Debug Solution
7925  * @ingroup PUBLICCOREAPI
7926  * @brief methods to control the SCIP debug solution mechanism, see also \ref DEBUG
7927  */
7928 
7929 /**@defgroup MessageOutputMethods Messaging
7930  * @ingroup PUBLICCOREAPI
7931  * @brief message output methods
7932  */
7933 
7934 /**@defgroup PluginManagementMethods Methods for managing plugins
7935  * @ingroup PUBLICCOREAPI
7936  * @brief Methods for the inclusion and management of SCIP plugins and callback functions
7937  *
7938  */
7939 
7940 /**@defgroup PublicBranchRuleMethods Branching Rules
7941  * @ingroup PluginManagementMethods
7942  * @brief methods for branching rule plugins
7943  */
7944 
7945 /**@defgroup PublicCompressionMethods Tree Compression
7946  * @ingroup PluginManagementMethods
7947  * @brief public methods for tree compressions
7948  */
7949 
7950 /**@defgroup PublicConflictMethods Conflict Analysis
7951  * @ingroup PluginManagementMethods
7952  * @brief public methods related to conflict analysis
7953  */
7954 
7955 /**@defgroup PublicConshdlrMethods Constraint handlers
7956  * @ingroup PluginManagementMethods
7957  * @brief methods for constraint handlers
7958  */
7959 
7960 /**@defgroup PublicDialogMethods Dialogs
7961  * @ingroup PluginManagementMethods
7962  * @brief public methods for user interface dialogs
7963  */
7964 
7965 /**@defgroup PublicDisplayMethods Displays
7966  * @ingroup PluginManagementMethods
7967  * @brief methods for the inclusion and access of display plugins
7968  */
7969 
7970 /**@defgroup PublicEventHandlerMethods Event Handler
7971  * @ingroup PluginManagementMethods
7972  * @brief methods for event handlers
7973  */
7974 
7975 /**@defgroup PublicHeuristicMethods Primal Heuristics
7976  * @ingroup PluginManagementMethods
7977  * @brief methods for primal heuristic plugins
7978  */
7979 
7980 /**@defgroup PublicDivesetMethods Dive sets
7981  * @ingroup PublicSpecialHeuristicMethods
7982  * @brief methods for dive sets to control the generic diving algorithm
7983  */
7984 
7985 /**@defgroup PublicNodeSelectorMethods Node Selector
7986  * @ingroup PluginManagementMethods
7987  * @brief methods for node selector plugin management
7988  */
7989 
7990 /**@defgroup PublicPresolverMethods Presolver
7991  * @ingroup PluginManagementMethods
7992  * @brief methods for presolver plugins
7993  */
7994 
7995 /**@defgroup PublicPricerMethods Pricer
7996  * @ingroup PluginManagementMethods
7997  * @brief methods to include and access pricer plugins of \SCIP
7998  */
7999 
8000 /**@defgroup PublicPropagatorMethods Propagators
8001  * @ingroup PluginManagementMethods
8002  * @brief methods for propagator plugins
8003  */
8004 
8005 /**@defgroup PublicReaderMethods Reader
8006  * @ingroup PluginManagementMethods
8007  * @brief methods for the inclusion and access to reader plugins of \SCIP
8008  */
8009 
8010 /**@defgroup PublicRelaxatorMethods Relaxation Handlers
8011  * @ingroup PluginManagementMethods
8012  * @brief public methods for relaxation handlers
8013  */
8014 
8015 /**@defgroup PublicSeparatorMethods Separators
8016  * @ingroup PluginManagementMethods
8017  * @brief methods for separator plugins
8018  */
8019 
8020 /**@defgroup PublicTableMethods Tables
8021  * @ingroup PluginManagementMethods
8022  * @brief methods for the inclusion and access of statistics tables
8023  */
8024 
8025 /**@defgroup PublicConcsolverTypeMethods Concurrent Solver Types
8026  * @ingroup PluginManagementMethods
8027  * @brief methods for concurrent solver type plugins
8028  */
8029 
8030 /**@defgroup PublicNLPInterfaceMethods NLP interfaces
8031  * @ingroup PluginManagementMethods
8032  * @brief methods for the management of NLP interfaces
8033  */
8034 
8035 /**@defgroup PublicExternalCodeMethods External Codes
8036  * @ingroup PluginManagementMethods
8037  * @brief methods to access information about external codes used by \SCIP
8038  */
8039 
8040 /**@defgroup PublicParallelMethods Parallel Interface
8041  * @ingroup PUBLICCOREAPI
8042  * @brief methods to construct the parallel interface of \SCIP
8043  */
8044 
8045  /**@defgroup PUBLICPLUGINAPI Plugin API of SCIP
8046  * @ingroup PUBLICAPI
8047  * @brief core API extensions provided by the default plugins of \SCIP, includable via scipdefplugins.h.
8048  *
8049  * All default plugins of \SCIP, especially the default \ref CONSHDLRS "constraint handlers", provide
8050  * valuable extensions to the \ref PUBLICCOREAPI "core API" of \SCIP. These methods are made available
8051  * by including scipdefplugins.h to user-written extensions.
8052  *
8053  * For a better overview, this page lists all default plugin headers structured into modules based on their individual
8054  * topic.
8055  *
8056  * All of the modules listed below provide functions that are allowed to be used by user-written extensions of \SCIP.
8057  */
8058  /**@defgroup INTERNALAPI Internal API of SCIP
8059  * @brief internal API methods that should only be used by the core of \SCIP
8060  *
8061  * This page lists the header files of internal API methods. In contrast to the public API, these internal methods
8062  * should not be used by user plugins and extensions of SCIP. Please consult
8063  * \ref PUBLICCOREAPI "the Core API" and \ref PUBLICPLUGINAPI "Plugin API" for the complete API available to user plugins.
8064  *
8065  */
8066 
8067 /**@defgroup BRANCHINGRULES Branching Rules
8068  * @ingroup PUBLICPLUGINAPI
8069  * @brief methods and files provided by the default branching rules of \SCIP
8070  *
8071  * A detailed description what a branching rule does and how to add a branching rule to SCIP can be found
8072  * \ref BRANCH "here".
8073  */
8074 
8075 /**@defgroup BranchingRuleIncludes Inclusion methods
8076  * @ingroup BRANCHINGRULES
8077  * @brief methods to include specific branching rules into \SCIP
8078  *
8079  * This module contains methods to include specific branching rules into \SCIP.
8080  *
8081  * @note All default plugins can be included at once (including all branching rules) using SCIPincludeDefaultPlugins()
8082  *
8083  */
8084 
8085 /**@defgroup CONSHDLRS Constraint Handler
8086  * @ingroup PUBLICPLUGINAPI
8087  * @brief methods and files provided by the default constraint handlers of \SCIP
8088  *
8089  * A detailed description what a constraint handler does and how to add a constraint handler to SCIP can be found
8090  * \ref CONS "here".
8091  */
8092 
8093 /**@defgroup ConshdlrIncludes Inclusion methods
8094  * @ingroup CONSHDLRS
8095  * @brief methods to include specific constraint handlers into \SCIP
8096  *
8097  * This module contains methods to include specific constraint handlers into \SCIP.
8098  *
8099  * @note All default plugins can be included at once (including all default constraint handlers) using SCIPincludeDefaultPlugins()
8100  *
8101  */
8102 
8103 /**@defgroup DIALOGS Dialogs
8104  * @ingroup PUBLICPLUGINAPI
8105  * @brief methods and files provided by the default dialogs of \SCIP
8106  *
8107  * A detailed description what a dialog does and how to add a dialog to SCIP can be found
8108  * \ref DIALOG "here".
8109  */
8110 
8111 /**@defgroup DialogIncludes Inclusion methods
8112  * @ingroup DIALOGS
8113  * @brief methods to include specific dialogs into \SCIP
8114  *
8115  * This module contains methods to include specific dialogs into \SCIP.
8116  *
8117  * @note All default plugins can be included at once (including all default dialogs) using SCIPincludeDefaultPlugins()
8118  *
8119  */
8120 
8121 /**@defgroup DISPLAYS Displays
8122  * @ingroup PUBLICPLUGINAPI
8123  * @brief methods and files provided by the default displays (output columns) of \SCIP
8124  *
8125  * A detailed description what a display does and how to add a display to SCIP can be found
8126  * \ref DISP "here".
8127  *
8128  */
8129 
8130 /**@defgroup DisplayIncludes Inclusion methods
8131  * @ingroup DISPLAYS
8132  * @brief methods to include specific displays into \SCIP
8133  *
8134  * This module contains methods to include specific displays into \SCIP.
8135  *
8136  * @note All default plugins can be included at once (including all default displays) using SCIPincludeDefaultPlugins()
8137  *
8138  */
8139 
8140 /**@defgroup FILEREADERS File Readers
8141  * @ingroup PUBLICPLUGINAPI
8142  * @brief This page contains a list of all file readers which are currently available.
8143  *
8144  * @section AVAILABLEFORMATS List of readable file formats
8145  *
8146  * The \ref SHELL "interactive shell" and the callable library are capable of reading/parsing several different file
8147  * formats.
8148  *
8149  * <table>
8150  * <tr><td>\ref reader_cip.h "CIP format"</td> <td>for SCIP's constraint integer programming format</td></tr>
8151  * <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>
8152  * <tr><td>\ref reader_diff.h "DIFF format"</td> <td>for reading a new objective function for mixed-integer programs</td></tr>
8153  * <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>
8154  * <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>
8155  * <tr><td>\ref reader_lp.h "LP format"</td> <td>for mixed-integer (quadratically constrained quadratic) programs (CPLEX)</td></tr>
8156  * <tr><td>\ref reader_mps.h "MPS format"</td> <td>for mixed-integer (quadratically constrained quadratic) programs</td></tr>
8157  * <tr><td>\ref reader_opb.h "OPB format"</td> <td>for pseudo-Boolean optimization instances</td></tr>
8158  * <tr><td>\ref reader_osil.h "OSiL format"</td> <td>for mixed-integer nonlinear programs</td></tr>
8159  * <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>
8160  * <tr><td>\ref reader_sol.h "SOL format"</td> <td>for solutions; XML-format (read-only) or raw SCIP format</td></tr>
8161  * <tr><td>\ref reader_wbo.h "WBO format"</td> <td>for weighted pseudo-Boolean optimization instances</td></tr>
8162  * <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
8163  * programming problems [read only]</td></tr>
8164  * </table>
8165  *
8166  * @section ADDREADER How to add a file reader
8167  *
8168  * A detailed description what a file reader does and how to add a file reader to SCIP can be found
8169  * \ref READER "here".
8170  *
8171  */
8172 
8173 /**@defgroup FileReaderIncludes Inclusion methods
8174  * @ingroup FILEREADERS
8175  * @brief methods to include specific file readers into \SCIP
8176  *
8177  * This module contains methods to include specific file readers into \SCIP.
8178  *
8179  * @note All default plugins can be included at once (including all default file readers) using SCIPincludeDefaultPlugins()
8180  *
8181  */
8182 
8183 /**@defgroup PARALLEL Parallel interface methods
8184  * @ingroup INTERNALAPI
8185  * @brief headers and methods for the parallel interface of \SCIP
8186  *
8187  */
8188 
8189 /**@defgroup EXPRINTS Expression Interpreter
8190  * @ingroup PUBLICPLUGINAPI
8191  * @brief methods and files provided by the default expression interpreters of \SCIP
8192  *
8193  * A detailed description what a expression interpreter does and how to add a expression interpreter to SCIP can be found
8194  * \ref EXPRINT "here".
8195  */
8196 
8197 /**@defgroup ExprintIncludes Inclusion methods
8198  * @ingroup EXPRINTS
8199  * @brief methods to include specific expression interpreters into \SCIP
8200  *
8201  * This module contains methods to include specific expression interpreters into \SCIP.
8202  *
8203  * @note All default plugins can be included at once (including all default expression interpreters) using SCIPincludeDefaultPlugins()
8204  *
8205  */
8206 
8207 /**@defgroup FileReaderIncludes Inclusion methods
8208  * @ingroup FILEREADERS
8209  * @brief methods to include specific file readers into \SCIP
8210  *
8211  * This module contains methods to include specific file readers into \SCIP.
8212  *
8213  * @note All default plugins can be included at once (including all default file readers) using SCIPincludeDefaultPlugins()
8214  *
8215  */
8216 
8217 /**@defgroup LPIS LP Solver Interface
8218  * @ingroup PUBLICPLUGINLPI
8219  * @brief methods and files provided by the LP solver interface of \SCIP
8220  *
8221  * \SCIP uses external tools to solve LP relaxations. The communication
8222  * is realized through an LP interface.
8223  *
8224  * This page lists public interface methods that every LP interface provides.
8225  * Find the concrete implementation for your LP solver
8226  * under "src/lpi/".
8227  *
8228  * @see \ref LPI for a list of available LP solvers
8229  */
8230 
8231 /**@defgroup NODESELECTORS Node Selectors
8232  * @ingroup PUBLICPLUGINAPI
8233  * @brief methods and files provided by the default node selectors of \SCIP
8234  *
8235  * A detailed description what a node selector does and how to add a node selector to SCIP can be found
8236  * \ref NODESEL "here".
8237  */
8238 
8239 /**@defgroup NodeSelectorIncludes Inclusion methods
8240  * @ingroup NODESELECTORS
8241  * @brief methods to include specific node selectors into \SCIP
8242  *
8243  * This module contains methods to include specific node selectors into \SCIP.
8244  *
8245  * @note All default plugins can be included at once (including all default node selectors) using SCIPincludeDefaultPlugins()
8246  *
8247  */
8248 
8249 /**@defgroup NLPIS NLP Solver Interfaces
8250  * @ingroup PUBLICPLUGINAPI
8251  * @brief methods and files provided by the default NLP solver interfaces of \SCIP
8252  *
8253  * A detailed description what a NLP solver interface does and how to add a NLP solver interface to SCIP can be found
8254  * \ref NLPI "here".
8255  */
8256 
8257 /**@defgroup NLPIIncludes Inclusion methods
8258  * @ingroup NLPIS
8259  * @brief methods to include specific NLP solver interfaces into \SCIP
8260  *
8261  * This module contains methods to include specific NLP solver interfaces into \SCIP.
8262  *
8263  * @note All default plugins can be included at once (including all default NLP solver interfaces) using SCIPincludeDefaultPlugins()
8264  *
8265  */
8266 
8267 /**@defgroup PRESOLVERS Presolvers
8268  * @ingroup PUBLICPLUGINAPI
8269  * @brief methods and files provided by the default presolvers of \SCIP
8270  *
8271  * A detailed description what a presolver does and how to add a presolver to SCIP can be found
8272  * \ref PRESOL "here".
8273  */
8274 
8275 /**@defgroup PresolverIncludes Inclusion methods
8276  * @ingroup PRESOLVERS
8277  * @brief methods to include specific presolvers into \SCIP
8278  *
8279  * This module contains methods to include specific presolvers into \SCIP.
8280  *
8281  * @note All default plugins can be included at once (including all default presolvers) using SCIPincludeDefaultPlugins()
8282  *
8283  */
8284 
8285 /**@defgroup PRICERS Pricers
8286  * @ingroup PUBLICPLUGINAPI
8287  * @brief methods and files provided by the default pricers of \SCIP
8288  *
8289  * Per default there exist no variable pricer. A detailed description what a variable pricer does and how to add a
8290  * variable pricer to SCIP can be found \ref PRICER "here".
8291  */
8292 
8293 /**@defgroup PricerIncludes Inclusion methods
8294 * @ingroup PUBLICPLUGINAPI
8295 * @brief methods to include specific pricers into \SCIP
8296 *
8297 * This module contains methods to include specific pricers into \SCIP.
8298 *
8299 * @note All default plugins can be included at once using SCIPincludeDefaultPlugins(). There exists no pricer per default.
8300 * In order to see examples of variable pricers, please consult the \ref EXAMPLES "Coding Examples" of \SCIP.
8301 *
8302 */
8303 
8304 /**@defgroup PRIMALHEURISTICS Primal Heuristics
8305  * @ingroup PUBLICPLUGINAPI
8306  * @brief methods and files provided by the default primal heuristics of \SCIP
8307  *
8308  * A detailed description what a primal heuristic does and how to add a primal heuristic to SCIP can be found
8309  * \ref HEUR "here".
8310  */
8311 
8312 /**@defgroup PrimalHeuristicIncludes Inclusion methods
8313  * @ingroup PRIMALHEURISTICS
8314  * @brief methods to include specific primal heuristics into \SCIP
8315  *
8316  * This module contains methods to include specific primal heuristics into \SCIP.
8317  *
8318  * @note All default plugins can be included at once (including all default primal heuristics) using SCIPincludeDefaultPlugins()
8319  *
8320  */
8321 
8322 /**@defgroup PROPAGATORS Propagators
8323  * @ingroup PUBLICPLUGINAPI
8324  * @brief methods and files provided by the default propagators of \SCIP
8325  *
8326  * A detailed description what a propagator does and how to add a propagator to SCIP can be found
8327  * \ref PROP "here".
8328  */
8329 
8330 /**@defgroup PropagatorIncludes Inclusion methods
8331  * @ingroup PROPAGATORS
8332  * @brief methods to include specific propagators into \SCIP
8333  *
8334  * This module contains methods to include specific propagators into \SCIP.
8335  *
8336  * @note All default plugins can be included at once (including all default propagators) using SCIPincludeDefaultPlugins()
8337  *
8338  */
8339 
8340 /**@defgroup RELAXATORS Relaxation Handlers
8341  * @ingroup PUBLICPLUGINAPI
8342  * @brief methods and files provided by the default relaxation handlers of \SCIP
8343  *
8344  * A detailed description what a relaxation handler does and how to add a relaxation handler to SCIP can be found
8345  * \ref RELAX "here". Note that the linear programming relaxation is not implemented via the relaxation handler plugin.
8346  * Per default no relaxation handler exists in SCIP. However, there are two relaxation handlers in the
8347  * \ref RELAXATOR_MAIN "Relaxator example".
8348  */
8349 
8350 /**@defgroup SEPARATORS Separators
8351  * @ingroup PUBLICPLUGINAPI
8352  * @brief methods and files provided by the default separators of \SCIP
8353  *
8354  * A detailed description what a separator does and how to add a separator to SCIP can be found
8355  * \ref SEPA "here".
8356  */
8357 
8358 /**@defgroup SeparatorIncludes Inclusion methods
8359  * @ingroup SEPARATORS
8360  * @brief methods to include specific separators into \SCIP
8361  *
8362  * This module contains methods to include specific separators into \SCIP.
8363  *
8364  * @note All default plugins can be included at once (including all default separators) using SCIPincludeDefaultPlugins()
8365  *
8366  */
8367 
8368 /**@defgroup TABLES Tables
8369  * @ingroup PUBLICPLUGINAPI
8370  * @brief methods and files provided by the default statistics tables of \SCIP
8371  *
8372  * A detailed description what a table does and how to add a table to SCIP can be found
8373  * \ref TABLE "here".
8374  *
8375  */
8376 
8377 /**@defgroup TableIncludes Inclusion methods
8378  * @ingroup TABLES
8379  * @brief methods to include specific tables into \SCIP
8380  *
8381  * This module contains methods to include specific statistics tables into \SCIP.
8382  *
8383  * @note All default plugins can be included at once (including all default statisticstables) using SCIPincludeDefaultPlugins()
8384  *
8385  */
8386 
8387 /**@defgroup PublicToleranceMethods Computations With Tolerances
8388  * @ingroup NumericalMethods
8389  * @brief methods used by the majority of operations involving floating-point computations in \SCIP
8390  *
8391  * - query the numerical tolerances of \SCIP, as well as special values such as infinity.
8392  * - change tolerances inside relaxations
8393  * - epsilon-comparison methods for floating point numbers
8394  */