Ramification group

From formulasearchengine
Revision as of 07:23, 9 November 2013 by en>Scott Tillinghast, Houston TX (The different of the example)
Jump to navigation Jump to search

In the field of mathematical optimization, stochastic programming is a framework for modeling optimization problems that involve uncertainty. Whereas deterministic optimization problems are formulated with known parameters, real world problems almost invariably include some unknown parameters. When the parameters are known only within certain bounds, one approach to tackling such problems is called robust optimization. Here the goal is to find a solution which is feasible for all such data and optimal in some sense. Stochastic programming models are similar in style but take advantage of the fact that probability distributions governing the data are known or can be estimated. The goal here is to find some policy that is feasible for all (or almost all) the possible data instances and maximizes the expectation of some function of the decisions and the random variables. More generally, such models are formulated, solved analytically or numerically, and analyzed in order to provide useful information to a decision-maker.[1]

As an example, consider two-stage linear programs. Here the decision maker takes some action in the first stage, after which a random event occurs affecting the outcome of the first-stage decision. A recourse decision can then be made in the second stage that compensates for any bad effects that might have been experienced as a result of the first-stage decision. The optimal policy from such a model is a single first-stage policy and a collection of recourse decisions (a decision rule) defining which second-stage action should be taken in response to each random outcome.

Stochastic programming has applications in a broad range of areas ranging from finance to transportation to energy optimization.[2][3] We present an example of optimizing an investment portfolio over time.

Two-Stage Problems

The basic idea of two-stage stochastic programming is that (optimal) decisions should be based on data available at the time the decisions are made and should not depend on future observations. Two-stage formulation is widely used in stochastic programming. The general formulation of a two-stage stochastic programming problem is given by:

minxX{g(x)=f(x)+E[Q(x,ξ)]}

where Q(x,ξ) is the optimal value of the second-stage problem

miny{q(y,ξ)|T(ξ)x+W(ξ)y=h(ξ)}

The classical two-stage linear stochastic programming problems can be formulated as

min\limits xng(x)=cTx+E[Q(x,ξ)]subject toAx=bx0

where Q(x,ξ) is the optimal value of the second-stage problem

min\limits ymq(ξ)Tysubject toT(ξ)x+W(ξ)y=h(ξ)y0

In such formulation xn is the first-stage decision variable vector, ym is the second-stage decision variable vector, and ξ(q,T,W,h) contains the data of the second-stage problem. In this formulation, at the first stage we have to make a "here-and-now" decision x before the realization of the uncertain data ξ, viewed as a random vector, is known. At the second stage, after a realization of ξ becomes available, we optimize our behavior by solving an appropriate optimization problem.

At the first stage we optimize (minimize in the above formulation) the cost cTx of the first-stage decision plus the expected cost of the (optimal) second-stage decision. We can view the second-stage problem simply as an optimization problem which describes our supposedly optimal behavior when the uncertain data is revealed, or we can consider its solution as a recourse action where the term Wy compensates for a possible inconsistency of the system Txh and qTy is the cost of this recourse action.

The considered two-stage problem is linear because the objective functions and the constraints are linear. Conceptually this is not essential and one can consider more general two-stage stochastic programs. For example, if the first-stage problem is integer, one could add integrality constraints to the first-stage problem so that the feasible set is discrete. Non-linear objectives and constraints could also be incorporated if needed.[4]

Distributional assumption

The formulation of the above two-stage problem assumes that the second-stage data ξ can be modeled as a random vector with a known probability distribution (not just uncertain). This would be justified in many situations. For example ξ could be information derived from historical data and the distribution does not significantly change over the considered period of time. In such situations one may reliably estimate the required probability distribution and the optimization on average could be justified by the Law of Large Numbers. Another example is that ξ could be realizations of a simulation model whose outputs are stochastic. The empirical distribution of the sample could be used as an approximation to the true but unknown output distribution.

Discretization

To solve the two-stage stochastic problem numerically, one often need to assume that the random vector ξ has a finite number of possible realizations, called scenarios, say ξ1,,ξK, with respective probability masses p1,,pK. Then the expectation in the first-stage problem's objective function can be written as the summation:

E[Q(x,ξ)]=k=1KpkQ(x,ξk)

and, moreover, the two-stage problem can be formulated as one large linear programming problem (this is called the deterministic equivalent of the original problem, see section Template:Sectionlink).

