1 | /* $Id: ClpPrimalColumnPivot.cpp 2385 2019-01-06 19:43:06Z stefan $ */ |
---|
2 | // Copyright (C) 2002, International Business Machines |
---|
3 | // Corporation and others. All Rights Reserved. |
---|
4 | // This code is licensed under the terms of the Eclipse Public License (EPL). |
---|
5 | |
---|
6 | #include "CoinPragma.hpp" |
---|
7 | |
---|
8 | #include "ClpSimplex.hpp" |
---|
9 | #include "ClpPrimalColumnPivot.hpp" |
---|
10 | |
---|
11 | //############################################################################# |
---|
12 | // Constructors / Destructor / Assignment |
---|
13 | //############################################################################# |
---|
14 | |
---|
15 | //------------------------------------------------------------------- |
---|
16 | // Default Constructor |
---|
17 | //------------------------------------------------------------------- |
---|
18 | ClpPrimalColumnPivot::ClpPrimalColumnPivot() |
---|
19 | : model_(NULL) |
---|
20 | , type_(-1) |
---|
21 | , looksOptimal_(false) |
---|
22 | { |
---|
23 | } |
---|
24 | |
---|
25 | //------------------------------------------------------------------- |
---|
26 | // Copy constructor |
---|
27 | //------------------------------------------------------------------- |
---|
28 | ClpPrimalColumnPivot::ClpPrimalColumnPivot(const ClpPrimalColumnPivot &source) |
---|
29 | : model_(source.model_) |
---|
30 | , type_(source.type_) |
---|
31 | , looksOptimal_(source.looksOptimal_) |
---|
32 | { |
---|
33 | } |
---|
34 | |
---|
35 | //------------------------------------------------------------------- |
---|
36 | // Destructor |
---|
37 | //------------------------------------------------------------------- |
---|
38 | ClpPrimalColumnPivot::~ClpPrimalColumnPivot() |
---|
39 | { |
---|
40 | } |
---|
41 | |
---|
42 | //---------------------------------------------------------------- |
---|
43 | // Assignment operator |
---|
44 | //------------------------------------------------------------------- |
---|
45 | ClpPrimalColumnPivot & |
---|
46 | ClpPrimalColumnPivot::operator=(const ClpPrimalColumnPivot &rhs) |
---|
47 | { |
---|
48 | if (this != &rhs) { |
---|
49 | type_ = rhs.type_; |
---|
50 | model_ = rhs.model_; |
---|
51 | looksOptimal_ = rhs.looksOptimal_; |
---|
52 | } |
---|
53 | return *this; |
---|
54 | } |
---|
55 | void ClpPrimalColumnPivot::saveWeights(ClpSimplex *model, int) |
---|
56 | { |
---|
57 | model_ = model; |
---|
58 | } |
---|
59 | // checks accuracy and may re-initialize (may be empty) |
---|
60 | |
---|
61 | void ClpPrimalColumnPivot::updateWeights(CoinIndexedVector *) |
---|
62 | { |
---|
63 | } |
---|
64 | |
---|
65 | // Gets rid of all arrays |
---|
66 | void ClpPrimalColumnPivot::clearArrays() |
---|
67 | { |
---|
68 | } |
---|
69 | /* Returns number of extra columns for sprint algorithm - 0 means off. |
---|
70 | Also number of iterations before recompute |
---|
71 | */ |
---|
72 | int ClpPrimalColumnPivot::numberSprintColumns(int &) const |
---|
73 | { |
---|
74 | return 0; |
---|
75 | } |
---|
76 | // Switch off sprint idea |
---|
77 | void ClpPrimalColumnPivot::switchOffSprint() |
---|
78 | { |
---|
79 | } |
---|
80 | |
---|
81 | /* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2 |
---|
82 | */ |
---|