# Diff of /trunk/base/generic/compiler/rel_blackbox.h

revision 908 by johnpye, Thu Oct 26 10:18:53 2006 UTC revision 909 by johnpye, Thu Oct 26 12:44:41 2006 UTC
# Line 1  Line 1
1  #ifndef ASC_REL_BLACKBOX_H  /*
2  #define ASC_REL_BLACKBOX_H      ASCEND Language Interpreter
3  /*      Copyright (C) 2006 Carnegie-Mellon University
4          note: blackbox equations support the form
5                  output[i] = f(input[j] for all j) foreach i      This program is free software; you can redistribute it and/or modify
7        the Free Software Foundation; either version 2 of the License, or
8        (at your option) any later version.
9
10        This program is distributed in the hope that it will be useful,
11        but WITHOUT ANY WARRANTY; without even the implied warranty of
12        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13        GNU General Public License for more details.
14
15        You should have received a copy of the GNU General Public License
16        along with this program; if not, write to the Free Software
17        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18        This file is part of the SLV solver.
19    *//** @file
20
21        @NOTE blackbox equations support the form
22
23            output[i] = f(input[j] for all j) foreach i
24
25      which we calculate by calling yhat = f(x),      which we calculate by calling yhat = f(x),
26      and then residual is y-yhat.      and then residual is (y - yhat).
27  */  */
28
29    #ifndef ASC_REL_BLACKBOX_H
30    #define ASC_REL_BLACKBOX_H
31
32  extern int BlackBoxCalcResidual(struct Instance *i, double *res, struct relation *r);  extern int BlackBoxCalcResidual(struct Instance *i, double *res, struct relation *r);
33
34  /** Compute standard form residual and gradient.  /** Compute standard form residual and gradient.

Legend:
 Removed from v.908 changed lines Added in v.909