python - How can I run PuLP simulation for a finite time? -


i running facility location problem on python , want run 10 minutes take more 2 hours complete solution. how can that?

it depends on solver using. it's 1 parameter maxseconds when create solver. example let assume you're using xpress, , want run 10mins , stop, can create solver

solver = xpress(maxseconds=10 * 60) 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -