To answer your original question, I have a computer model that simulates physiology of the breath-hold diver. It accounts for immersion effects, cardiac contractility, circulation redistribution, vasoconstriction, pressures, blood flows, chest and abdomen compliances, thoracic blood shifts, pulmonary circulation, lung packing, lung compression, alveolar collapse and reopening, gas exchange kinetics, muscle metabolism, lactate production, control loops, dive responses, etc. It is the most advanced model of its type presently in existence, having been developed over several years. I have used it to explore many issues pertaining to freediving. Feel free to contact me if you would like copies of the papers, although they are fairly technical.
I am not sure what you mean by "optimal conditions for a dive". If you have specific questions on diving physiology that a model might help answer, let me know. Sometimes the best use of a model is simply to help sharpen the questions. I don't think blood temperature is a big factor in humans. Elevated blood carbon dioxide level and respiratory/metabolic acidosis both shift the oxygen dissociation curve for hemoglobin to the right, as stated above. This helps unload a bit more oxygen from the blood to the tissues at low partial pressures. Cold blood counteracts this effect slightly, but I don't believe central circulating blood gets cold enough to have a significant effect, and the change in gas solubility with temperature is negligible. Cold blood returning to the core could have a small effect on reducing oxygen unloading to tissues after the dive by shifting the curve a bit to the left, but the opposing effect of high CO2, the Bohr effect, is more significant. In addition, the low oxygen level in the tissues helps blood carry more CO2 back to the lungs by the Haldane effect. But there are many far more important phenomena than these pertaining to blood redistribution and changes in perfusion and diffusion gas exchange that serve to help optimize physiology in breath-hold diving.