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

try to fit memory error

parent 90206e64
......@@ -29,10 +29,10 @@ cdef class LPOptimizer:
cnp.ndarray[double] ubound,
cnp.ndarray[double] objective):
self.cobj = new LpOptimizer(cons_matrix.flatten(),
lbound,
ubound,
objective)
self.cobj = new LpOptimizer(cons_matrix.flatten().copy(),
lbound.copy(),
ubound.copy(),
objective.copy())
def __del__(self):
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