Last modified 4 weeks ago
In parameter file for DEEP "model.ini" put:
[default_model] convert=octave parts=degradation_rate;1;pro1_strength;1;pro2_strength;1; numdparms=3 numparms=3 nummask=3 numtweak=3 vallbound=0 valhbound=1 command=./objective_function delimiters=\n keys=0; mapping=0;
Call DEEP:
deepmethod --default-name=model.ini
For each parameter set the following formatted file "/tmp/XXXXXX" will be generated:
degradation_rate = 0.011114438; pro1_strength = 0.239439572; pro2_strength = 0.377516976;
The command will be then called:
objective_function /tmp/XXXXXX
In the "objective_function" script put the following line at the begining:
source(args[1]);
The script should print the value to be minimized, i.e. the difference between the solution with given set of parameters abd the data.