7
|
1 // f-fsqp.cc -*- C++ -*- |
1
|
2 /* |
|
3 |
|
4 Copyright (C) 1993 John W. Eaton |
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #ifdef __GNUG__ |
|
25 #pragma implementation |
|
26 #endif |
|
27 |
|
28 #ifndef FSQP_MISSING |
|
29 |
|
30 #include "FSQP.h" |
|
31 |
|
32 #include "tree-const.h" |
|
33 #include "error.h" |
7
|
34 #include "f-fsqp.h" |
1
|
35 |
|
36 // Global pointers for user defined functions required by fsqp. |
|
37 static tree *fsqp_objective; |
|
38 static tree *fsqp_constraints; |
|
39 |
|
40 #ifdef WITH_DLD |
|
41 tree_constant * |
162
|
42 builtin_fsqp_2 (const tree_constant *args, int nargin, int nargout) |
1
|
43 { |
|
44 return fsqp (args, nargin, nargout); |
|
45 } |
|
46 #endif |
|
47 |
|
48 double |
162
|
49 fsqp_objective_function (const ColumnVector& x) |
1
|
50 { |
|
51 return 0.0; |
|
52 } |
|
53 |
|
54 ColumnVector |
162
|
55 fsqp_constraint_function (const ColumnVector& x) |
1
|
56 { |
|
57 ColumnVector retval; |
|
58 return retval; |
|
59 } |
|
60 |
|
61 tree_constant * |
162
|
62 fsqp (const tree_constant *args, int nargin, int nargout) |
1
|
63 { |
|
64 /* |
|
65 |
|
66 Handle all of the following: |
|
67 |
|
68 1. fsqp (x, phi) |
|
69 2. fsqp (x, phi, lb, ub) |
|
70 3. fsqp (x, phi, lb, ub, llb, c, lub) |
|
71 4. fsqp (x, phi, lb, ub, llb, c, lub, nllb, g, nlub) |
|
72 5. fsqp (x, phi, lb, ub, nllb, g, nlub) |
|
73 6. fsqp (x, phi, llb, c, lub, nllb, g, nlub) |
|
74 7. fsqp (x, phi, llb, c, lub) |
|
75 8. fsqp (x, phi, nllb, g, nlub) |
|
76 |
|
77 */ |
|
78 |
|
79 // Assumes that we have been given the correct number of arguments. |
|
80 |
|
81 tree_constant *retval = NULL_TREE_CONST; |
216
|
82 error ("fsqp: not implemented yet"); |
1
|
83 return retval; |
|
84 } |
|
85 |
|
86 #endif |
|
87 |
|
88 /* |
|
89 ;;; Local Variables: *** |
|
90 ;;; mode: C++ *** |
|
91 ;;; page-delimiter: "^/\\*" *** |
|
92 ;;; End: *** |
|
93 */ |