1 | /* $Id: ClpPrimalColumnPivot.cpp 1665 2011-01-04 17:55:54Z lou $ */ |
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 | //------------------------------------------------------------------- |
27 | // Copy constructor |
28 | //------------------------------------------------------------------- |
29 | ClpPrimalColumnPivot::ClpPrimalColumnPivot (const ClpPrimalColumnPivot & source) : |
30 | model_(source.model_), |
31 | type_(source.type_), |
32 | looksOptimal_(source.looksOptimal_) |
33 | { |
34 | |
35 | } |
36 | |
37 | //------------------------------------------------------------------- |
38 | // Destructor |
39 | //------------------------------------------------------------------- |
40 | ClpPrimalColumnPivot::~ClpPrimalColumnPivot () |
41 | { |
42 | |
43 | } |
44 | |
45 | //---------------------------------------------------------------- |
46 | // Assignment operator |
47 | //------------------------------------------------------------------- |
48 | ClpPrimalColumnPivot & |
49 | ClpPrimalColumnPivot::operator=(const ClpPrimalColumnPivot& rhs) |
50 | { |
51 | if (this != &rhs) { |
52 | type_ = rhs.type_; |
53 | model_ = rhs.model_; |
54 | looksOptimal_ = rhs.looksOptimal_; |
55 | } |
56 | return *this; |
57 | } |
58 | void |
59 | ClpPrimalColumnPivot::saveWeights(ClpSimplex * model, int ) |
60 | { |
61 | model_ = model; |
62 | } |
63 | // checks accuracy and may re-initialize (may be empty) |
64 | |
65 | void |
66 | ClpPrimalColumnPivot::updateWeights(CoinIndexedVector *) |
67 | { |
68 | } |
69 | |
70 | // Gets rid of all arrays |
71 | void |
72 | ClpPrimalColumnPivot::clearArrays() |
73 | { |
74 | } |
75 | /* Returns number of extra columns for sprint algorithm - 0 means off. |
76 | Also number of iterations before recompute |
77 | */ |
78 | int |
79 | ClpPrimalColumnPivot::numberSprintColumns(int & ) const |
80 | { |
81 | return 0; |
82 | } |
83 | // Switch off sprint idea |
84 | void |
85 | ClpPrimalColumnPivot::switchOffSprint() |
86 | { |
87 | } |
88 | |