%% Header
% Purpose:  non-anonymous J function for Tomlab opt. routine
% Author:   Axel Lodemel Holene
% E-mail:   axel.holene@gmail.com
% Date:     13. February 2013
% About:    

function J = Jfunc(ctrl)
    global parm
    ctrl 
    J = costFun(ctrl, parm) 
end