Move the definition of the variables, which are used outside and inside of the nested function (obj_fun) as well, outside of said function.
Indicate in the README which Matlab file to run to perform a calibration.
Testing
I could not fully test it because I do not have anymore the Global Optimization Toolbox. After the changes I get an error that the Global Optimization Toolbox is missing. @Jungle-13 could you check if the code on this branch runs for you?
Other
The mess with the commits is because I used an incorrect user name, had to change the commit author and email.
Why
See #1
What
obj_fun
) as well, outside of said function.Testing
I could not fully test it because I do not have anymore the Global Optimization Toolbox. After the changes I get an error that the Global Optimization Toolbox is missing. @Jungle-13 could you check if the code on this branch runs for you?
Other
The mess with the commits is because I used an incorrect user name, had to change the commit author and email.
Closes #1.