Scippy

UG

Ubiquity Generator framework

scipParaObjNodesel.h
Go to the documentation of this file.
1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2/* */
3/* This file is part of the program and software framework */
4/* UG --- Ubquity Generator Framework */
5/* */
6/* Copyright Written by Yuji Shinano <shinano@zib.de>, */
7/* Copyright (C) 2021-2024 by Zuse Institute Berlin, */
8/* licensed under LGPL version 3 or later. */
9/* Commercial licenses are available through <licenses@zib.de> */
10/* */
11/* This code is free software; you can redistribute it and/or */
12/* modify it under the terms of the GNU Lesser General Public License */
13/* as published by the Free Software Foundation; either version 3 */
14/* of the License, or (at your option) any later version. */
15/* */
16/* This program is distributed in the hope that it will be useful, */
17/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
18/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
19/* GNU Lesser General Public License for more details. */
20/* */
21/* You should have received a copy of the GNU Lesser General Public License */
22/* along with this program. If not, see <http://www.gnu.org/licenses/>. */
23/* */
24/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25
26/**@file scipParaObjNodesel.cpp
27 * @brief C++ wrapper for node selectors
28 * @author Yuji Shinano
29 */
30
31/*---+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0----+----1----+----2*/
32
33#ifndef __SCIP_PARA_OBJNODESEL_H__
34#define __SCIP_PARA_OBJNODESEL_H__
35
36#include <cstring>
37// #include "scipParaComm.h"
38#include "scipParaSolver.h"
39#include "objscip/objnodesel.h"
40#include "scip/scipdefplugins.h"
41
42namespace ParaSCIP
43{
44
45class ScipParaSolver;
46
47class ScipParaObjNodesel : public scip::ObjNodesel
48{
50
51 int getNBoundChanges(SCIP_NODE* node);
52
53public:
54 /** default constructor */
56 ScipParaSolver *solver
57 )
58 : scip::ObjNodesel::ObjNodesel(solver->getScip(), "ScipParaObjNodesel", "Node selector when a node is sent to LC",
59 0, 0), scipParaSolver(solver)
60 {
61 }
62
63 /** destructor */
65 {
66 }
67
68 /** node selection method of node selector
69 */
70 virtual SCIP_DECL_NODESELSELECT(scip_select);
71
72 /** node comparison method of node selector
73 */
74 virtual SCIP_DECL_NODESELCOMP(scip_comp);
75
76 void reset()
77 {
78 }
79
80};
81
82} /* namespace scip */
83
84#endif
ScipParaObjNodesel(ScipParaSolver *solver)
virtual SCIP_DECL_NODESELCOMP(scip_comp)
int getNBoundChanges(SCIP_NODE *node)
virtual SCIP_DECL_NODESELSELECT(scip_select)
ParaSolver extension for SCIP: Parallelized solver implementation for SCIP.