elasticized constraint is no more
This commit is contained in:
parent
b3c5808849
commit
d6e1cb37ce
@ -79,9 +79,3 @@ def get_random_bundles(total_form_items: int,
|
||||
return selected_bundles
|
||||
else:
|
||||
return get_random_bundles(total_form_items, total_bundles - 1, bundles)
|
||||
|
||||
def elasticize_constraint(lp_constraint, parameters = {}):
|
||||
penalty = parameters.get('penalty', 1) # could be a 100% penalty
|
||||
proportionFreeBound = parameters.get('proportionFreeBound', 0.25)
|
||||
|
||||
return lp_constraint.makeElasticSubProblem(penalty=penalty, proportionFreeBound=proportionFreeBound)
|
||||
|
Loading…
x
Reference in New Issue
Block a user