The problem of day-ahead scheduling of generation and storage facilities in a microgrid in the presence of Renewable sources with an objective to minimize the cost of power generation is considered in the article. The objective function is formulated considering a linear cost function for renewable generators and quadratic cost function for conventional generators. The uncertainty in available power from renewable generators and loads is modeled using a proven uncertainty model and two scenarios are drawn. Artificial Fish Swarm intelligence is used to solve the optimization part. The proposed algorithm is investigated on a numerical example with a cluster of renewable and conventional generators with different cost functions. The results obtained show that the proposed algorithm is able to utilize the cheapest sources to the extent of 100% and utilize the other generators in decreasing percentage as their cost of generation increases. The costliest source, which is grid power in the numerical example considered, is utilized only very sparingly. Apart from obtaining optimal solution for scheduling, the proposed algorithm is able to consolidate battery - microgrid power exchange and also implement load shedding when required.