source: trunk/Clp/src/AbcPrimalColumnPivot.cpp @ 1878

Last change on this file since 1878 was 1878, checked in by forrest, 7 years ago

minor changes to implement Aboca

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