view src/fsqp.cc @ 249:0a1644ef9a0a

[project @ 1993-12-06 18:56:13 by jwe]
author jwe
date Mon, 06 Dec 1993 18:56:51 +0000
parents a99f28f5e351
children 7ec58832918f
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 HAVE_CONFIG_H
#include "config.h"
#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: ***
*/