source: trunk/Clp/src/ClpPrimalColumnPivot.cpp @ 1525

Last change on this file since 1525 was 1525, checked in by mjs, 10 years ago

Formatted .cpp, .hpp, .c, .h files with "astyle -A4 -p". This matches the formatting used in the grand CBC reorganization.

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