sa_func Interface

interface
private subroutine sa_func(me, x, f, istat)

Arguments

Type IntentOptional Attributes Name
class(simulated_annealing_type), intent(inout) :: me
real(kind=wp), intent(in), dimension(:) :: x
real(kind=wp), intent(out) :: f
integer, intent(out) :: istat

status flag:

  • 0 : valid function evaluation
  • -1 : invalid function evaluation. try a different input vector.
  • -2 : stop the optimization process

Description

interface to function to be maximized/minimized