def write_to_human_readable(sdp, filename):
objective, matrix = convert_to_human_readable(sdp)<EOL>f = open(filename, '<STR_LIT:w>')<EOL>f.write("<STR_LIT>" + objective + "<STR_LIT:\n>")<EOL>for matrix_line in matrix:<EOL><INDENT>f.write(str(list(matrix_line)).replace('<STR_LIT:[>', '<STR_LIT>').replace('<STR_LIT:]>', '<STR_LIT>')<EOL>.replace('<STR_LIT>', '<STR_LIT>'))<EOL>f.write('<STR_LIT:\n>')<EOL><DEDENT>f.close()<EOL>
Write the SDP relaxation to a human-readable format.

    :param sdp: The SDP relaxation to write.
    :type sdp: :class:`ncpol2sdpa.sdp`.
    :param filename: The name of the file.
    :type filename: str.