|
| 1 | +! -*- f90 -*- |
| 2 | +! Note: the context of this file is case sensitive. |
| 3 | + |
| 4 | +python module simulated_annealing_f2py ! in |
| 5 | + interface ! in :simulated_annealing_f2py |
| 6 | + module simulated_annealing_module_c ! in :simulated_annealing_f2py:src/simulated_annealing_module_c.f90 |
| 7 | + use iso_c_binding |
| 8 | + |
| 9 | + subroutine initialize_simulated_annealing(iproblem,n,lb,ub,c,maximize,eps,ns,nt,neps,maxevl,iprint,iseed1,iseed2,step_mode,vms,iunit,use_initial_guess,n_resets,cooling_schedule,cooling_param,optimal_f_specified,optimal_f,optimal_f_tol,distribution_mode,dist_std_dev,dist_scale,dist_shape,fcn,n_inputs_to_send,fcn_parallel_input,fcn_parallel_output) ! in :simulated_annealing_f2py:src/simulated_annealing_module_c.f90:simulated_annealing_module_c |
| 10 | + integer(c_intptr_t) intent(out) :: iproblem |
| 11 | + integer(c_int) intent(in) :: n |
| 12 | + real(c_double) dimension(n),intent(in) :: lb |
| 13 | + real(c_double) dimension(n),intent(in) :: ub |
| 14 | + real(c_double) dimension(n),intent(in) :: c |
| 15 | + integer intent(in) :: maximize |
| 16 | + real(c_double) intent(in) :: eps |
| 17 | + integer(c_int) intent(in) :: ns |
| 18 | + integer(c_int) intent(in) :: nt |
| 19 | + integer(c_int) intent(in) :: neps |
| 20 | + integer(c_int) intent(in) :: maxevl |
| 21 | + integer(c_int) intent(in) :: iprint |
| 22 | + integer(c_int) intent(in) :: iseed1 |
| 23 | + integer(c_int) intent(in) :: iseed2 |
| 24 | + integer(c_int) intent(in) :: step_mode |
| 25 | + real(c_double) intent(in) :: vms |
| 26 | + integer(c_int) intent(in) :: iunit |
| 27 | + integer intent(in) :: use_initial_guess |
| 28 | + integer(c_int) intent(in) :: n_resets |
| 29 | + integer(c_int) intent(in) :: cooling_schedule |
| 30 | + real(c_double) intent(in) :: cooling_param |
| 31 | + integer intent(in) :: optimal_f_specified |
| 32 | + real(c_double) intent(in) :: optimal_f |
| 33 | + real(c_double) intent(in) :: optimal_f_tol |
| 34 | + integer(c_int) dimension(n),intent(in),depend(n) :: distribution_mode |
| 35 | + real(c_double) dimension(n),intent(in),depend(n) :: dist_std_dev |
| 36 | + real(c_double) dimension(n),intent(in),depend(n) :: dist_scale |
| 37 | + real(c_double) dimension(n),intent(in),depend(n) :: dist_shape |
| 38 | + integer(c_intptr_t) intent(in) :: fcn |
| 39 | + integer(c_intptr_t) intent(in) :: n_inputs_to_send |
| 40 | + integer(c_intptr_t) intent(in) :: fcn_parallel_input |
| 41 | + integer(c_intptr_t) intent(in) :: fcn_parallel_output |
| 42 | + end subroutine initialize_simulated_annealing |
| 43 | + |
| 44 | + subroutine destroy_simulated_annealing(iproblem) ! in :simulated_annealing_f2py:src/simulated_annealing_module_c.f90:simulated_annealing_module_c |
| 45 | + integer(c_intptr_t) intent(in) :: iproblem |
| 46 | + end subroutine destroy_simulated_annealing |
| 47 | + |
| 48 | + subroutine solve_simulated_annealing(iproblem,n,x,rt,t,vm,xopt,fopt,nacc,nfcnev,ier) ! in :simulated_annealing_f2py:src/simulated_annealing_module_c.f90:simulated_annealing_module_c |
| 49 | + integer(c_intptr_t) intent(in) :: iproblem |
| 50 | + integer(c_int) intent(in) :: n |
| 51 | + real(c_double) dimension(n),intent(in,out),depend(n) :: x |
| 52 | + real(c_double) intent(in) :: rt |
| 53 | + real(c_double) intent(in,out) :: t |
| 54 | + real(c_double) dimension(n),intent(in,out),depend(n) :: vm |
| 55 | + real(c_double) dimension(n),intent(out),depend(n) :: xopt |
| 56 | + real(c_double) intent(out) :: fopt |
| 57 | + integer(c_int) intent(out) :: nacc |
| 58 | + integer(c_int) intent(out) :: nfcnev |
| 59 | + integer(c_int) intent(out) :: ier |
| 60 | + end subroutine solve_simulated_annealing |
| 61 | + |
| 62 | + end module simulated_annealing_module_c |
| 63 | + end interface |
| 64 | +end python module simulated_annealing_f2py |
| 65 | + |
| 66 | +! This file was auto-generated with f2py (version:2). |
| 67 | +! See: |
| 68 | +! https://web.archive.org/web/20140822061353/http://cens.ioc.ee/projects/f2py2e |
0 commit comments