randunc - Randomly sample uncertain parameters

Syntax

uset=randunc(N,'P1',Range1,'P2',Range2,...)

Description

uset=randunc(N,'P1',Range1,'P2',Range2,...) generates random values for the parameters P1, P2, ... subject to the range constraints Range1, Range2, ...

The parameters P1, P2, ... are uncertain parameters in a response optimization project. Each range constraint specifies lower and upper bounds for the uncertain parameter value.

For a scalar-valued parameter, p, specify the range as [Min,Max] or {Min,Max}. The interpretation is then

Min <= p <= Max

For vector- or matrix-valued parameters, specify the range as {Min,Max} where Min and Max are commensurate vectors or matrices. The interpretation is then

Min(i,j) <= p(i,j) <= Max(i,j)

The set of uncertain parameter values consists of

To optimize the responses based on uncertain parameter values, set the Optimized property of the uncertain parameter object, uset, to true. By default, this value is set to false.

Use the setunc function to set the uncertain parameter values within the response optimization project.

Example

Create a set of 12 randomly generated uncertain parameter values for the parameters P, I, and D.

uset=randunc(4,'P',{1,4},'I',{0.1,0.3},'D',{30,40})

This returns

    Optimized: [12x1 logical]
            P: [12x1 double]
            I: [12x1 double]
            D: [12x1 double]

Scattered set with 12 parameter vectors.

View the data in detail using dot notation. For example:

uset.P
ans =

    1.0000
    4.0000
    1.0000
    4.0000
    1.0000
    4.0000
    1.0000
    4.0000
    2.2372
    2.8691
    2.6946
    1.1896

To optimize responses based on all the parameter combinations within uset, enter the following command.

uset.Optimized(1:end)=true

See Also

gridunc, setunc

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS