Main Content

RandomStartPointSet

Random start points

Description

ARandomStartPointSetobject describes how to generate a set of pseudorandom points for use withMultiStart. ARandomStartPointSetobject does not contain points. It contains parameters for generating the points whenMultiStartruns or when you use thelistfunction.

Creation

Description

example

rs = RandomStartPointSetcreates a defaultRandomStartPointSetobject.

example

rs = RandomStartPointSet(Name,Value)sets properties using name-value pairs.

example

rs = RandomStartPointSet(oldrs,Name,Value)creates a copy of theoldrsRandomStartPointSetobject, and sets properties using name-value pairs.

Properties

expand all

Absolute value of the default bounds for unbounded components, specified as a positive scalar.

Example:1e2

Data Types:double

Number of start points, specified as a positive integer.

Example:40

Data Types:double

Object Functions

list List start points

Examples

collapse all

创建一个defaultRandomStartPointSetobject.

rs = RandomStartPointSet
rs = RandomStartPointSet with properties: NumStartPoints: 10 ArtificialBound: 1000

创建一个RandomStartPointSetobject for 40 points.

rs = RandomStartPointSet('NumStartPoints',40);

创建一个problem with 3-D variables, lower bounds of 0, and upper bounds of[10,20,30].

问题= createOptimProblem ('fmincon','x0',rand(3,1),'lb',zeros(3,1),'ub',[10,20,30]);

Generate a random set of 40 points consistent with the problem.

points = list(rs,problem);

Examine the maximum and minimum generated components.

largest = max(max(points))
largest = 29.8840
smallest = min(min(points))
smallest = 0.1390

创建一个RandomStartPointSetobject that generates 50 points.

rs = RandomStartPointSet('NumStartPoints',50)
rs = RandomStartPointSet with properties: NumStartPoints: 50 ArtificialBound: 1000

Updatersto use 100 points and an artificial bound of 1e4.

rs = RandomStartPointSet(rs,'NumStartPoints', 100,'ArtificialBound',1e4)
rs = RandomStartPointSet with properties: NumStartPoints: 100 ArtificialBound: 10000

You can also update properties using dot notation.

rs.ArtificialBound = 500
rs = RandomStartPointSet with properties: NumStartPoints: 100 ArtificialBound: 500

中on History

Introduced in R2010a