# Two stage stochastic

**URL:** <https://discourse.julialang.org/t/two-stage-stochastic/78767>\
**Category:** Optimization (Mathematical)\
**Tags:** question\
**Created:** [March 30, 2022, 8:07pm UTC](https://discourse.julialang.org/t/two-stage-stochastic/78767 "2022-03-30T20:07:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [March 30, 2022, 10:34pm UTC](https://discourse.julialang.org/t/two-stage-stochastic/78767/3 "2022-03-30T22:34:27Z")

</div>

Hi @HosseinF

Take a read of: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

Are you using StochasticPrograms.jl?

You can access the value of decision variables in the second stage using `value(variable, scenario)`, for example, `value(y, 2)` will access the value of variable `y` in scenario `2`.

Here’s the documentation: [Decision API · StochasticPrograms.jl](https://martinbiel.github.io/StochasticPrograms.jl/stable/manual/decisions/#Solved-problem)

---

_[View the full topic](https://discourse.julialang.org/t/two-stage-stochastic/78767)._
