Implementing anonymous functions in Fortran
问题 This question is successor of my previous question Implementing minimization method. In current question, I simplified my problem and here is the sample MATLAB code. I want to implement it in Fortran. %Script script1.m clear vars; close all; clc; fun1 = @(x1,x2) 3*x1^2 + 4*x2^2 + 5*x1 + 6*x2 + 10; lower = -2; upper = 0; fun5 = fun15(fun1); %fun5 is 'intermediate' function %calling minimization function [location,value]=minimize1(fun5,lower,upper) In the script1.m, I created a function handle