The integral of the demand function in the Objective Function is complex. To simplify a bit the reading and computation, we pre-calculate the “Constants” here. As the name suggests, their value will not change until we change one of the parameters. E.g. DData(“Quantity”) is typically changed as part of a forward looking scenario. In that case, the constants need to be recalculated again.