Sylvia CHEN
- Total activity 12
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 3
- Subscriptions 2
Comments
Recent activity by Sylvia CHEN-
Hi Eli, I got the same problem, only get two months of academic license. Is there a way to fix this? Thank you. Regards, Sylvia
-
Hi Michela, I tried with my model, it prints all the possible solutions. The code I used is m.setParam("PoolSolutions",10)m.setParam("SolFiles", "mySLM1") It writes "mySLM1_n.sol" for all solutions...
-
Hi Eli, Thank you! It works!
-
Hi Eli, Thank you for your reply. In the second option, the solution only returns the optimal solution. gv = m.getVars() names = m.getAttr('VarName', gv) for i in range(m.SolCount): m.params.Sol...
-
I have found a way to save .sol file from another answer. https://support.gurobi.com/hc/en-us/community/posts/360072723431-Get-all-solutions I leave my code here, pool_size = m.getAttr(GRB.Attr.So...
-
Hi Matthias, Thank you for your reply. I set the PoolSolutions to 9, and the SolFiles still generates 17 files. Is there a way to only save the best solutions of PoolSolutions to .sol file? Cheers,...
-
Hi Eli, Thank you. SolFiles works great. I used SolFiles which generated 17 files, but in the code, I print SolCount which return 10 solutions. I don't know why they are different. In my model, ...