主要内容

RandomStartPointSet

随机起始点

描述

一个RandomStartPointSet对象描述如何生成一组伪随机点以使用MultiStart.一个RandomStartPointSet对象不包含点。它包含用于生成点的参数MultiStart运行或当你使用列表函数。

创建

描述

例子

rs = RandomStartPointSet创建一个默认的RandomStartPointSet对象。

例子

rs = RandomStartPointSet (名称,值使用名称-值对设置属性。

例子

rs = RandomStartPointSet (oldrs名称,值的副本oldrsRandomStartPointSet对象,并使用名称-值对设置属性。

属性

全部展开

无边界组件的默认边界的绝对值,指定为正标量。

例子:1 e2

数据类型:

起始点的数目,指定为正整数。

例子:40

数据类型:

对象的功能

列表 列表开始点

例子

全部折叠

创建一个默认的RandomStartPointSet对象。

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

创建一个RandomStartPointSet目标40分。

rs = RandomStartPointSet (“NumStartPoints”, 40);

创建一个三维变量的问题,下界为0,上界为(10年,20年,30)

问题= createOptimProblem (“fmincon”“x0”兰德(1),“磅”0 (1),乌兰巴托的, 10年,20年,30);

生成与问题一致的随机40点集。

点=列表(rs,问题);

检查生成的最大和最小组件。

最大= max (max(点))
最大= 29.8840
最小=最小(最小值(点))
最小= 0.1390

创建一个RandomStartPointSet生成50点的对象。

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

更新rs使用100点和一个人为的1e4边界。

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

您还可以使用点表示法更新属性。

rs.ArtificialBound = 500
rs = RandomStartPointSet with properties: NumStartPoints: 100 ArtificialBound: 500
介绍了R2010a