This paper reports the development of HERON (Holistic Energy Resource Optimization Network), a newly-developed RAVEN (Risk Analysis Virtual ENvironment) plugin for grid and capacity optimization, to technoeconomic analysis in a deregulated market. A short description of the HERON plugin is provided, and the release process is described. HERON as a plugin enables RAVEN to perform stochastic technoeconomic analysis of grid-energy systems in a generic approach. The primary function of HERON is to generate the complex RAVEN workflows necessary to optimize component capacities under stochastic systems. HERON is capable of analyzing systems with complex components transferring a variety of commodities, including production components and varied markets. HERON is capable of optimizing high-resolution dispatch for such systems and guiding stochastic optimization algorithms in RAVEN for finding optimal component capacities. In particular, this document demonstrates the application of HERON to systems with deregulated markets. A system including a hyrdogen market, an electricity market, hydrogen storage, a hydrogen producer, and a nuclear power plant is considered. Stochastic histories for electricity prices at the electricity market are employed to perform stochastic analysis for ideal sizing of the hydrogen production facility and hydrogen storage unit. The impact of hydrogen market price and volatility of electricity price are also shown.