When ξ has an infinite (or very large) number of possible realizations the standard approach is then to represent this distribution by scenarios. This approach raises three questions, namely:

  1. How to construct scenarios, see Template:Sectionlink;
  2. How to solve the deterministic equivalent. Optimizers such as CPLEX, GLPK and Gurobi can solve large linear/nonlinear problems. NEOS [5] server hosted at the Argonne National Laboratory allows free access to many modern solvers. The structure of a deterministic equivalent is particularly amenable to apply decomposition methods,[6] such as Benders' decomposition or scenario decomposition;
  3. How to measure quality of the obtained solution with respect to the "true" optimum.

These questions are not independent. For example, the number of scenarios constructed will affect both the tractability of the deterministic equivalent and the quality of the obtained solutions.

Stochastic linear program

A stochastic linear program is a specific instance of the classical two-stage stochastic program. A stochastic LP is built from a collection of multi-period linear programs (LPs), each having the same structure but somewhat different data. The kth two-period LP, representing the kth scenario, may be regarded as having the following form:

MinimizefTx+gTy+hkTzksubject toTx+Uy=rVky+Wkzk=skx,y,zk0

The vectors x and y contain the first-period variables, whose values must be chosen immediately. The vector zk contains all of the variables for subsequent periods. The constraints Tx+Uy=r involve only first-period variables and are the same in every scenario. The other constraints involve variables of later periods and differ in some respects from scenario to scenario, reflecting uncertainty about the future.

Note that solving the kth two-period LP is equivalent to assuming the kth scenario in the second period with no uncertainty. In order to incorporate uncertainties in the second stage, one should assign probabilities to different scenarios and solve the corresponding deterministic equivalent.

Deterministic equivalent of a stochastic problem

With a finite number of scenarios, two-stage stochastic linear programs can be modelled as large linear programming problems. This formulation is often called the deterministic equivalent linear program, or abbreviated to deterministic equivalent. (Strictly speaking a deterministic equivalent is any mathematical program that can be used to compute the optimal first-stage decision, so these will exist for continuous probability distributions as well, when one can represent the second-stage cost in some closed form.) For example, to form the deterministic equivalent to the above stochastic linear program, we assign a probability pk to each scenario k=1,,K. Then we can minimize the expected value of the objective, subject to the constraints from all scenarios:

MinimizefTx+gTy+p1h1Tz1+p2h2Tz2++pKhKTzKsubject toTx+Uy=rV1y+W1z1=s1V2y+W2z2=s2VKy+WKzK=sKx,y,z1,z2,,zK0

We have a different vector zk of later-period variables for each scenario k. The first-period variables x and y are the same in every scenario, however, because we must make a decision for the first period before we know which scenario will be realized. As a result, the constraints involving just x and y need only be specified once, while the remaining constraints must be given separately for each scenario.

Scenario Construction

In practice it might be possible to construct scenarios by eliciting expert's opinions on the future. The number of constructed scenarios should be relatively modest so that the obtained deterministic equivalent can be solved with reasonable computational effort. It is often claimed that a solution that is optimal using only a few scenarios provides more adaptable plans than one that assumes a single scenario only. In some cases such a claim could be verified by a simulation. In theory some measures of guarantee that an obtained solution solves the original problem with reasonable accuracy. Typically in applications only the first stage optimal solution x* has a practical value since almost always a "true" realization of the random data will be different from the set of constructed (generated) scenarios.

Suppose ξ contains d independent random components, each of which has three possible realizations (for example, future realizations of each random parameters are classified as low, medium and high), then the total number of scenarios is K=3d. Such exponential growth of the number of scenarios makes model development using expert opinion very difficult even for reasonable size d. The situation becomes even worse if some random components of ξ have continuous distributions.

Monte Carlo sampling and Sample Average Approximation (SAA) Method

A common approach to reduce the scenario set to a manageable size is by using Monte Carlo simulation. Suppose the total number of scenarios is very large or even infinite. Suppose further that we can generate a sample ξ1,ξ2,,ξN of N replications of the random vector ξ. Usually the sample is assumed to be independent identically distributed (i.i.d sample). Given a sample, the expectation function q(x)=E[Q(x,ξ)] is approximated by the sample average

q^N(x)=1Nj=1NQ(x,ξj)

and consequently the first-stage problem is given by

g^N(x)=min\limits xncTx+1Nj=1NQ(x,ξj)subject toAx=bx0

This formulation is known as the Sample Average Approximation method. The SAA problem is a function of the considered sample and in that sense is random. For a given sample ξ1,ξ2,,ξN the SAA problem is of the same form as a two-stage stochastic linear programming problem with the scenarios ξj., j=1,,N, each taken with the same probability pj=1N.

