CustomStartPointSet
Custom start points
A CustomStartPointSet is an object wrapper of a matrix whose rows represent start points for MultiStart.
MultiStart
tpoints = CustomStartPointSet(ptmatrix)
example
tpoints = CustomStartPointSet(ptmatrix) generates a CustomStartPointSet object from the ptmatrix matrix. Each row of ptmatrix represents one start point.
ptmatrix
expand all
Start points, specified as a matrix. Each row of ptmatrix represents one start point.
Example: randn(40,3) creates 40 start points of 3 dimensions.
randn(40,3)
Data Types: double
double
NumStartPoints
This property is read-only.
Number of start points, specified as a positive integer. NumStartPoints is the number of rows in ptmatrix.
Example: 40
40
StartPointsDimension
Dimension of each start point, specified as a positive integer. StartPointsDimension is the number of columns in ptmatrix.
StartPointsDimension is the same as the number of elements in problem.x0, the problem structure you pass to run.
problem.x0
problem
run
Example: 5
5
list
collapse all
Create a CustomStartPointSet object with 64 three-dimensional points.
[x,y,z] = meshgrid(1:4); ptmatrix = [x(:),y(:),z(:)] + [10,20,30]; tpoints = CustomStartPointSet(ptmatrix);
tpoints is the ptmatrix matrix contained in a CustomStartPointSet object.
tpoints
Extract the original matrix from the tpoints object by using list.
tpts = list(tpoints);
Check that the tpts output is identical to ptmatrix.
tpts
isequal(ptmatrix,tpts)
ans = logical 1
list | MultiStart | RandomStartPointSet
RandomStartPointSet
You have a modified version of this example. Do you want to open this example with your edits?