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

Last change on this file since 2385 was 2385, checked in by unxusr, 4 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1/* $Id: ClpPrimalColumnPivot.cpp 2385 2019-01-06 19:43:06Z unxusr $ */
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// 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// Destructor
37//-------------------------------------------------------------------
38ClpPrimalColumnPivot::~ClpPrimalColumnPivot()
39{
40}
41
42//----------------------------------------------------------------
43// Assignment operator
44//-------------------------------------------------------------------
45ClpPrimalColumnPivot &
46ClpPrimalColumnPivot::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}
55void ClpPrimalColumnPivot::saveWeights(ClpSimplex *model, int)
56{
57  model_ = model;
58}
59// checks accuracy and may re-initialize (may be empty)
60
61void ClpPrimalColumnPivot::updateWeights(CoinIndexedVector *)
62{
63}
64
65// Gets rid of all arrays
66void ClpPrimalColumnPivot::clearArrays()
67{
68}
69/* Returns number of extra columns for sprint algorithm - 0 means off.
70   Also number of iterations before recompute
71*/
72int ClpPrimalColumnPivot::numberSprintColumns(int &) const
73{
74  return 0;
75}
76// Switch off sprint idea
77void ClpPrimalColumnPivot::switchOffSprint()
78{
79}
80
81/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
82*/
Note: See TracBrowser for help on using the repository browser.