A prominent issue in microgrid (MG) cost optimisation is the consideration of variable parameters such as demand, wind speed, sun radiation intensity etc. This study deals with mitigating substantial deviation between study results and actual MG operation indices. The deviation is the result of ignoring the effects of power electronics devices in the optimisation algorithm. A new optimisation model is proposed to involve the main converter's restrictions in the optimisation process. For connecting renewable sources with uncertain outputs such as photovoltaic, wind, and also loads to a MG, using power electronic converters is inevitable. This study proposes an operation cost optimisation development by foreseeing the effects and limitations of power electronic devices, disregarding of which would undoubtedly lead to a notable deviation in optimisation results.