Biodiesel can be a potential alternative to petroleum diesel, but its high production cost has impeded its commercialization in most parts of the world. One of the main drivers for the generation and use of biodiesel is energy security, because this fuel can be produced from locally available resources, thereby reducing the dependence on imported oil.