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

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

formatting

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