A modern technique for the treatment of cerebral aneurysms involves insertion of a flow diverter stent. Flow stagnation, produced by the fine mesh structure of the diverter, is thought to promote blood clotting in an aneurysm. However, apart from its effect on flow reduction, the insertion of the metal device poses the risk of occlusion of a parent artery. One strategy for avoiding the risk of arterial occlusion is the use of a device with a higher porosity. To aid the development of optimal stents in the view point of flow reduction maintaining a high porosity, we used lattice Boltzmann flow simulations and simulated annealing optimization to investigate the optimal placement of stent struts. We constructed four idealized aneurysm geometries that resulted in four different inflow characteristics and employed a stent model with 36 unconnected struts corresponding to the porosity of 80%. Assuming intracranial flow, steady flow simulation with Reynolds number of 200 was applied for each aneurysm. Optimization of strut position was performed to minimize the average velocity in an aneurysm while maintaining the porosity. As the results of optimization, we obtained nonuniformed structure as optimized stent for each aneurysm geometry. And all optimized stents were characterized by denser struts in the inflow area. The variety of inflow patterns that resulted from differing aneurysm geometries led to unique strut placements for each aneurysm type.