Benchmark with a single thread.
Function::set_constant removes a variable for optimization.
AutoDiffTerm supports three variables.
Use the member functions begin and end.
Function::Implementation::number_of_constants
test_solver: constant variables test.