The paper presents an algorithm for solving integer linear programming (ILP) problems by assessing approximated integer solutions to their relaxation (RLP) to determine optimality. If these solutions do not meet optimality conditions, a modified branch and bound method is proposed to find the optimal integer solution. The methods utilize linear diophantine equations and the properties of hyperplanes in obtaining feasible and optimal solutions to ILPs.