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

id = {
'B01.01'
'B01.02'
'B01.03'
'B02.01'
'B02.02'
'B03.01'
'B03.02'
'B04.01'
'B04.02'
'B05.01'
'B05.02'
'B10.01'
'B10.02'
'B10.03'
'B10.04'
'B11.01'
'B11.02'
'B13.01'
'B13.02'
'B13.03'
};  
saveParameters(id, input);

% model simulation
j = RTCToolsMatlab(input);

input0 = [
46.940297
53.422728
55.766723
42.097528
48.251563
41.351705
40.960070
40.292026
57.484718
37.104246
58.089946
43.055545
41.787299
47.926769
54.934122
30.432573
34.433122
32.409421
50.792329
59.692711];

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