comparison liboctave/LP.h @ 1835:12a94a17509d

[project @ 1996-02-03 07:16:15 by jwe]
author jwe
date Sat, 03 Feb 1996 07:28:51 +0000
parents 26411f9c7603
children 52e7bca8ce33
comparison
equal deleted inserted replaced
1834:46ab6238fa79 1835:12a94a17509d
1 // LP.h -*- C++ -*- 1 // LP.h -*- C++ -*-
2 /* 2 /*
3 3
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton 4 Copyright (C) 1996 John W. Eaton
5 5
6 This file is part of Octave. 6 This file is part of Octave.
7 7
8 Octave is free software; you can redistribute it and/or modify it 8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the 9 under the terms of the GNU General Public License as published by the
45 : base_minimizer (), c (c_arg), bnds (b), lc (l) { } 45 : base_minimizer (), c (c_arg), bnds (b), lc (l) { }
46 46
47 LP (const ColumnVector& c_arg, const LinConst& l) 47 LP (const ColumnVector& c_arg, const LinConst& l)
48 : base_minimizer (), c (c_arg), lc (l) { } 48 : base_minimizer (), c (c_arg), lc (l) { }
49 49
50 LP (const LP& a)
51 : base_minimizer (a), c (a.c), bnds (a.bnds), lc (a.lc) { }
52
53 LP& operator = (const LP& a)
54 {
55 if (this != &a)
56 {
57 base_minimizer::operator = (a);
58
59 c = a.c;
60 bnds = a.bnds;
61 lc = a.lc;
62 }
63 return *this;
64 }
65
66 ~LP (void) { }
67
50 protected: 68 protected:
51 69
52 ColumnVector c; 70 ColumnVector c;
53 Bounds bnds; 71 Bounds bnds;
54 LinConst lc; 72 LinConst lc;