你有四种方式多层的
哪些开始点用于本地求解器:
笔记
你可以控制是否多层的
使用所有起始点,或者只有满足范围或其他不等式约束的那些点。有关更多信息,请参阅过滤器开始点(可选)。
运行的语法多层的
为了K.
开始点是
[Xmin,Fmin,Flag,Outpt,Allmins] =运行(MS,问题,K);
积极的整数K.
指定起点数量多层的
用途。多层的
使用问题的维度和界限生成随机开始点问题
结构体。多层的
生成K - 1
随机起点,也使用X0.
从中开始点问题
结构体。
创建一个RandalStartPointSet.
对象如下:
stpoints = randalStartPointSet;
跑多层的
从A开始RandalStartPointSet.
如下:
[Xmin,Fmin,Flag,Outpt,Allmins] =运行(MS,问题,STPoints);
默认情况下A.RandalStartPointSet.
对象生成10个起点。控制起点数量numstartpoints.
财产。例如,要生成40个开始点:
stpoints = randalStartPointSet('numstartpoints',40);
你可以设置一个alitebound.
为一个RandalStartPointSet.
。这个alitebound.
与问题结构的界限合作:
如果组件没有界限,RandalStartPointSet.
使用下限- 一个人
,和一个上限alitebound.
。
如果组件具有下限磅
但没有上限,RandalStartPointSet.
使用上限lb + 2 * aliptibound
。
同样,如果组件具有上限UB.
但没有下限,RandalStartPointSet.
使用下限UB - 2 * aliptbound
。
例如,生成100.
开始点alitebound.
的50.
:
stpoints = randalStartPointSet('numstartpoints',100,......'aliptiphound',50);
一种RandalStartPointSet.
对象生成具有与相同维度的起点X0.
问题结构;看列表
。
使用特定的起点集,将它们包装在一个customstartpointset.
如下:
将起点放在矩阵中。矩阵的每一行代表一个起点。多层的
运行矩阵的所有行,但才能通过筛选startpointorun.
财产。有关更多信息,请参阅多际轨道算法。
创建一个customstartpointset.
来自矩阵的对象:
tpoints = customstartpointset(ptmatrix);
例如,创建一组40个五维点,每个组件的点等于10加上一个符号分布式变量,平均25:
pts = -25 * log(rand(40,5))+ 10;tpoints = customstartpointset(pts);
跑多层的
从A开始customstartpointset.
如下:
[Xmin,Fmin,Flag,Outpt,Allmins] =运行(MS,问题,TPoints);
从a获取原始点数customstartpointset.
对象,使用列表
:
pts = list(tpoints);%假设tpoints是一个自定义artartpointset
一种customstartpointset.
有两个属性:startpointdimension.
和numstartpoints.
。您可以使用这些属性来查询customstartpointset.
目的。例如,tpoints.
该示例中的对象具有以下属性:
tpoints.startpointsdimension ans = 5 tpoints.numstartPoints ANS = 40
使用特定的一组起点以及一些随机生成的点,通过一个小区数组RandalStartPointSet.
或者customstartpointset.
对象。
例如,使用40个特定的五维点用于起始点的自定义artpointset对象和40个额外的五维点RandalStartPointSet.
:
pts = -25 * log(rand(40,5))+ 10;tpoints = customstartpointset(pts);rpts = randomstartpointset('numstartpoints',40);allpts = {tpoints,rpts};
跑多层的
从这一点开始allpls.
单元格阵列:
%假设MS和问题存在[Xmin,Fmin,Flag,Outpt,Allmins] =运行(MS,问题,ALLPTS);