Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
My OPE & the Euclicidean TSP
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Joshua Cranmer, post: 3615081"] I decided to make this feature myself. The code is here (it's a single file): <[URL]http://www.prism.gatech.edu/~jcranmer3/TSPTest.java[/URL]>. As a quick hack session, it has very few comments. Unfortunately, Java 6.0 only comes with the Rhino scripting engine, forcing you to put your custom engines in JavaScript for the custom algorithm editor. If I feel up to it, and you ask nicely, I'll put together a JAR that allows you to use bsh (i.e., actual Java code, although I don't know how much Java 5.0 bsh can do), or at least some source code that allows you to choose from the available languages. The brute force algorithm is Patricia's, slightly modified to be usable in the context of my code (i.e., the nodes is passed in as a List, not an array). I originally copied some of the code from the Scribble.java example, but most of that has probably been ripped out over the last few hours, as I didn't like how it did stuff. By the way, click the Done button in the second editor frame; do not close it by clicking the X in the window manager decoration. Another bug I know of is don't run stuff without any nodes in the display. You'll get an unrecoverable error somewhere. And yes, I am having an anonymous inner class fetish today. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
My OPE & the Euclicidean TSP
Top