Statistical Inference

Consider the following stochastic programming problem

min\limits xX{g(x)=f(x)+E[Q(x,ξ)]}

Here X is a nonempty closed subset of n, ξ is a random vector whose probability distribution P is supported on a set Ξd, and Q:X×Ξ. In the framework of two-stage stochastic programming, Q(x,ξ) is given by the optimal value of the corresponding second-stage problem.

Assume that g(x) is well defined and finite valued for all xX. This implies that for every xX the value Q(x,ξ) is finite almost surely.

Suppose that we have a sample ξ1,,ξN of Nrealizations of the random vector ξ. This random sample can be viewed as historical data of N observations of ξ, or it can be generated by Monte Carlo sampling techniques. Then we can formulate a corresponding sample average approximation

min\limits xX{g^N(x)=f(x)+1Nj=1NQ(x,ξj)}

By the Law of Large Numbers we have that, under some regularity conditions 1Nj=1NQ(x,ξj) converges pointwise with probability 1 to E[Q(x,ξ)] as N. Moreover, under mild additional conditions the convergence is uniform. We also have E[g^N(x)]=g(x), i.e., g^N(x) is an unbiased estimator of g(x). Therefore it is natural to expect that the optimal value and optimal solutions of the SAA problem converge to their counterparts of the true problem as N.

Consistency of SAA estimators

Suppose the feasible set X of the SAA problem is fixed, i.e., it is independent of the sample. Let ϑ* and S* be the optimal value and the set of optimal solutions, respectively, of the true problem and let ϑ^N and S^N be the optimal value and the set of optimal solutions, respectively, of the SAA problem.

  1. Let g:X and g^N:X be a sequence of (deterministic) real valued functions. The following two properties are equivalent:
  2. If the objective of the SAA problem g^N(x) converges to the true problem's objective g(x) with probability 1, as N, uniformly on the feasible set X. Then ϑ^N converges to ϑ* with probability 1 as N.
  3. Suppose that there exists a compact set Cn such that
    • the set S of optimal solutions of the true problem is nonempty and is contained in C
    • the function g(x) is finite valued and continuous on C
    • the sequence of functions g^N(x) converges to g(x) with probability 1, as N, uniformly in xC
    • for N large enough the set S^N is nonempty and S^NC with probability 1
then ϑ^Nϑ* and 𝔻(S*,S^N)0 with probability 1 as N. Note that 𝔻(A,B) denotes the deviation of set A from set B, defined as
𝔻(A,B):=supxA{infxBxx}

In some situations the feasible set X of the SAA problem is estimated, then the corresponding SAA problem takes the form

minxXNg^N(x)

where XN is a subset of n depending on the sample and therefore is random. Nevertheless consistency results for SAA estimators can still be derived under some additional assumptions:

  1. Suppose that there exists a compact set Cn such that
    • the set S of optimal solutions of the true problem is nonempty and is contained in C
    • the function g(x) is finite valued and continuous on C
    • the sequence of functions g^N(x) converges to g(x) with probability 1, as N, uniformly in xC
    • for N large enough the set S^N is nonempty and S^NC with probability 1
    • if xNXN and xN converges with probability 1 to a point x, then xX
    • for some point xS* there exists a sequence xNXN such that xNx with probability 1.
then ϑ^Nϑ* and 𝔻(S*,S^N)0 with probability 1 as N.

Asymptotics of the SAA optimal value

Suppose the sample ξ1,,ξN is i.i.d. and fix a point xX. Then the sample average estimator g^N(x), of g(x), is unbiased and have variance 1Nσ2(x), where σ2(x):=Var[Q(x,ξ)] is supposed to be finite. Moreover, by the central limit theorem we have that

N[g^Ng(x)]𝒟Yx

where 𝒟 denotes convergence in distribution and Yx has a normal distribution with mean 0 and variance σ2(x), written as 𝒩(0,σ2(0)).

In other words, g^N(x) has asymptotically normal distribution, i.e., for large N, g^N(x) has approximately normal distribution with mean g(x) and variance 1Nσ2(x). This leads to the following (approximate) 100(1α)% confidence interval for f(x):

[g^N(x)zα/2σ^(x)N,g^N(x)+zα/2σ^(x)N]

where zα/2:=Φ1(1α/2) (here Φ() denotes the cdf of the standard normal distribution) and

