source: branches/sandbox/Cbc/src/CbcChooseVariable.hpp @ 1357

Last change on this file since 1357 was 1357, checked in by coin, 10 years ago

run 'astyle -A4 -p' and dos2unix

File size: 1.0 KB
Line 
1/* $Id: CbcChooseVariable.hpp 1286 2009-11-09 23:33:07Z EdwinStraver $ */
2// Copyright (C) 2002, International Business Machines
3// Corporation and others.  All Rights Reserved.
4#ifndef CbcChooseVariable_H
5#define CbcChooseVariable_H
6
7/*  These can be alternative strategies for choosing variables
8    Any descendant can be passed in by setVariableChoice
9*/
10
11class CbcChooseVariable {
12public:
13    // Default Constructor
14    CbcChooseVariable () {}
15
16    virtual ~CbcChooseVariable() {}
17    /** If strong branching, then only those passed in (and movement is that length)
18        .  If not strong
19        branching then all passed in and ignore movement.
20        Returns which one chosen (or -1 if none).  way should be +1
21        if branching up, -1 if down */
22    virtual int chosen (const CbcModel * model, int numberToLookAt,
23                        const int * which, const double * downMovement,
24                        const double * upMovement, const double * solution,
25                        int & way, double & value) = 0;
26
27};
28
29#endif
Note: See TracBrowser for help on using the repository browser.