Algorithmic Optimal Control - CO2 Uptake of the Ocean

TAC++

(Transformation of Algorithms in C++)

Sourcetransformationtool for C/C++, is still in development by FastOpt Hamburg.

Homepage of the tool

Remote-acces via script   (access code necessary, if interested please contact: Thomas Slawig)

Use:

  • write the function you want to differentiate into a void function, Example: y=f(x): void f(double y, double x) in file f.c
  • Call for forwards mode: stac++ -remote -toplevel f  -input x -output y -l - -forward f.c
  • Call for backwards mode: stac++ -remote -toplevel f  -input x -output y -l - -reverse f.c
  • The derivatives can be found in files f_tl.c (VW) and f_ad.c (RW)