Optimize the concentration profile with fixed concentration at the end of
the pro files.