You can use my technique exergy -economic and environmental analysis or exergy or exergy economic analysis, Also for optimization procedure you can use genetic, netural network, searching,... methods.
The simplest methods mainly used for optimizing the bio-diesel or bio fuel powered diesel engine performance and emission characteristics are (1) Grey Taguchi-method and (2) Response surface method.
You can find the reference articles for the methods above mentioned in the following links,