-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysisopt.py
More file actions
executable file
·26 lines (24 loc) · 1.15 KB
/
Copy pathanalysisopt.py
File metadata and controls
executable file
·26 lines (24 loc) · 1.15 KB
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
class AnalysisOpt(object):
""" analysis option, equivalent to analysisopt struct in FERUM. only FORM related parameters are included
Attributes:
ig_max: Maximum number of global iterations allowed in the search algorithm
il_max: Maximum number of line iterations allowed in the search algorithm
e1: Tolerance on how close design point is to limit-state surface
e2: Tolerance on how accurately the gradient points towards the origin
step_code: 0: step size by Armijo rule, otherwise: given value (0 < s <= 1) is the step size.
grad_flag: 'DDM': direct differentiation, 'FFD': forward finite difference
"""
def __init__(self, imax=1000, e1=1e-3, e2=1e-3, stepcode=0,
gradflag='FFD', ffdparam=1000,ffdparamthetag=1000,
recordu=True, recordx=True, flagsens=True, verbose=True):
self.imax = imax
self.e1 = e1
self.e2 = e2
self.stepcode = stepcode
self.gradflag = gradflag
self.ffdparam=ffdparam
self.ffdparamthetag=ffdparamthetag
self.recordu=recordu
self.recordx=recordx
self.flagsens = flagsens
self.verbose = verbose