An important point is that the initial solution has to be a feasible
solution to the MP, otherwise the initial solution will be rejected.
In our problem, we found out that our optimal solution of the last
iteration (with n bins, for example) is not a feasible to the current
iteration (with n+1 bins). We then decided to use explicit constraints
(insert constraints in the declaration) instead of using the variable
definitions, and everything worked out nicely. We do not have to write
any GMP code, just implement as Pim and Marcel have suggested.
@Okan: I took the idea from this article
http://yetanothermathprogrammingconsultant.blogspot.com/2011/08/bin-packing.html
, and what I wanted is just a simple greedy heuristics to see whether
I can perform better than the 17 bins the blogger is reporting.
Viet Anh