Statistics
| Revision:

root / trunk / tests / dll / simple.tpl @ 1510

History | View | Annotate | Download (254 Bytes)

1
DATA_SECTION
2
  dll_int n
3

    
4
PARAMETER_SECTION
5
  dll_init_vector x(1,n)
6
  dll_number output
7
  objective_function_value f
8

    
9
PROCEDURE_SECTION
10
  f = square(x(1)-1.0);
11
  for (int i=1; i<n; i++)
12
  {
13
    f += square(x(i+1)-x(i));
14
  }
15
  output = f;