# HG changeset patch # User jwe # Date 823332734 0 # Node ID 503a75f6b9bc1e47743ac503eb0f2f8bf50a8c71 # Parent 12a94a17509d3367a8698ce0e62128cd608f850d [project @ 1996-02-03 07:31:58 by jwe] diff --git a/liboctave/LPsolve.cc b/liboctave/LPsolve.cc --- a/liboctave/LPsolve.cc +++ b/liboctave/LPsolve.cc @@ -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. diff --git a/liboctave/LPsolve.h b/liboctave/LPsolve.h --- a/liboctave/LPsolve.h +++ b/liboctave/LPsolve.h @@ -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