OptaWeb VRP interactive mode does not work.

70 views
Skip to first unread message

Felix Schaube

unread,
Mar 21, 2021, 3:24:38 PM3/21/21
to OptaPlanner development
Hello together,

I was trying to use the interactive mode of the OptaWeb VRP
in the actual version (8.4.1) and the version of the intro video (7.38.0):

In both version I run the command "./runLocally.sh -i" within the bin-Folder
in both cases the following error occured: 

line 273: readarray: command not found

In line 273 the interactive function gets called. In case of no given value it should trigger the select scheme like in the video.

Is there anything I missed?

The default Belgium demo works. 

Greetings,

Felix 


Christopher Chianelli

unread,
Mar 21, 2021, 9:58:52 PM3/21/21
to OptaPlanner development
I am guessing you are using MacOS; there is a known issue where `runLocally.sh` does not work on MacOS due to the Bash version used (which doesn't come with the built-in readarray function): https://issues.redhat.com/browse/PLANNER-2036 .
As a workaround, you can try using an updated version of bash, or download the openstreet maps files yourself and pass them to the Jar as arguments (it look like this):
```
java -jar optaweb-vehicle-routing-standalone/target/optaweb-vehicle-routing-standalone-8.4.0-SNAPSHOT.jar --app.demo.data-set-dir=./dataset --app.persistence.h2-dir=./db --app.persistence.h2-filename=${osm_file%.osm.pbf} --app.routing.engine=graphhopper --app.routing.osm-dir=./openstreetmap --app.routing.gh-dir=./graphhopper --app.routing.osm-file=$osm_file
```

Felix Schaube

unread,
Mar 22, 2021, 4:44:56 PM3/22/21
to optapla...@googlegroups.com
Thanks for the hint with the bash version on macOS!👍


--
You received this message because you are subscribed to the Google Groups "OptaPlanner development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to optaplanner-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/optaplanner-dev/07d9a838-b448-4efe-a8b9-667343cd33f6n%40googlegroups.com.

Jiří Locker

unread,
May 13, 2021, 9:00:36 AM5/13/21
to OptaPlanner development
The script has been updated to be compatible with the old Bash version found on macOS: https://github.com/kiegroup/optaweb-vehicle-routing/pull/462.

Petr Jandal

unread,
Dec 7, 2023, 5:19:32 AM12/7/23
to OptaPlanner development
I am newbees
I downloaded the project from https://github.com/kiegroup/optaweb-vehicle-routing/tree/main
I know *This project is no longer maintained.*
I followed the video https://www.youtube.com/watch?v=rEeAML74oWo&t=107s

Changed the script runLocally.sh why cmd is closing immeadiately.

The folder is created
I see following problem

curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

I have Windows 10
I will not spend too much time on it, I wanted just to see how does it work 
Anyway I am working on https://github.com/kiegroup/optaplanner-quickstarts/tree/stable/use-cases/vehicle-routing

Thanks for help any way
error.log
runLocally.sh
Reply all
Reply to author
Forward
0 new messages