This paper presents and describes a scheme to optimize the cooling efficiency of a contrived two-dimensional Z-flow cooling system. The FLUENT CFD code is used to analyze the steady state flow characteristics of variable flow-hole geometries between the block and the head portion of the fluid model. The VisualDOC general-purpose optimization code is used to determine the optimum geometry that satisfies minimum fluid velocity constraints at ten fluid locations. A gradient-based optimization algorithm is chosen to investigate its performance as a candidate scheme for CFD problems with larger numbers of design variables. Because optimization algorithms require numerous analyses VisualDOC is used to solve this problem utilizing a distributed1 heterogeneous2 system of from one to four CPUs.