MATLAB 帮助中心
本页采用了机器翻译。点击此处可查看最新英文版本。
自定义起点
CustomStartPointSet 是一个矩阵的对象包装器,其行代表 MultiStart 的起点。
CustomStartPointSet
MultiStart
tpoints = CustomStartPointSet(ptmatrix)
tpoints = CustomStartPointSet(ptmatrix) 从 ptmatrix 矩阵生成 CustomStartPointSet 对象。ptmatrix 的每一行代表一个起点。
ptmatrix
示例
全部展开
起点,指定为矩阵。ptmatrix 的每一行代表一个起点。
示例: randn(40,3) 创建了 3 维的 40 个起点。
randn(40,3)
数据类型: double
double
NumStartPoints
此 属性 为只读。
起点的数量,指定为正整数。NumStartPoints 是 ptmatrix 中的行数。
示例: 40
40
StartPointsDimension
每个起点的维度,指定为正整数。StartPointsDimension 是 ptmatrix 中的列数。
StartPointsDimension 与 problem.x0 中的元素数量相同,后者是传递给 run 的 problem 结构体。
problem.x0
run
problem
示例: 5
5
list
全部折叠
创建一个具有 64 个三维点的 CustomStartPointSet 对象。
[x,y,z] = meshgrid(1:4); ptmatrix = [x(:),y(:),z(:)] + [10,20,30]; tpoints = CustomStartPointSet(ptmatrix);
tpoints 是 ptmatrix 对象中包含的 CustomStartPointSet 矩阵。
tpoints
使用 tpoints 从 list 对象中提取原始矩阵。
tpts = list(tpoints);
检查 tpts 输出是否与 ptmatrix 相同。
tpts
isequal(ptmatrix,tpts)
ans = logical 1
在 R2010a 中推出
MultiStart | RandomStartPointSet | list
RandomStartPointSet
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处