summaryrefslogtreecommitdiffstats
path: root/scilab_doc/neldermead/scripts/initialsimplex_axes.sce
blob: 3400bf1e36b27b80ce4167b26e9e2286cad08f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2009 - Digiteo - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution.  The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt

// Draw a simplex along the axes in 2D
x = zeros(4,1)
y = zeros(4,1)

// First point is (0,0)
// Second point is (1,0)
x(2) = 1.0
y(2) = 0
// Third point is (0,2)
x(3) = 0.0
y(3) = 2.0
// Fourth point is (0,0), just to make the loop in the simplex
// Now plot the simplex
plot(x,y)
f = gcf()
f.children.children.children.thickness = 4
f.children.children.children.mark_style = 9
f.children.children.children.mark_foreground = 3
f.children.children.children.mark_size = 10