In this thesis, exergy based SI engine model optimisation (EBSIEMO) is studied and evaluated. A four-stroke bi-fuel spark ignition (SI) engine is modelled for optimisation of engine performance based upon exergy analysis. An artificial neural network (ANN) is used as an emulator to speed up the optimisation processes. Constrained particle swarm optimisation (CPSO) is employed to identify parameters such as equivalence ratio and ignition time for optimising of the engine performance, based upon maximising 'total availability'. In the optimisation process, the engine exhaust gases standard emission were applied including brake specific CO (BSCO) and brake specific NOx (BSNOx) as the constraints. The engine model is developed in a two-zone model, while considering the chemical synthesis of fuel, including 10 chemical species. A computer code is developed in MATLAB software to solve the equations for the prediction of temperature and pressure of the mixture in each stage (compression stroke, combustion process and expansion stroke). In addition, Intake and exhaust processes are calculated using an approximation method. This model has the ability to simulate turbulent combustion and compared to computational fluid dynamic (CFD) models it is computationally faster and efficient. The selective outputs are cylinder temperature and pressure, heat transfer, brake work, brake thermal and volumetric efficiency, brake torque, brake power (BP), brake specific fuel consumption (BSFC), brake mean effective pressure (BMEP), concentration of CO2, brake specific CO (BSCO) and brake specific NOx (BSNOx). In this model, the effect of engine speed, equivalence ratio and ignition time on performance parameters using gasoline and CNG fuels are analysed. In addition, the model is validated by experimental data using the results obtained from bi-fuel engine tests. Therefore, this engine model was capable to predict, analyse and useful for optimisation of the engine performance parameters. The exergy based four-stroke bi-fuel (CNG and gasoline) spark ignition (SI) engine model (EBSIEM) here is used for analysis of bi-fuel SI engines. Since, the first law of thermodynamic (the FLT), alone is not able to afford an appropriate comprehension into engine operations. Therefore, this thesis concentrates on the SI engine operation investigation using the developed engine model by the second law of thermodynamic (the SLT) or exergy analysis outlook (exergy based SI engine model (EBSIEM)) In this thesis, an efficient approach is presented for the prediction of total availability, brake specific CO (BSCO), brake specific NOx (BSNOx) and brake torque for bi-fuel engine (CNG and gasoline) using an artificial neural network (ANN) model based on exergy based SI engine (EBSIEM) (ANN-EBSIEM) as an emulator to speed up the optimisation processes. In the other words, the use of a well trained an ANN is ordinarily much faster than mathematical models or conventional simulation programs for prediction. The constrained particle swarm optimisation (CPSO)-EBSIEM (EBSIEMO) was capable of optimising the model parameters for the engine performance. The optimisation results based upon availability analysis (the SLT) due to analysing availability terms, specifically availability destruction (that measured engine irreversibilties) are more regarded with higher priority compared to the FLT analysis. In this thesis, exergy based SI engine model optimisation (EBSIEMO) is studied and evaluated. A four-stroke bi-fuel spark ignition (SI) engine is modelled for optimisation of engine performance based upon exergy analysis. An artificial neural network (ANN) is used as an emulator to speed up the optimisation processes. Constrained particle swarm optimisation (CPSO) is employed to identify parameters such as equivalence ratio and ignition time for optimising of the engine performance, based upon maximising 'total availability'. In the optimisation process, the engine exhaust gases standard emission were applied including brake specific CO (BSCO) and brake specific NOx (BSNOx) as the constraints. The engine model is developed in a two-zone model, while considering the chemical synthesis of fuel, including 10 chemical species. A computer code is developed in MATLAB software to solve the equations for the prediction of temperature and pressure of the mixture in each stage (compression stroke, combustion process and expansion stroke). In addition, Intake and exhaust processes are calculated using an approximation method. This model has the ability to simulate turbulent combustion and compared to computational fluid dynamic (CFD) models it is computationally faster and efficient. The selective outputs are cylinder temperature and pressure, heat transfer, brake work, brake thermal and volumetric efficiency, brake torque, brake power (BP), brake specific fuel consumption (BSFC), brake mean effective pressure (BMEP), concentration of CO2, brake specific CO (BSCO) and brake specific NOx (BSNOx). In this model, the effect of engine speed, equivalence ratio and ignition time on performance parameters using gasoline and CNG fuels are analysed. In addition, the model is validated by experimental data using the results obtained from bi-fuel engine tests. Therefore, this engine model was capable to predict, analyse and useful for optimisation of the engine performance parameters. The exergy based four-stroke bi-fuel (CNG and gasoline) spark ignition (SI) engine model (EBSIEM) here is used for analysis of bi-fuel SI engines. Since, the first law of thermodynamic (the FLT), alone is not able to afford an appropriate comprehension into engine operations. Therefore, this thesis concentrates on the SI engine operation investigation using the developed engine model by the second law of thermodynamic (the SLT) or exergy analysis outlook (exergy based SI engine model (EBSIEM)) In this thesis, an efficient approach is presented for the prediction of total availability, brake specific CO (BSCO), brake specific NOx (BSNOx) and brake torque for bi-fuel engine (CNG and gasoline) using an artificial neural network (ANN) model based on exergy based SI engine (EBSIEM) (ANN-EBSIEM) as an emulator to speed up the optimisation processes. In the other words, the use of a well trained an ANN is ordinarily much faster than mathematical models or conventional simulation programs for prediction. The constrained particle swarm optimisation (CPSO)-EBSIEM (EBSIEMO) was capable of optimising the model parameters for the engine performance. The optimisation results based upon availability analysis (the SLT) due to analysing availability terms, specifically availability destruction (that measured engine irreversibilties) are more regarded with higher priority compared to the FLT analysis.