We consider the inverse multiphase Stefan problem, where information on the heat flux on the fixed boundary is missing and must be found along with the temperature and free boundaries. Optimal control framework is pursued, where boundary heat flux is the control, and the optimality criteria consist of the minimization of the L 2 -norm declination of the trace of the solution to the Stefan problem from the temperature measurement on the fixed right boundary. The state vector solves multiphase Stefan problem in a weak formulation, which is equivalent to Neumann problem for the quasilinear parabolic PDE with discontinuous coefficient. Full discretization through finite differences is implemented and discrete optimal control problem is introduced. We prove wellposedness in a Sobolev space framework and convergence of discrete optimal control problems to the original problem both with respect to the cost functional and control. Along the way, the convergence of the method of finite differences for the weak solution of the multiphase Stefan problem is proved. The proof is based on achieving a uniform L ∞ bound, and W 1,1 2 -energy estimate for the discrete multiphase Stefan problem.Key words: Inverse multiphase Stefan problem, quasilinear parabolic PDE with discontinuous coefficent, optimal control, Sobolev spaces, method of finite differences, discrete optimal control problem, energy estimate, embedding theorems, weak compactness, convergence in functional, convergence in control.AMS subject classifications: 35R30, 35R35, 35K20, 35Q93, 65M06, 65M12, 65M32, 65N21. * This research is funded by NSF grant #1359074Inverse Multiphase Stefan Problem (IMSP). Find the functions u(x, t), ξ j (t), j = 1, J, and the boundary heat flux g(t) satisfying (1)-(6),(8).Motivation for the IMSP arose from the modeling of bioengineering problems on the laser ablation of biological tissues through a multiphase Stefan problem (1)-(6). Laser ablation creates three phases -solid (skin), fluid (melted skin) and gas (evaporated skin). Free boundaries ξ 1 (t) and ξ 2 (t) are measuring ablation depth separating solid/fluid and fluid/air regions at the moment t. GR±ε J (g), ε > 0. Then lim ε→0 J * (ε) = J * = lim ε→0 J * (−ε).Proof. The proof of this lemma is very similar to the analogous lemma from [1]. If 0 < ε 1 < ε 2 , then