elasticized constraint is no more

This commit is contained in:
Adrian Manteza 2022-03-10 22:48:36 +00:00
parent b3c5808849
commit d6e1cb37ce

View File

@ -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)