cp2k/tools/scriptmini/scriptmini_eval

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
395 B
Text
Raw Permalink Normal View History

2020-03-12 22:05:25 +09:00
# read input values for the function to be minimized from scriptmini_eval.in
2009-05-13 13:01:27 +00:00
# write the output value of the function to scriptmini_eval.out
# at the end, the values in scriptmini_eval.in will be near the minimum of the objective function (i.e. scriptmini_eval.out will be small)
awk '{printf("%20.12f \n",($1-1)^2+($2-2)^2+($3-3)^2+($4-4)^2+($5-5)^2)}' scriptmini_eval.in > scriptmini_eval.out