File: scriptmini_eval

package info (click to toggle)
cp2k 2025.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 372,052 kB
  • sloc: fortran: 963,262; ansic: 64,495; f90: 21,676; python: 14,419; sh: 11,382; xml: 2,173; makefile: 953; pascal: 845; perl: 492; cpp: 345; lisp: 297; csh: 16
file content (4 lines) | stat: -rwxr-xr-x 395 bytes parent folder | download | duplicates (5)
1
2
3
4
# read input values for the function to be minimized from scriptmini_eval.in
# 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