function [j] = jResCalibration(input)
% function [j] = jResCalibration(input)

id = {
'ECORR',
'RFCF'
'TT',
'TTI',
'CFMAX',
'CFR',
'CWH',
'TM',
'BETA',
'CFLUX',
'ETF',
'FC',
'LP',
'ALPHA',
'K',
'K1',
'PERC'
};  
saveParameters(id, input);

% model simulation
j = RTCToolsMatlab(input)

input0 = [
1.0
2.0
1.0
2.0
3.0
0.8
0.1
1.0
1.2
0.05
0.15
100.0
0.4
0.4
0.04
0.10
3.5];

j = -j + 0.1*sum(((input-input0)./input0).^2);
