Sylvia CHEN
- Total activity 12
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 3
- Subscriptions 2
Activity overview
Latest activity by Sylvia CHEN-
Sylvia CHEN commented,
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
-
Sylvia CHEN commented,
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...
-
Sylvia CHEN commented,
Hi Eli, Thank you! It works!
-
Sylvia CHEN commented,
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...
-
Sylvia CHEN commented,
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...
-
Sylvia CHEN commented,
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,...
-
Sylvia CHEN commented,
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, ...