EMPIRE DA  v1.9.1
Data assimilation codes using EMPIRE communication
 All Classes Files Functions Variables Pages
objective_function.f90
Go to the documentation of this file.
1 subroutine objective_function(n,x,f)
2 implicit none
3 integer, parameter :: rk = kind(1.0d0)
4 integer, intent(in) :: n
5 real(kind=rk), dimension(n), intent(in) :: x
6 real(kind=rk), intent(out) :: f
7 ! Rosenbrock function
8 f = 100.*((x(2) - x(1)**2)**2) + (1. - x(1))**2
9 end subroutine objective_function
subroutine objective_function(n, x, f)