Ill-posedness in mathematical programming and problem-solving with approximate data