javadoc and getting best solution so far from running solver

166 views
Skip to first unread message

Sandy Ryza

unread,
Mar 6, 2013, 6:43:10 PM3/6/13
to or-tools...@googlegroups.com
Hi All,

A couple questions

Is there javadoc available for the java interface to the linear solver?

Also, is there a way through the java interface to get notified when the solver encounters a solution?

Lastly, is there a way to give a running (minimizing) solver an upper bound, so that it will prune any branches with lower bounds worse than that bound?

any help greatly appreciated!
Sandy

Laurent Perron

unread,
Mar 25, 2013, 12:22:43 PM3/25/13
to or-tools-discuss
Hello, 

I have mostly bad news for you :-)

1) The java is automatically generated from the C++ through SWIG, which does not preserve documentation.
So please use the C++ documentation with the only change that the first letter of any method is lower case.

2) Any transformation of the solvers (upper bound, incumbent solutions) are done through callbacks, and are not portable.
In C++, we give access to the underlying solver that can be used to implement these solution. Unfortunately, this does not cross the SWIG barrier.

You are out of luck.

--Laurent


Laurent Perron | Operations Research | lpe...@google.com | (33) 1 42 68 53 00



--
You received this message because you are subscribed to the Google Groups "or-tools-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to or-tools-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sandy Ryza

unread,
Mar 26, 2013, 3:00:19 PM3/26/13
to or-tools...@googlegroups.com
Ok, thanks for the clarification.

-Sandy

--
You received this message because you are subscribed to a topic in the Google Groups "or-tools-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/or-tools-discuss/As_QgGHYkwE/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to or-tools-discu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages