Runtime / Work vs Presolve
回答済みIs it correct that the Runtime model attribute does not incorporate time spent in Presolve?
And what about the Work attribute?
Is there a way to retrieve the time spent in Presolve?
Thanks!
0
-
Hi Dimi,
The Runtime attribute does incorporate time spent in presolve (so does the Work attribute).
You can see the time spent in the log. I don't think there is an easy way of extracting this otherwise.You could just compute the presolved model and time it using model.presolve():
# populate model
start = time.time()
with model.presolve() as p:
pass
print(f"Presolve has taken {time.time()-start}s")Cheers,
David0 -
Ok, I see
Thank you David!
0
サインインしてコメントを残してください。
コメント
2件のコメント