Initialise the solution.