Mercurial > hg > octave-nkf
view src/fsqp.cc @ 216:e83d64b26659
[project @ 1993-11-13 09:04:18 by jwe]
author | jwe |
---|---|
date | Sat, 13 Nov 1993 09:11:10 +0000 |
parents | d1c5e5edbf1e |
children | a99f28f5e351 |
line wrap: on
line source
// f-fsqp.cc -*- C++ -*- /* Copyright (C) 1993 John W. Eaton This file is part of Octave. Octave is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. Octave is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Octave; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifdef __GNUG__ #pragma implementation #endif #ifndef FSQP_MISSING #include "FSQP.h" #include "tree-const.h" #include "error.h" #include "f-fsqp.h" // Global pointers for user defined functions required by fsqp. static tree *fsqp_objective; static tree *fsqp_constraints; #ifdef WITH_DLD tree_constant * builtin_fsqp_2 (const tree_constant *args, int nargin, int nargout) { return fsqp (args, nargin, nargout); } #endif double fsqp_objective_function (const ColumnVector& x) { return 0.0; } ColumnVector fsqp_constraint_function (const ColumnVector& x) { ColumnVector retval; return retval; } tree_constant * fsqp (const tree_constant *args, int nargin, int nargout) { /* Handle all of the following: 1. fsqp (x, phi) 2. fsqp (x, phi, lb, ub) 3. fsqp (x, phi, lb, ub, llb, c, lub) 4. fsqp (x, phi, lb, ub, llb, c, lub, nllb, g, nlub) 5. fsqp (x, phi, lb, ub, nllb, g, nlub) 6. fsqp (x, phi, llb, c, lub, nllb, g, nlub) 7. fsqp (x, phi, llb, c, lub) 8. fsqp (x, phi, nllb, g, nlub) */ // Assumes that we have been given the correct number of arguments. tree_constant *retval = NULL_TREE_CONST; error ("fsqp: not implemented yet"); return retval; } #endif /* ;;; Local Variables: *** ;;; mode: C++ *** ;;; page-delimiter: "^/\\*" *** ;;; End: *** */