source: trunk/Clp/src/AbcDualRowPivot.cpp

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

formatting

  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1/* $Id: AbcDualRowPivot.cpp 2385 2019-01-06 19:43:06Z 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#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// Copy constructor
25//-------------------------------------------------------------------
26AbcDualRowPivot::AbcDualRowPivot(const AbcDualRowPivot &source)
27  : model_(source.model_)
28  , type_(source.type_)
29{
30}
31
32//-------------------------------------------------------------------
33// Destructor
34//-------------------------------------------------------------------
35AbcDualRowPivot::~AbcDualRowPivot()
36{
37}
38
39//----------------------------------------------------------------
40// Assignment operator
41//-------------------------------------------------------------------
42AbcDualRowPivot &
43AbcDualRowPivot::operator=(const AbcDualRowPivot &rhs)
44{
45  if (this != &rhs) {
46    type_ = rhs.type_;
47    model_ = rhs.model_;
48  }
49  return *this;
50}
51void AbcDualRowPivot::saveWeights(AbcSimplex *model, int /*mode*/)
52{
53  model_ = model;
54}
55// Recompute infeasibilities
56void AbcDualRowPivot::recomputeInfeasibilities()
57{
58}
59void AbcDualRowPivot::updatePrimalSolutionAndWeights(CoinIndexedVector &weightsVector,
60  CoinIndexedVector &updateColumn,
61  double theta)
62{
63  // finish doing weights
64  updateWeights2(weightsVector, updateColumn);
65  updatePrimalSolution(updateColumn, theta);
66}
67// checks accuracy and may re-initialize (may be empty)
68void AbcDualRowPivot::checkAccuracy()
69{
70}
71// Gets rid of all arrays
72void AbcDualRowPivot::clearArrays()
73{
74}
75
76/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
77*/
Note: See TracBrowser for help on using the repository browser.