σ^2(x):=1N1j=1N[Q(x,ξj)1Nj=1NQ(x,ξj)]2

is the sample variance estimate of σ2(x). That is, the error of estimation of g(x) is (stochastically) of order O(N).

Multistage Portfolio Optimization

We now present an example from finance of multi-stage stochastic programming. Suppose that at time t=0 we have initial capital W0 to invest in n assets. Suppose further that we are allowed to rebalance our portfolio at times t=1,,T1 but without injecting additional cash into it. At each period t we make a decision about redistributing the current wealth Wt among the n assets. Let x0=(x10,,xn0) be the initial amounts invested in the n assets. We require that each xi0 is nonnegative and that the balance equation i=1nxi0=W0 should hold.

Consider the total returns ξt=(ξ1t,,ξnt) for each period t=1,,T. This forms a vector-valued random process ξ1,,ξT. At time period t=1, we can rebalance the portfolio by specifying the amounts x1=(x11,,xn1) invested in the respective assets. At that time the returns in the first period have been realized so it is reasonable to use this information in the rebalancing decision. Thus, the second-stage decisions, at time t=1, are actually functions of realization of the random vector ξ1, i.e., x1=x1(ξ1). Similarly, at time t the decision xt=(x1t,,xnt) is a function xt=xt(ξ[t]) of the available information given by ξ[t]=(ξ1,,ξt) the history of the random process up to time t. A sequence of functions xt=xt(ξ[t]), t=0,,T1, with x0 being constant, defines an implementable policy of the decision process. It is said that such a policy is feasible if it satisfies the model constraints with probability 1, i.e., the nonnegativity constraints xit(ξ[t])0, i=1,,n, t=0,,T1, and the balance of wealth constraints,

i=1nxit(ξ[t])=Wt,

where in period t=1,,T the wealth Wt is given by

Wt=i=1nξitxi,t1(ξ[t1]),

which depends on the realization of the random process and the decisions up to time t.

Suppose the objective is to maximize the expected utility of this wealth at the last period, that is, to consider the problem

maxE[U(WT)].

This is a multistage stochastic programming problem, where stages are numbered from t=0 to t=T1. Optimization is performed over all implementable and feasible policies. To complete the problem description one also needs to define the probability distribution of the random process ξ1,,ξT. This can be done in various ways. For example, one can construct a particular scenario tree defining time evolution of the process. If at every stage the random return of each asset is allowed to have two continuations, independent of other assets, then the total number of scenarios is 2nT.

In order to write dynamic programming equations, consider the above multistage problem backward in time. At the last stage t=T1, a realization ξ[T1]=(ξ1,,ξT1) of the random process is known and xT2 has been chosen. Therefore, one needs to solve the following problem

max\limits xT1E[U(WT)|ξ[T1]]subject toWT=i=1nξiTxi,T1i=1nxi,T1=WT1xT10

where E[U(WT)|ξ[T1]] denotes the conditional expectation of U(WT) given ξ[T1]. The optimal value of the above problem depends on WT1 and ξ[T1] and is denoted QT1(WT1,ξ[T1]).

Similarly, at stages t=T2,,1, one should solve the problem

max\limits xtE[Qt+1(Wt+1,ξ[t+1])|ξ[t]]subject toWt+1=i=1nξi,t+1xi,ti=1nxi,t=Wtxt0

whose optimal value is denoted by Qt(Wt,ξ[t]). Finally, at stage t=0, one solves the problem

max\limits x0E[Q1(W1,ξ[1])]subject toW1=i=1nξi,1xi0i=1nxi0=W0x00

Stagewise independent random process

For a general distribution of the process ξt, it may be hard to solve these dynamic programming equations. The situation simplifies dramatically if the process ξt is stagewise independent, i.e., ξt is (stochastically) independent of ξ1,,ξt1 for t=2,,T. In this case, the corresponding conditional expectations become unconditional expectations, and the function Qt(Wt), t=1,,T1 does not depend on ξ[t]. That is, QT1(WT1) is the optimal value of the problem

max\limits xT1E[U(WT)]subject toWT=i=1nξiTxi,T1i=1nxi,T1=WT1xT10

and Qt(Wt) is the optimal value of

max\limits xtE[Qt+1(Wt+1)]subject toWt+1=i=1nξi,t+1xi,ti=1nxi,t=Wtxt0

for t=T2,,1.

Biological applications

