column generation with c++
Awaiting user inputI'm trying to use column generating with gurobi and c++. I encounter some problem when adding a new variable.
I first create a new column:

and then add a new variable:

There is something wrong with the addvar, but I don't know what the reason is. Is anyone can help me? Thank you!
0
-
Official comment
This post is more than three 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 Kechen,
What exactly is the error message you get?
In addVar() you use NULL for a string argument (name). Since the name parameter is optional, you can just skip it.
Best regards,
Mario0
Post is closed for comments.
Comments
2 comments