We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 325a53e commit 9cf95f7Copy full SHA for 9cf95f7
1 file changed
pycona/query_generation/pqgen_solve.py
@@ -105,6 +105,7 @@ def generate(self, X=None):
105
106
m = cp.Model(Cl)
107
s = cp.SolverLookup.get("ortools", m)
108
+ s.user_vars = set(X)
109
110
if len(B) > self.blimit:
111
# Sort constraints by probability and take first 5000 with highest probability
@@ -158,12 +159,13 @@ def generate(self, X=None):
158
159
else: # no solution was found with the most probable constraints, so we need to solve with the original constraints
160
161
162
163
restore_scope_values(X, values)
164
165
### Third solve with objective ###
166
if self.time_limit - t2 <= 0:
167
return X
-
168
+
169
if self.env.verbose > 2:
170
print("Solving with objective...")
171
0 commit comments