The first callback is called if a function value and the gradient based on a vector of input values are required (logic callback: function value determination/gradient derivation). The second callback is called once for each algorithm step and receives certain information about the convergence of the algorithm (notification callback). More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.