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

Last change on this file since 2030 was 1665, checked in by lou, 9 years ago

Add EPL license notice in src.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1/* $Id: ClpPrimalColumnPivot.cpp 1665 2011-01-04 17:55:54Z forrest $ */
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//-------------------------------------------------------------------
18ClpPrimalColumnPivot::ClpPrimalColumnPivot () :
19     model_(NULL),
20     type_(-1),
21     looksOptimal_(false)
22{
23
24}
25
26//-------------------------------------------------------------------
27// Copy constructor
28//-------------------------------------------------------------------
29ClpPrimalColumnPivot::ClpPrimalColumnPivot (const ClpPrimalColumnPivot & source) :
30     model_(source.model_),
31     type_(source.type_),
32     looksOptimal_(source.looksOptimal_)
33{
34
35}
36
37//-------------------------------------------------------------------
38// Destructor
39//-------------------------------------------------------------------
40ClpPrimalColumnPivot::~ClpPrimalColumnPivot ()
41{
42
43}
44
45//----------------------------------------------------------------
46// Assignment operator
47//-------------------------------------------------------------------
48ClpPrimalColumnPivot &
49ClpPrimalColumnPivot::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}
58void
59ClpPrimalColumnPivot::saveWeights(ClpSimplex * model, int )
60{
61     model_ = model;
62}
63// checks accuracy and may re-initialize (may be empty)
64
65void
66ClpPrimalColumnPivot::updateWeights(CoinIndexedVector *)
67{
68}
69
70// Gets rid of all arrays
71void
72ClpPrimalColumnPivot::clearArrays()
73{
74}
75/* Returns number of extra columns for sprint algorithm - 0 means off.
76   Also number of iterations before recompute
77*/
78int
79ClpPrimalColumnPivot::numberSprintColumns(int & ) const
80{
81     return 0;
82}
83// Switch off sprint idea
84void
85ClpPrimalColumnPivot::switchOffSprint()
86{
87}
Note: See TracBrowser for help on using the repository browser.