source: trunk/Clp/src/AbcDualRowPivot.cpp @ 1910

Last change on this file since 1910 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.1 KB
Line 
1/* $Id: AbcDualRowPivot.cpp 1910 2013-01-27 02:00:13Z stefan $ */
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#include "AbcSimplex.hpp"
8#include "AbcDualRowPivot.hpp"
9
10//#############################################################################
11// Constructors / Destructor / Assignment
12//#############################################################################
13
14//-------------------------------------------------------------------
15// Default Constructor
16//-------------------------------------------------------------------
17AbcDualRowPivot::AbcDualRowPivot () :
18  model_(NULL),
19  type_(-1)
20{
21 
22}
23
24//-------------------------------------------------------------------
25// Copy constructor
26//-------------------------------------------------------------------
27AbcDualRowPivot::AbcDualRowPivot (const AbcDualRowPivot & source) :
28  model_(source.model_),
29  type_(source.type_)
30{
31 
32}
33
34//-------------------------------------------------------------------
35// Destructor
36//-------------------------------------------------------------------
37AbcDualRowPivot::~AbcDualRowPivot ()
38{
39 
40}
41
42//----------------------------------------------------------------
43// Assignment operator
44//-------------------------------------------------------------------
45AbcDualRowPivot &
46AbcDualRowPivot::operator=(const AbcDualRowPivot& rhs)
47{
48  if (this != &rhs) {
49    type_ = rhs.type_;
50    model_ = rhs.model_;
51  }
52  return *this;
53}
54void
55AbcDualRowPivot::saveWeights(AbcSimplex * model, int /*mode*/)
56{
57  model_ = model;
58}
59// Recompute infeasibilities
60void 
61AbcDualRowPivot::recomputeInfeasibilities()
62{
63}
64void 
65AbcDualRowPivot::updatePrimalSolutionAndWeights(CoinIndexedVector & weightsVector,
66                                      CoinIndexedVector & updateColumn,
67                                                double theta)
68{
69  // finish doing weights
70  updateWeights2(weightsVector,updateColumn);
71  updatePrimalSolution(updateColumn,theta);
72}
73// checks accuracy and may re-initialize (may be empty)
74void
75AbcDualRowPivot::checkAccuracy()
76{
77}
78// Gets rid of all arrays
79void
80AbcDualRowPivot::clearArrays()
81{
82}
Note: See TracBrowser for help on using the repository browser.