Skip to content

Commit

Permalink
Removing number_of_std inactive attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
1ozturkbe committed Sep 19, 2019
1 parent f2ae93c commit 9696208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
6 changes: 1 addition & 5 deletions robust/robust.py
Expand Up @@ -39,7 +39,6 @@ def __init__(self, **options):
'maxNumOfLinearSections': 20,
'iterationsRelativeTolerance': 1e-4,
'iterationLimit': 10,
'probabilityOfSuccess': 0.9,
'lognormal': True
}
for key, value in options.items():
Expand Down Expand Up @@ -78,8 +77,6 @@ def __init__(self, model, type_of_uncertainty_set, **options):
'intercepts': slopes_intercepts[1]
}

self.number_of_stds = norm.ppf(self.setting.get("probabilityOfSuccess") / 2.0 + 0.5)

if 'nominalsolve' in options:
self.nominal_solve = options['nominalsolve']
else:
Expand Down Expand Up @@ -279,8 +276,7 @@ def classify_gp_constraints(self, gp_posynomials, offset=0):
two_term_approximation = TwoTermApproximation(p, self.setting)
large_gp_posynomials.append(two_term_approximation)
else:
robust_large_p = RobustifyLargePosynomial(p, self.type_of_uncertainty_set,
self.number_of_stds, self.setting)
robust_large_p = RobustifyLargePosynomial(p, self.type_of_uncertainty_set, self.setting)
ready_gp_constraints += robust_large_p. \
robustify_large_posynomial(self.type_of_uncertainty_set, i + offset, self.setting)

Expand Down
3 changes: 1 addition & 2 deletions robust/robustify_large_posynomial.py
Expand Up @@ -13,10 +13,9 @@

class RobustifyLargePosynomial(object):

def __init__(self, p, type_of_uncertainty_set, number_of_stds, setting):
def __init__(self, p, type_of_uncertainty_set, setting):
self.p = p
self.type_of_uncertainty_set = type_of_uncertainty_set
self.number_of_stds = number_of_stds
self.setting = setting

@staticmethod
Expand Down

0 comments on commit 9696208

Please sign in to comment.