Tobias Achterberg
unread,Feb 9, 2017, 11:06:54 AM2/9/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gur...@googlegroups.com
Just rounding the solution values to some precision should be easy in any
programming language. For example, if you want to keep only 3 digits, just
multiply by 1000, then round to the nearest integer, then divide by 1000.
Or do you want that Gurobi produces solution values directly that are multiples
of, say, 0.001? Then you need to introduce general integer variables y and link
them to your continuous variables like this x:
xj - 0.001 * y = 0
But this makes the problem much more difficult to solve. Why do you need this
somewhat strange restriction?
Regards,
Tobias