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

Last change on this file since 2030 was 1910, checked in by stefan, 7 years ago
  • add configure option --enable-aboca={1,2,3,4,yes,no}
  • compile Aboca source only if --enable-aboca set (instead of compiling empty source files)
  • fix svn properties
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1/* $Id: AbcPrimalColumnPivot.cpp 1910 2013-01-27 02:00:13Z forrest $ */
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#include "CoinPragma.hpp"
7
8#include "AbcSimplex.hpp"
9#include "AbcPrimalColumnPivot.hpp"
10
11//#############################################################################
12// Constructors / Destructor / Assignment
13//#############################################################################
14
15//-------------------------------------------------------------------
16// Default Constructor
17//-------------------------------------------------------------------
18AbcPrimalColumnPivot::AbcPrimalColumnPivot () :
19     model_(NULL),
20     type_(-1),
21     looksOptimal_(false)
22{
23
24}
25
26//-------------------------------------------------------------------
27// Copy constructor
28//-------------------------------------------------------------------
29AbcPrimalColumnPivot::AbcPrimalColumnPivot (const AbcPrimalColumnPivot & source) :
30     model_(source.model_),
31     type_(source.type_),
32     looksOptimal_(source.looksOptimal_)
33{
34
35}
36
37//-------------------------------------------------------------------
38// Destructor
39//-------------------------------------------------------------------
40AbcPrimalColumnPivot::~AbcPrimalColumnPivot ()
41{
42
43}
44
45//----------------------------------------------------------------
46// Assignment operator
47//-------------------------------------------------------------------
48AbcPrimalColumnPivot &
49AbcPrimalColumnPivot::operator=(const AbcPrimalColumnPivot& rhs)
50{
51     if (this != &rhs) {
52          type_ = rhs.type_;
53          model_ = rhs.model_;
54          looksOptimal_ = rhs.looksOptimal_;
55     }
56     return *this;
57}
58void
59AbcPrimalColumnPivot::saveWeights(AbcSimplex * model, int )
60{
61     model_ = model;
62}
63// checks accuracy and may re-initialize (may be empty)
64
65void
66AbcPrimalColumnPivot::updateWeights(CoinIndexedVector *)
67{
68}
69
70// Gets rid of all arrays
71void
72AbcPrimalColumnPivot::clearArrays()
73{
74}
75/* Returns number of extra columns for sprint algorithm - 0 means off.
76   Also number of iterations before recompute
77*/
78int
79AbcPrimalColumnPivot::numberSprintColumns(int & ) const
80{
81     return 0;
82}
83// Switch off sprint idea
84void
85AbcPrimalColumnPivot::switchOffSprint()
86{
87}
Note: See TracBrowser for help on using the repository browser.