Sandia Home Sandia Home
Main Page | Publications | Downloads | Configuration | Running the Code | Solver Parameters | FAQ | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

example1.c File Reference

Detailed Description

Example with bound constraints.

A simple example of a function evaluation that takes its input from a text file, and it writes its single objective value to an output file.

In this case, the two-dimensional example function is:

\[ f(x) = x_1^2 + 2 x_2^2 \]

The input file example1.apps, to be used with example1.c, includes the following lower and upper bounds and initial point:

\[ \ell = \begin{bmatrix}-1\\-1\end{bmatrix}, \quad u = \begin{bmatrix}1\\1\end{bmatrix}, \quad x^{(0)} = \begin{bmatrix}0.2\\0.3\end{bmatrix} \]

Definition in file example1.c.

#include <stdio.h>
#include <stdlib.h>

Include dependency graph for example1.c:

Include dependency graph

Go to the source code of this file.


double example1_feval (int n, double *x)
int main (int argc, char *argv[])

Function Documentation

double example1_feval int  n,
double *  x

Function evaluation

Definition at line 62 of file example1.c.

Referenced by main().

int main int  argc,
char *  argv[]


Definition at line 75 of file example1.c.

References example1_feval().


© Sandia Corporation | Site Contact | Privacy and Security

Generated on Fri Feb 16 10:33:35 2007 for APPSPACK 5.0.1 by doxygen written by Dimitri van Heesch, © 1997-2002