• Keine Ergebnisse gefunden

Stochastic Nonlinear Programming System

N/A
N/A
Protected

Academic year: 2022

Aktie "Stochastic Nonlinear Programming System"

Copied!
71
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

W O R K I N G P A P E R

STOCHASTIC NONLINEAR PROGRAMMmG SYSTEM

N. R o e n k o

V. Loskutot.

S. Uryaa'ev

October 1989 WP-89-075

-

I n t e r n a t i o n a l l n s t ~ t u t e for Appl~ed Systems Analysis

(2)

STOCHASTIC NONLINEAR PROGRAMMING SYSTEM

N . Roenko V . Loekutov S. Uryae'ev

October 1989 W P-84075

Working Papere are interim reports on work of the International Institute for Applied System Analysis and have received only limited review. Views or opinions expressed herein do not necessarily represent those of the Institute or of its National Member Organizations.

INTERNATIONAL INSTITUTE FOR APPLIED SYSTEMS ANALYSIS A-2361 Laxenburg, Austria

(3)

STOCHASTIC NONLINEAR PROGRAMMING SYSTEM USER' S GUIDE

N. Roenko, V. Loskutov, S. Uryas'ev

(4)

F O R E W O R D

This paper contains a detailed description of the Stochastic Nonlinear Programming System (SNLPI intended for solving stochastic optimization problems with simple recourse. This system is a result of collaboration between the Glushkov Institute of Cybernetics (Kiev, USSR1 and the International Institute for Applied System Analysis (IIASAI within the framework of the Adaptation and Optimization Project in the System and Decision Sciences Program.

Alexander B. Kurzhanski ,

Chairman

System and Decision Sciences Program

(5)

C O N T E N T S

1 . Introduction . . . 1

. . . 2 . Problem Statements 4 . . . 3 . Link between Deterministic and Stochastic Problems 5 . . . 4 . Algorithms for Solving Problems 8 5 . Input and Output Data . . . 15

5.1. General Information . . . 15

5.2. The Subroutine CALCTH Requirements . . . 19

5.3. The Subroutine CALCFG Requirements . . 22

6 . System Setup . . . 25

7 . How to Run the SNLP . . . 25

7.1. SNLPFunctions . . . 25

7.2. Starting the System . . . 29

7.3. Menu Manipulations . . . 30

7.4. Main Menu . . . 30

7.5. Setting the Problem Specification . . . 30

7.6. Creating and Modifying Linear Deterministic Source Data . . . 32

7.7. Deterministic Optimization Subsystem . 35 7.7.1. General Information about the Subsystem . 35 7.7.2. Creating the Subroutine CALCFG and the NLP . . . Solver 37 7.7.3. Creating the Initial Point File . . . . 42

7.7.4. Solving LP and NLP Problems . . . 44

7.7.5. Viewing the Solution File . . . 45

. . .

7.7.6. Exit 45

(6)

7.8. Converting Deterministic Problems to Their Stochastic . . .

Analogs 45

7.9. Creating and Modifying Linear Stochastic Source

Data . . . 48

7.10. Stochastic Optimization Subsystem . . . 51

7.10.1. General Information About the Subsystem . 51 7.10.2. Creating the Subroutines CALCFG and CALCTH and the Stochastic Solver . . . 51

7.10.3. Creating the Initial Point File . 53 7.10.4. Assigning Values to the Algorithm Parameters . . 53

7.10.5. Solving Stochastic Programming Problems . 54 7.10.6. Viewing the Solution File . . . 55

7.10.7. Exit . . . 55

7.11. Converting Stochastic Problems to Their Deterministic Analogs . . . 55

7.12. Viewing and Modifying Files . . . 56

7.13. Access to the Operating System . . . 58

7.14. Exit from the Main Menu . . . 58

8 . One Example . . . 58

9 . Summary . . . 61

10 . References . . . 63

(7)

1. INTRODUCTION

This paper may be considered as a further development of the IIASA/SDS activity aimed at developing solution methods, data standards, software for stochastic optimization problems etc.

The state of activities for software development is reflected in the ADO/SDS library which is being constantly replenished. The SNLP being intended for IBWPC and compatibles shall add to this library. The SNLP differs to some extent from the analogous systems of the ADO/SDS library.

The Stochastic Nonlinear Programming System (SNLPI was developed above all out of necessity to solve practical problems. Above all these are problems of power systems development accounting for device failures, problems of prospective planning accounting for demand uncertainty, and agricultural problems accounting for weather conditions.

Taking into consideration that the main source of stochastic problems is represented by deterministic problems, the SNLP provides for solving both stochastic and deterministic problems.

It also supports the conversion of a deterministic problem into its stochastic analog and vice versa.

There is no exaggeration in stating that two-stage stochastic problems, or problems with recourse, occupy a central place among the range of stochastic optimization problems.

Evidence of this is found in the voluminous literature dedicated to these problems, and in the activity in the development of software for their solution. The most widely spread are linear

(8)

stochastic problems with recourse, which may be regarded as a certain generalization of linear CLPI and nonlinear CNLPI programming problems with linear constraints accounting for the possible uncertainty of the source data.

As a rule, the values of many parameters in real problems are never absolutely accurate. This inaccuracy may have various nature. For instance, in problems of long-term planning some model coefficients are obtained by forecasting, and in the macroeconomic models some coefficients are obtained by means of aggregate evaluation. Among the sources of the above inaccuracy may be impossibility or extreme sophistication of the precise evaluation of parameters, use of expert estimates concerning the parameter values, etc. For certain types of problems Ceg.

agricultural production problems) this inaccuracy of parameters may amount to 100% and more.

Disregarding the uncertain nature of parameters and replacing them by specific values (for instance, mathematical expectation) in the solwtion of LP or NLP problems may lead to invalid results, due to the problem's instability in relation to the source data. Consequently, the optimization model may be

inadequate. Information about the solution stability of a problem may be obtained by means of post-optimum LP-analysis Cthe latter's abilities, however, are rather limited).

If this adequacy is lacking, the given situation may be tackled by various approaches: optimization by minimax criterium, converting a problem to a stochastic programming one with probability constraints, or to a stochastic problem with

(9)

recourse C11.

This paper deals with the latter approach based upon creating the stochastic analog for a nonlinear, and sometimes linear, programming problem (a stochastic problem with simple recourse). This approach assumes that uncertain or inaccurate source data of the model may be interpreted as random values.

The main ideas used in the algorithm for solving stochastic problems are reflected in [41. A special modification of the well-known stochastic quasigradients algorithm for stochastic problems with recourse is implemented in the SNLP.

This paper contains a description of the Stochastic Nonlinear Programming System (SNLPI intended for solving stochastic problems with recourse.

The SNLP contains a special matrix-graphic editor for entering and modifying data for optimization problems in a user-friendly form.

The SNLP has been influenced by the IIASA activity on

"data standartization" for stochastic optimization problems.

At present, activities are being carried out to develop the SNLP in many directions. The SNLP applicability will be extended to the solution of problems with complete recourse as well as dynamic multi-stage problems. The number of distributions processed will also be enlarged. The SNLP will be extended for the a very important feature, sensitivity analysis. The SNLP sphere of usage will be expanded as well. The system is intended to be used in decision support systems.

(10)

2. PROBLEM STATEMENTS

The SNLP is intended to solve the following problems:

- linear programming (LP1 problems;

-

nonl inear programming ( NLPI problems under 1 inear constraints;

- stochastic programming CSPI problems with recourse.

The first two types of problems will be called deterministic, the third - stochastic.

The nonlinear programming problems under linear constraints are as follows:

min X

<

Cc,x1 + F(x1

>

(11

subject to

If the function F(x1 is absent in 1 , the problem turns into a linear programming problem.

Stochastic programming problems with recourse are as follows:

min <Cc,xI + F(x1 + Q(x1

>

(31

+ +

Q(x1 = I I min

<

q y + q-y- ( y*- y-= h(w)

-

T(w)x,

subject to

where [E stands for mathematical expectation, and w is a set of random values

.

(11)

For every value of w, the following equation must hold:

yi +( wl

.

y, -( w) = 0

i.e. one of these two variables must equal 0 for any w.

Here and below i is a entry (element) number of the vector.

The equalities in (41 determine the so-called stochastic constraints. The vector h(w1 is called the right hand side of the stochastic constraints or the stochastic right hand side. The matrix T(w1 is a technology matrix.

The linear function in (41 determines the value of the recourse function. The vectors q-, q' contain specific recourse coefficients.

Each entry of the vector h(w1 may be deterministic, random with a discrete or standard uniform, normal, exponential distribution, or random with the distribution generated in the user's subroutine CALCTH.

The probability properties of matrix T(w1 are specified by rows. The matrix T(w> row may consist entirely of deterministic entries. Otherwise all the random (and deterministic) entries of this row are generated in CALCTH.

3. LINK BETWEEN DETERMINISTIC AND STOCHASTIC PROBLElctS

An important source of stochastic problems with recourse is represented by deterministic optimization problems, in particular linear and nonlinear programming problems under constraints containing random values. As a rule, a deterministic problem is solved first, and then, after analyzing the obtained solution, its stochastic analog is created.

(12)

To analyze t h e s o l u t i o n of a s t o c h a s t i c problem it may be useful t o compare its s o l u t i o n with t h a t of a d e t e r m i n i s t i c problem. For t h a t purpose t h e SNLP supports t h e linkage between d e t e r m i n i s t i c and s t o c h a s t i c problems.

Let us consider t h i s linkage i n d e t a i l . Let a l i n e a r programming problem have t h e following form:

min cx

X (61

s u b j e c t t o

A x = b , x L O .

Let some e n t r i e s a, , and some e n t r i e s b be random values.

1

Let us e x t r a c t from (71 t h e c o n s t r a i n t s with random values i n t h e A and b rows. Let us form t h e matrix T(w1 and t h e vector h(w1 from t h e s e c o n s t r a i n t s , and t h e matrix A' and t h e vector b' from those remaining. So, A' and b' c o n s i s t e n t i r e l y of d e t e r m i n i s t i c e n t r i e s , and t h e matrix T(w1 and/or t h e vector h(w1 a l s o have random e n t r i e s . Each T(w1 row or t h e corresponding h(w1 e n t r y should have a t l e a s t one random value.

Then t h e c o n s t r a i n t s (71 may be expressed as follows:

The requirement f o r e q u a l i t y (91 t o hold i n every r e a l i z a t i o n of w random values o f t e n l e a d s t o t h e absence of a f e a s i b l e s o l u t i o n of an LP o r NLP problem.

Let us s p e c i f y t h e occuring discrepancies as y*, y-:

(13)

y:(w1 = max (hi(wl - [T(wIxl. ,O1 2 0

1

(101 yi(w1 = max ([T(wIxl, 1

-

h, 1 (w1 ,O1 2 0 ,

which express the losses caused by the violation of the constraints (91 motivated by the uncertainty of the source data.

Using the we1 1 -known economic interpretat ion of LP problems C "input - output" models1 let us consider the a. . coefficients

1 , J

as the specific input, the b. as the available resources, the

1

y'(w1 discrepancies as the losses due to the shortage of resources, and the ytCwl as the losses due to the surplus of resources. It is obvious that in every realization of w only one kind of losses is observed; therefore for every w:

ytCw1.yi-(w1 1 = 0.

The violation of constraints leads to additional losses for their correction which may be considered proportional to the discrepancies. Let us specify the specific losses due to the shortage and the surplus of resources as q- and qt . Then the expected losses caused by the violation of constraints (91 are as follows:

IE (q-y-C w1 + q'yt( w11 C111

subject to

ytCwl - ye(wl = h(w1

-

T(w1x

.

Minimizing the expected losses with respect to yt(wl and y'Cw1, we shall obtain the function QCx1 expressing the minimum expected losses for every x.

Adding the function QCx1 to the objective function, we shall obtain a problem with recourse which may be solved by means of

(14)

the SNLP.

The constraints (21 may contain stochastic entries, which does not necessarily imply a violation. The method of creating stochastic constraints, and the q-, q+ values depending on the type of linear constraints, are shown in Tables 1 and 2.

The method of convert deterministic problems to their stochastic analogs is described in detail because their close relation determines the SNLP usage.

The deterministic analogs of stochastic problems with recourse (NLP and LP problems1 are created by inverse conversion, i.e. by averaging the h(w1 and T(w1 random values, deleting the recourse function QCx1 from the objective function (31 and adding to (51 the following constraints:

- -

where Ti and hi are mathematical expectations of Ti and hi respect ivly.

4. ALGORITM FOR SOLVING PROBLEK

One of the multiplicative simplex methods [21 is implemented for solution of linear programming problems.

For solution of nonlinear programming problems, one of the linearization methods for solving problems with a nonlinear objective function and linear constraints C 61 is implemented.

For solving stochastic problems with recourse the stochastic

(15)

Table 1

C r e a t i n g S t o c h a s t i c Analogs For D e t e r m i n i s t i c S i n g l e - Bounded C o n s t r a i n t s [Axl, 5 b, and [Axl, 2 b,

C o n s t r a i n t t y p e

- -

<

-

2

Value of Q- n o t e q u a l 0 g r e a t e r t h a n 0

0

Value of qt n o t equal 0

0 g r e a t e r

t h a n 0

Value of h . 1 ( w l

b. 1

b i

b i

-

The " s t o c h a s t i c " row is d e l e t e d from A

Yes Yes Yes

(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)
(41)
(42)
(43)
(44)
(45)
(46)
(47)
(48)
(49)
(50)
(51)
(52)
(53)
(54)
(55)
(56)
(57)
(58)
(59)
(60)
(61)
(62)
(63)
(64)
(65)
(66)
(67)
(68)
(69)
(70)
(71)

Referenzen

ÄHNLICHE DOKUMENTE

In conclusion of this section we present two Figures which illustrate different evolution pathways of the whole system as the total amount of matter increases (Fig. Here we

This paper, based on my lecture at the International Conference on Stochastic Program- ming in Udine (Italy) in 1992, takes stock and goes through a list of the

J-B Wets (1986): Asymptotic behavior of statistical estimators and optimal solutions for stochastic optimization problems.. J-B Wets (1987): Asymptotic behavior of

Two important special cases of ( 1. For this reason a variety of specialized approaches have been developed for the two cases mentioned earlier.. The latter one is of

NONLINEAR PROGRAMMING TECHNIQUES APPLIED TO STOCHASTIC PROGRAMS WLTH

Linear programming techniques for large-scale deterministic problems are highly developed a n d offer hope for t h e even larger problems one obtains in certain

In this paper, assuming that the DM has fuzzy goal for each of the objective functions in multiobjective nonlinear programming problems, we present a new interactive

Certain multistage decision problems that arise frequently in opera1ions management planning and control allow a natural formulalion as multistage stochastic