-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMyAlgorithm.py
39 lines (34 loc) · 927 Bytes
/
MyAlgorithm.py
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
30
31
32
33
34
35
36
37
38
39
#title:...
#help:...
#author:...
#type:...
#output:...
#options:...
#options.help:...
## constructor and initializer of session
# @param options algorithm options
# @return algorithm object : environment options, status
def MyAlgorithm(options) :
...
return algorithm
## first design building.
# @param algorithm object handling options, status, ...
# @param d the number of variables all set in [0,1]
def getInitialDesign(algorithm,d) :
...
return X
## iterated design building.
# @param algorithm object handling options, status, ...
# @param X matrix of current doe variables (in [0,1])
# @param Y matrix of current results
# @return matrix of next doe step
def getNextDesign(algorithm,X,Y) :
...
return X
## final analysis. All variables are set in [0,1].
# @param algorithm object handling options, status, ...
# @return HTML string of analysis
def displayResults(algorithm,X,Y) :
...
return html
...