@@ -169,6 +169,7 @@ cdef SCIP_RETCODE PyConsFree (SCIP* scip, SCIP_CONSHDLR* conshdlr) noexcept with
169169
170170cdef SCIP_RETCODE PyConsInit (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
171171 PyConshdlr = getPyConshdlr(conshdlr)
172+ cdef int i
172173 cdef constraints = []
173174 for i in range (nconss):
174175 constraints.append(getPyCons(conss[i]))
@@ -178,6 +179,7 @@ cdef SCIP_RETCODE PyConsInit (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** c
178179cdef SCIP_RETCODE PyConsExit (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
179180 PyConshdlr = getPyConshdlr(conshdlr)
180181 cdef constraints = []
182+ cdef int i
181183 for i in range (nconss):
182184 constraints.append(getPyCons(conss[i]))
183185 PyConshdlr.consexit(constraints)
@@ -186,6 +188,7 @@ cdef SCIP_RETCODE PyConsExit (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** c
186188cdef SCIP_RETCODE PyConsInitpre (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
187189 PyConshdlr = getPyConshdlr(conshdlr)
188190 cdef constraints = []
191+ cdef int i
189192 for i in range (nconss):
190193 constraints.append(getPyCons(conss[i]))
191194 PyConshdlr.consinitpre(constraints)
@@ -194,6 +197,7 @@ cdef SCIP_RETCODE PyConsInitpre (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS*
194197cdef SCIP_RETCODE PyConsExitpre (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
195198 PyConshdlr = getPyConshdlr(conshdlr)
196199 cdef constraints = []
200+ cdef int i
197201 for i in range (nconss):
198202 constraints.append(getPyCons(conss[i]))
199203 PyConshdlr.consexitpre(constraints)
@@ -202,6 +206,7 @@ cdef SCIP_RETCODE PyConsExitpre (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS*
202206cdef SCIP_RETCODE PyConsInitsol (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
203207 PyConshdlr = getPyConshdlr(conshdlr)
204208 cdef constraints = []
209+ cdef int i
205210 for i in range (nconss):
206211 constraints.append(getPyCons(conss[i]))
207212 PyConshdlr.consinitsol(constraints)
@@ -210,6 +215,7 @@ cdef SCIP_RETCODE PyConsInitsol (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS*
210215cdef SCIP_RETCODE PyConsExitsol (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss, SCIP_Bool restart) noexcept with gil:
211216 PyConshdlr = getPyConshdlr(conshdlr)
212217 cdef constraints = []
218+ cdef int i
213219 for i in range (nconss):
214220 constraints.append(getPyCons(conss[i]))
215221 PyConshdlr.consexitsol(constraints, restart)
@@ -246,6 +252,7 @@ cdef SCIP_RETCODE PyConsTrans (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS* s
246252cdef SCIP_RETCODE PyConsInitlp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss, SCIP_Bool* infeasible) noexcept with gil:
247253 PyConshdlr = getPyConshdlr(conshdlr)
248254 cdef constraints = []
255+ cdef int i
249256 for i in range (nconss):
250257 constraints.append(getPyCons(conss[i]))
251258 result_dict = PyConshdlr.consinitlp(constraints)
@@ -255,6 +262,7 @@ cdef SCIP_RETCODE PyConsInitlp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
255262cdef SCIP_RETCODE PyConsSepalp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss, int nusefulconss, SCIP_RESULT* result) noexcept with gil:
256263 PyConshdlr = getPyConshdlr(conshdlr)
257264 cdef constraints = []
265+ cdef int i
258266 for i in range (nconss):
259267 constraints.append(getPyCons(conss[i]))
260268 result_dict = PyConshdlr.conssepalp(constraints, nusefulconss)
@@ -265,6 +273,7 @@ cdef SCIP_RETCODE PyConsSepasol (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS*
265273 SCIP_SOL* sol, SCIP_RESULT* result) noexcept with gil:
266274 PyConshdlr = getPyConshdlr(conshdlr)
267275 cdef constraints = []
276+ cdef int i
268277 for i in range (nconss):
269278 constraints.append(getPyCons(conss[i]))
270279 solution = Solution.create(scip, sol)
@@ -276,6 +285,7 @@ cdef SCIP_RETCODE PyConsEnfolp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
276285 SCIP_Bool solinfeasible, SCIP_RESULT* result) noexcept with gil:
277286 PyConshdlr = getPyConshdlr(conshdlr)
278287 cdef constraints = []
288+ cdef int i
279289 for i in range (nconss):
280290 constraints.append(getPyCons(conss[i]))
281291 result_dict = PyConshdlr.consenfolp(constraints, nusefulconss, solinfeasible)
@@ -285,6 +295,7 @@ cdef SCIP_RETCODE PyConsEnfolp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
285295cdef SCIP_RETCODE PyConsEnforelax (SCIP* scip, SCIP_SOL* sol, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss, int nusefulconss, SCIP_Bool solinfeasible, SCIP_RESULT* result) noexcept with gil:
286296 PyConshdlr = getPyConshdlr(conshdlr)
287297 cdef constraints = []
298+ cdef int i
288299 for i in range (nconss):
289300 constraints.append(getPyCons(conss[i]))
290301 solution = Solution.create(scip, sol)
@@ -296,6 +307,7 @@ cdef SCIP_RETCODE PyConsEnfops (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
296307 SCIP_Bool solinfeasible, SCIP_Bool objinfeasible, SCIP_RESULT* result) noexcept with gil:
297308 PyConshdlr = getPyConshdlr(conshdlr)
298309 cdef constraints = []
310+ cdef int i
299311 for i in range (nconss):
300312 constraints.append(getPyCons(conss[i]))
301313 result_dict = PyConshdlr.consenfops(constraints, nusefulconss, solinfeasible, objinfeasible)
@@ -306,6 +318,7 @@ cdef SCIP_RETCODE PyConsCheck (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
306318 SCIP_Bool checklprows, SCIP_Bool printreason, SCIP_Bool completely, SCIP_RESULT* result) noexcept with gil:
307319 PyConshdlr = getPyConshdlr(conshdlr)
308320 cdef constraints = []
321+ cdef int i
309322 for i in range (nconss):
310323 constraints.append(getPyCons(conss[i]))
311324 solution = Solution.create(scip, sol)
@@ -317,6 +330,7 @@ cdef SCIP_RETCODE PyConsProp (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** c
317330 SCIP_PROPTIMING proptiming, SCIP_RESULT* result) noexcept with gil:
318331 PyConshdlr = getPyConshdlr(conshdlr)
319332 cdef constraints = []
333+ cdef int i
320334 for i in range (nconss):
321335 constraints.append(getPyCons(conss[i]))
322336 result_dict = PyConshdlr.consprop(constraints, nusefulconss, nmarkedconss, proptiming)
@@ -330,6 +344,7 @@ cdef SCIP_RETCODE PyConsPresol (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS**
330344 int * ndelconss, int * naddconss, int * nupgdconss, int * nchgcoefs, int * nchgsides, SCIP_RESULT* result) noexcept with gil:
331345 PyConshdlr = getPyConshdlr(conshdlr)
332346 cdef constraints = []
347+ cdef int i
333348 for i in range (nconss):
334349 constraints.append(getPyCons(conss[i]))
335350 # dictionary for input/output parameters
@@ -403,6 +418,7 @@ cdef SCIP_RETCODE PyConsDisable (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS*
403418cdef SCIP_RETCODE PyConsDelvars (SCIP* scip, SCIP_CONSHDLR* conshdlr, SCIP_CONS** conss, int nconss) noexcept with gil:
404419 PyConshdlr = getPyConshdlr(conshdlr)
405420 cdef constraints = []
421+ cdef int i
406422 for i in range (nconss):
407423 constraints.append(getPyCons(conss[i]))
408424 PyConshdlr.consdelvars(constraints)
0 commit comments