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

Last change on this file since 1878 was 1878, checked in by forrest, 7 years ago

minor changes to implement Aboca

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