Complex sentence: Mostly, the optimization problem is formulated as a minimization problem, where one tries to minimize an error which depends on the solution: the optimal solution has the minimal error.
Split into simpler sentences: Mostly, the optimization problem is formulated as a minimization problem, where one tries to minimize an error which depends on the solution. Meaning, the optimal solution has the minimal error.