Commit 254d1e44 authored by Dr.李's avatar Dr.李

try to fit memory error

parent 90206e64
...@@ -29,10 +29,10 @@ cdef class LPOptimizer: ...@@ -29,10 +29,10 @@ cdef class LPOptimizer:
cnp.ndarray[double] ubound, cnp.ndarray[double] ubound,
cnp.ndarray[double] objective): cnp.ndarray[double] objective):
self.cobj = new LpOptimizer(cons_matrix.flatten(), self.cobj = new LpOptimizer(cons_matrix.flatten().copy(),
lbound, lbound.copy(),
ubound, ubound.copy(),
objective) objective.copy())
def __del__(self): def __del__(self):
del self.cobj del self.cobj
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment