How to formulate a supply chain mathematical model that contains all the constraints that reflect risks in single-sourcing. By using simulation and validation in the proposed solution as well as sensitivity analysis, various solutions can be presented.