annotate liboctave/NPSOL.h @ 1315:611d403c7f3d

[project @ 1995-06-25 19:56:32 by jwe]
author jwe
date Sun, 25 Jun 1995 19:56:32 +0000
parents f93b7fa5e113
children a6994c934a50
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
1 // NPSOL.h -*- C++ -*-
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
2 /*
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
3
1011
18933dbd5e43 [project @ 1995-01-04 04:18:15 by jwe]
jwe
parents: 882
diff changeset
4 Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
5
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
7
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
11 later version.
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
12
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
16 for more details.
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
17
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, write to the Free
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1296
diff changeset
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
21
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
22 */
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
23
382
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 296
diff changeset
24 #if !defined (octave_NPSOL_h)
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 296
diff changeset
25 #define octave_NPSOL_h 1
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 296
diff changeset
26
1296
f93b7fa5e113 [project @ 1995-05-01 18:30:08 by jwe]
jwe
parents: 1011
diff changeset
27 #if defined (__GNUG__)
f93b7fa5e113 [project @ 1995-05-01 18:30:08 by jwe]
jwe
parents: 1011
diff changeset
28 #pragma interface
f93b7fa5e113 [project @ 1995-05-01 18:30:08 by jwe]
jwe
parents: 1011
diff changeset
29 #endif
f93b7fa5e113 [project @ 1995-05-01 18:30:08 by jwe]
jwe
parents: 1011
diff changeset
30
645
21cb3c7dc9e3 [project @ 1994-08-24 06:19:54 by jwe]
jwe
parents: 461
diff changeset
31 #ifndef NPSOL_MISSING
21cb3c7dc9e3 [project @ 1994-08-24 06:19:54 by jwe]
jwe
parents: 461
diff changeset
32
461
00f8b2242a18 [project @ 1994-06-06 00:45:57 by jwe]
jwe
parents: 384
diff changeset
33 #include "dColVector.h"
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
34 #include "NLP.h"
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
35
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
36 #ifndef Vector
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
37 #define Vector ColumnVector
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
38 #endif
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
39
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
40 class NPSOL_options
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
41 {
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
42 public:
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
43
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
44 NPSOL_options (void);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
45 NPSOL_options (const NPSOL_options& opt);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
46
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
47 NPSOL_options& operator = (const NPSOL_options& opt);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
48
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
49 ~NPSOL_options (void);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
50
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
51 void init (void);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
52 void copy (const NPSOL_options& opt);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
53
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
54 void set_default_options (void);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
55
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
56 void set_central_difference_interval (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
57 void set_crash_tolerance (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
58 void set_difference_interval (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
59 void set_function_precision (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
60 void set_infinite_bound (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
61 void set_infinite_step (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
62 void set_linear_feasibility_tolerance (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
63 void set_linesearch_tolerance (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
64 void set_nonlinear_feasibility_tolerance (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
65 void set_optimality_tolerance (double val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
66
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
67 void set_derivative_level (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
68 void set_major_iteration_limit (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
69 void set_minor_iteration_limit (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
70 void set_major_print_level (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
71 void set_minor_print_level (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
72 void set_start_objective_check (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
73 void set_start_constraint_check (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
74 void set_stop_objective_check (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
75 void set_stop_constraint_check (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
76 void set_verify_level (int val);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
77
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
78 double central_difference_interval (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
79 double crash_tolerance (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
80 double difference_interval (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
81 double function_precision (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
82 double infinite_bound (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
83 double infinite_step (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
84 double linear_feasibility_tolerance (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
85 double linesearch_tolerance (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
86 double nonlinear_feasibility_tolerance (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
87 double optimality_tolerance (void) const;
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
88
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
89 int derivative_level (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
90 int major_iteration_limit (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
91 int minor_iteration_limit (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
92 int major_print_level (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
93 int minor_print_level (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
94 int start_objective_check (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
95 int start_constraint_check (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
96 int stop_objective_check (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
97 int stop_constraint_check (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
98 int verify_level (void) const;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
99
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
100 protected:
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
101
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
102 void pass_options_to_npsol (void);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
103
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
104 void set_option (const char *key, int opt);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
105 void set_option (const char *key, double opt);
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
106
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
107 private:
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
108
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
109 double x_central_difference_interval;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
110 double x_crash_tolerance;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
111 double x_difference_interval;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
112 double x_function_precision;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
113 double x_infinite_bound;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
114 double x_infinite_step;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
115 double x_linear_feasibility_tolerance;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
116 double x_linesearch_tolerance;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
117 double x_nonlinear_feasibility_tolerance;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
118 double x_optimality_tolerance;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
119 int x_derivative_level;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
120 int x_major_iteration_limit;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
121 int x_minor_iteration_limit;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
122 int x_major_print_level;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
123 int x_minor_print_level;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
124 int x_start_objective_check;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
125 int x_start_constraint_check;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
126 int x_stop_objective_check;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
127 int x_stop_constraint_check;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
128 int x_verify_level;
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
129 };
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
130
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
131 class NPSOL : public NLP, public NPSOL_options
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
132 {
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
133 public:
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
134
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
135 NPSOL (void) : NLP () { }
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
136
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
137 NPSOL (const Vector& x, const Objective& phi) : NLP (x, phi) { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
138
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
139 NPSOL (const Vector& x, const Objective& phi,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
140 const Bounds& b) : NLP (x, phi, b)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
141 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
142
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
143 NPSOL (const Vector& x, const Objective& phi, const Bounds& b,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
144 const LinConst& lc) : NLP (x, phi, b, lc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
145 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
146
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
147 NPSOL (const Vector& x, const Objective& phi, const Bounds& b,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
148 const LinConst& lc, const NLConst& nlc) : NLP (x, phi, b, lc, nlc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
149 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
150
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
151 NPSOL (const Vector& x, const Objective& phi,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
152 const LinConst& lc) : NLP (x, phi, lc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
153 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
154
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
155 NPSOL (const Vector& x, const Objective& phi, const LinConst& lc,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
156 const NLConst& nlc) : NLP (x, phi, lc, nlc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
157 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
158
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
159 NPSOL (const Vector& x, const Objective& phi,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
160 const NLConst& nlc) : NLP (x, phi, nlc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
161 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
162
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
163 NPSOL (const Vector& x, const Objective& phi, const Bounds& b,
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
164 const NLConst& nlc) : NLP (x, phi, b, nlc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
165 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
166
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
167 NPSOL (const NPSOL& a);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
168
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
169 Vector minimize (void);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
170 Vector minimize (double& objf);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
171 Vector minimize (double& objf, int& inform);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
172 Vector minimize (double& objf, int& inform, Vector& lambda);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
173
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
174 Vector minimize (const Vector& x);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
175 Vector minimize (const Vector& x, double& objf);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
176 Vector minimize (const Vector& x, double& objf, int& inform);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
177 Vector minimize (const Vector& x, double& objf, int& inform, Vector& lambda);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
178
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
179 NPSOL& option (char *s);
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
180
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
181 private:
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
182 };
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
183
255
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
184 // XXX FIXME XXX -- would be nice to not have to have this global
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
185 // variable.
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
186 // Nonzero means an error occurred in the calculation of the objective
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
187 // function, and the user wants us to quit.
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
188 extern int npsol_objective_error;
98246fedc941 [project @ 1993-12-08 22:55:41 by jwe]
jwe
parents: 238
diff changeset
189
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
190 inline NPSOL::NPSOL (const NPSOL& a) : NLP (a.x, a.phi, a.bnds, a.lc, a.nlc)
287
6027a905fc06 [project @ 1994-01-13 01:41:00 by jwe]
jwe
parents: 255
diff changeset
191 { }
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
192
645
21cb3c7dc9e3 [project @ 1994-08-24 06:19:54 by jwe]
jwe
parents: 461
diff changeset
193 #endif /* NPSOL_MISSING */
382
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 296
diff changeset
194
238
780cbbc57b7c [project @ 1993-11-30 20:23:04 by jwe]
jwe
parents: 3
diff changeset
195 #endif
3
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
196
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
197 /*
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
198 ;;; Local Variables: ***
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
199 ;;; mode: C++ ***
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
200 ;;; page-delimiter: "^/\\*" ***
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
201 ;;; End: ***
9a4c07481e61 [project @ 1993-08-08 01:20:23 by jwe]
jwe
parents:
diff changeset
202 */