The maximum likelihood decoding problem for linear binary

codes is reformulated as a continuous optimization problem in a

-dimensional solid cube. We obtain a near optimum solution of this problem by use of a simple gradient local optimization algorithm. Computer simulation results are presented for the

projective geometry code and the

quadratic-residue code.