Toggle navigation
SCIP Optimization Suite
SCIP
SoPlex
ZIMPL
UG
GCG
Documentation
SoPlex 6.0.3
SoPlex 5.0.2
SoPlex 4.0.2
SoPlex 3.1.0
SoPlex 3.0.1
SoPlex 2.2.1
SoPlex
Sequential object-oriented simPlex
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
soplex-repo
src
updatevector.cpp
Go to the documentation of this file.
1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
2
/* */
3
/* This file is part of the class library */
4
/* SoPlex --- the Sequential object-oriented simPlex. */
5
/* */
6
/* Copyright (C) 1996-2015 Konrad-Zuse-Zentrum */
7
/* fuer Informationstechnik Berlin */
8
/* */
9
/* SoPlex is distributed under the terms of the ZIB Academic Licence. */
10
/* */
11
/* You should have received a copy of the ZIB Academic License */
12
/* along with SoPlex; see the file COPYING. If not email to soplex@zib.de. */
13
/* */
14
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
15
16
#include "
updatevector.h
"
17
18
namespace
soplex
19
{
20
21
UpdateVector
&
UpdateVector::operator=
(
const
UpdateVector
& rhs)
22
{
23
if
(
this
!= &rhs)
24
{
25
theval
= rhs.
theval
;
26
thedelta
= rhs.
thedelta
;
27
DVector::operator=
(rhs);
28
29
assert(
UpdateVector::isConsistent
());
30
}
31
return
*
this
;
32
}
33
34
UpdateVector::UpdateVector
(
const
UpdateVector
& base)
35
:
DVector
( base )
36
, theval(base.theval)
37
, thedelta(base.thedelta)
38
{
39
assert(
UpdateVector::isConsistent
());
40
}
41
42
bool
UpdateVector::isConsistent
()
const
43
{
44
#ifdef ENABLE_CONSISTENCY_CHECKS
45
if
(
dim
() !=
thedelta
.
dim
())
46
return
MSGinconsistent
(
"UpdateVector"
);
47
48
return
DVector::isConsistent
() &&
thedelta
.
isConsistent
();
49
#else
50
return
true
;
51
#endif
52
}
53
}
// namespace soplex