00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #if !defined (octave_NLConst_h)
00024 #define octave_NLConst_h 1
00025
00026 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
00027 #pragma interface
00028 #endif
00029
00030 class ColumnVector;
00031
00032 #include "Bounds.h"
00033 #include "NLFunc.h"
00034
00035 class
00036 NLConst : public Bounds, public NLFunc
00037 {
00038 public:
00039
00040 NLConst (void)
00041 : Bounds (), NLFunc () { }
00042
00043 NLConst (int n)
00044 : Bounds (n), NLFunc () { }
00045
00046 NLConst (const ColumnVector& lb, const NLFunc f, const ColumnVector& ub)
00047 : Bounds (lb, ub), NLFunc (f) { }
00048
00049 NLConst (const NLConst& a)
00050 : Bounds (a.lb, a.ub), NLFunc (a.fun, a.jac) { }
00051
00052 NLConst& operator = (const NLConst& a)
00053 {
00054 if (this != &a)
00055 {
00056 Bounds::operator = (a);
00057 NLFunc::operator = (a);
00058 }
00059 return *this;
00060 }
00061
00062 ~NLConst (void) { }
00063
00064 private:
00065
00066 void error (const char *msg);
00067 };
00068
00069 #endif
00070
00071
00072
00073
00074
00075