free malloc array after GRBupdatemodel in C?
AnsweredDear Gurobi-team,
I have a question regarding the C-API:
I use malloc to allocate memory for the arrays for *cind, *cval in GRBaddconstr etc.
Can I de-allocate the memory of the arrays with free() AFTER calling GRBupdatemodel or does Gurobi still refer to them?
Best regards
Thomas
0
-
Official comment
This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Thomas,
You are safe to free your arrays after calling GRBupdatemodel.
Best regards,
Jaromił0
Post is closed for comments.
Comments
2 comments