Stochastic dynamic programming is frequently used to model animal behaviour in such fields as behavioural ecology.[7][8] Empirical tests of models of optimal foraging, life-history transitions such as fledging in birds and egg laying in parasitoid wasps have shown the value of this modelling technique in explaining the evolution of behavioural decision making. These models are typically many staged, rather than two-staged.

Economic applications

Stochastic dynamic programming is a useful tool in understanding decision making under uncertainty. The accumulation of capital stock under uncertainty is one example, often it is used by resource economists to analyze bioeconomic problems[9] where the uncertainty enters in such as weather, etc..

Software tools

Modelling languages

All discrete stochastic programming problems can be represented with any algebraic modeling language, manually implementing explicit or implicit non-anticipativity to make sure the resulting model respects the structure of the information made available at each stage. An instance of an SP problem generated by a general modelling language tends to grow quite large (linearly in the number of scenarios), and its matrix looses the structure that is intrinsic to this class of problems, which could otherwise be exploited at solution time by specific decomposition algorithms. Extensions to modelling languages specifically designed for SP are starting to appear, see:

  • AIMMS - supports the definition of SP problems
  • SAMPL - a set of extensions to AMPL specifically designed to express stochastic programs (includes syntax for chance constraints, integrated chance constraints and Robust Optimization problems)

They both can generate SMPS instance level format, which conveys in a non-redundant form the structure of the problem to the solver.

Solvers

  • FortSP - solver for stochastic programming problems; it accepts SMPS input and implements various decomposition algorithms.
  • FuncDesigner - free software that has proprietary addon (free for small-scaled problems with research / educational purposes) for stochastic programming and optimization; example1, example2, example3
  • NEOS Solvers - Three solvers are available in the Neos Server: Bouncing Nested Benders Solvers (BNBS) for multi-stage stochastic linear programs, ddsip for two-stage stochastic programs with integer recourse, and Stochastic Decomposition (SD) for two-stage stochastic linear programs.
  • COIN-OR Stochastic Modeling Interface - An open source project within COIN-OR. It can read Stochastic MPS[10] input format as well as supports direct interfaces for scenario input, and generates the deterministic equivalent linear program for solution by COIN-OR solvers.

See also

Sportspersons Hyslop from Nicolet, usually spends time with pastimes for example martial arts, property developers condominium in singapore singapore and hot rods. Maintains a trip site and has lots to write about after touring Gulf of Porto: Calanche of Piana.

References

43 year old Petroleum Engineer Harry from Deep River, usually spends time with hobbies and interests like renting movies, property developers in singapore new condominium and vehicle racing. Constantly enjoys going to destinations like Camino Real de Tierra Adentro.

Further reading

  • John R. Birge and François V. Louveaux. Introduction to Stochastic Programming. Springer Verlag, New York, 1997.
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • G. Ch. Pflug: Optimization of Stochastic Models. The Interface between Simulation and Optimization. Kluwer, Dordrecht, 1996.
  • Andras Prekopa. Stochastic Programming. Kluwer Academic Publishers, Dordrecht, 1995.
  • Andrzej Ruszczynski and Alexander Shapiro (eds.) (2003) Stochastic Programming. Handbooks in Operations Research and Management Science, Vol. 10, Elsevier.
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • Stein W. Wallace and William T. Ziemba (eds.) (2005) Applications of Stochastic Programming. MPS-SIAM Book Series on Optimization 5
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534

External links

  1. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  2. Stein W. Wallace and William T. Ziemba (eds.). Applications of Stochastic Programming. MPS-SIAM Book Series on Optimization 5, 2005.
  3. Applications of stochastic programming are described at the following website, Stochastic Programming Community.
  4. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  5. http://www.neos-server.org/neos/
  6. 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  7. Mangel, M. & Clark, C. W. 1988. Dynamic modeling in behavioral ecology. Princeton University Press ISBN 0-691-08506-4
  8. Houston, A. I & McNamara, J. M. 1999. Models of adaptive behaviour: an approach based on state. Cambridge University Press ISBN 0-521-65539-0
  9. Howitt, R., Msangi, S., Reynaud, A and K. Knapp. 2002. "Using Polynomial Approximations to Solve Stochastic Dynamic Programming Problems: or A "Betty Crocker " Approach to SDP." University of California, Davis, Department of Agricultural and Resource Economics Working Paper.
  10. J.R. Birge, M.A.H. Dempster, H.I. Gassmann, E.A. Gunn, A.J. King and S.W. Wallace, A standard input format for multiperiod stochastic linear programs, COAL Newsletter #17 (1987) pp. 1-19.