Modelling and Optimization of Complex System