changeset 1836:503a75f6b9bc

[project @ 1996-02-03 07:31:58 by jwe]
author jwe
date Sat, 03 Feb 1996 07:32:14 +0000
parents 12a94a17509d
children 33dc934c0e38
files liboctave/LPsolve.cc liboctave/LPsolve.h
diffstat 2 files changed, 25 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/LPsolve.cc	Sat Feb 03 07:28:51 1996 +0000
+++ b/liboctave/LPsolve.cc	Sat Feb 03 07:32:14 1996 +0000
@@ -1,7 +1,7 @@
 // LPsolve.cc                                                -*- C++ -*-
 /*
 
-Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
+Copyright (C) 1996 John W. Eaton
 
 This file is part of Octave.
 
--- a/liboctave/LPsolve.h	Sat Feb 03 07:28:51 1996 +0000
+++ b/liboctave/LPsolve.h	Sat Feb 03 07:32:14 1996 +0000
@@ -1,7 +1,7 @@
 // LPsolve.h                                               -*- C++ -*-
 /*
 
-Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
+Copyright (C) 1996 John W. Eaton
 
 This file is part of Octave.
 
@@ -36,26 +36,36 @@
 {
  public:
 
-  LPsolve (void) : LP ()
-    { set_default_options (); }
+  LPsolve (void)
+    : LP () { }
 
-  LPsolve (const ColumnVector& c) : LP (c)
-    { set_default_options (); }
+  LPsolve (const ColumnVector& c)
+    : LP (c) { }
 
-  LPsolve (const ColumnVector& c, const Bounds& b) : LP (c, b)
-    { set_default_options (); }
+  LPsolve (const ColumnVector& c, const Bounds& b)
+    : LP (c, b) { }
 
   LPsolve (const ColumnVector& c, const Bounds& b, const LinConst& lc)
-    : LP (c, b, lc) { set_default_options (); }
+    : LP (c, b, lc) { }
+
+  LPsolve (const ColumnVector& c, const LinConst& lc)
+    : LP (c, lc) { }
+
+  LPsolve (const LPsolve& a)
+    : LP (a) { }
 
-  LPsolve (const ColumnVector& c, const LinConst& lc) : LP (c, lc)
-    { set_default_options (); }
+  LPsolve& operator = (const LPsolve& a)
+    {
+      if (this != &a)
+	{
+	  LP::operator = (a);
+	}
+      return *this;
+    }
+
+  ~LPsolve (void) { }
 
   ColumnVector do_minimize (double& objf, int& inform, ColumnVector& lambda);
-
- private:
-
-  void set_default_options (void);
 };
 
 #endif