Skip to content

Commit d1da9c5

Browse files
committed
removing mandatory_indicators functionality for now
1 parent 2f2e8ae commit d1da9c5

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

hydradx/model/amm/omnix_solver_simple.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,15 +1842,16 @@ def find_solution_outer_approx(state: OmnipoolState, init_intents: list, amm_lis
18421842
best_intent_deltas = [0]*m
18431843
milp_obj = -inf
18441844

1845-
# - force small trades to execute
1846-
mandatory_indicators = [0] * r
1847-
for i in exec_indices:
1848-
mandatory_indicators[i] = 1
1849-
BK = np.where(np.array(mandatory_indicators) == 1)[0] + 4 * n + 3 * sigma + m
1845+
# # - force small trades to execute
1846+
# mandatory_indicators = [0] * r
1847+
# for i in exec_indices:
1848+
# mandatory_indicators[i] = 1
1849+
# BK = np.where(np.array(mandatory_indicators) == 1)[0] + 4 * n + 3 * sigma + m
18501850
new_A = np.zeros((1, k_milp))
1851-
new_A[0, BK] = 1
1851+
# new_A[0, BK] = 1
18521852
new_A_upper = np.array([inf])
1853-
new_A_lower = np.array([len(BK)])
1853+
# new_A_lower = np.array([len(BK)])
1854+
new_A_lower = np.array([0]) # removing mandatory_indicators for now
18541855

18551856
Z_U_archive = []
18561857
Z_L_archive = []

0 commit comments

Comments
 (0)