Error when run xp-table

20 views
Skip to first unread message

Meko Li

unread,
Apr 12, 2017, 7:59:26 AM4/12/17
to OscaR
Hi,

    To run locally compact Table Benhchmaker, I got a problem. Followed detail:
      
[info] Generating launch scripts
[info] main class for benchmark-table: BenchmarkTable
[info] Generating target\pack\bin\benchmark-table
[info] Generating target\pack\bin\benchmark-table.bat
[info] main class for performance-profile: PerformanceProfile
[info] Generating target\pack\bin\performance-profile
[info] Generating target\pack\bin\performance-profile.bat
[info] packed resource directories = E:\tableconstraint\src\pack
[info] Generating target\pack\Makefile
[info] Generating target\pack\VERSION
[info] done.
[success] Total time: 6 s, completed 2017-4-12 19:34:18
> target/pack/bin/benchmark-table label instance-path algo
[error] No valid parser available.
[error] target/pack/bin/benchmark-table label instance-path algo
[error]

    How can I solve this problem, and how could xp-table run on eclipse?
    Thanks.

best regard
Meko

Pierre Schaus

unread,
Apr 12, 2017, 8:11:57 AM4/12/17
to oscar...@googlegroups.com
Dear Meko,

I assume you are referring to this repository

After having run "pack" in sbt, you should leave SBT and run it from command line as an executable. 
For instance:

./benchmark-table toto ../../../kakuro-medium_114_ext.xml STR2


Don't forget to uncompress the LZMA instances.

I havent used eclipse for a while but in IntelliJ idea (with scala plugin) you can just open/import the project.

Best regards,

Pierre



--

---
You received this message because you are subscribed to the Google Groups "OscaR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oscar-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Meko Li

unread,
Apr 13, 2017, 9:04:57 AM4/13/17
to OscaR
Dear Pschaus

Thank you for your reply, I want to know the executable results of table constraints in dev branch included recent TableSTRbit. Can you help me?
How to compare different tableconstraint with instances in xp-tables on intelliJ idea or eclipse?
By the way, My computer os is windows.

Many thanks

Best regard
Meko

在 2017年4月12日星期三 UTC+8下午7:59:26,Meko Li写道:

Pierre Schaus

unread,
Apr 13, 2017, 9:14:40 AM4/13/17
to oscar...@googlegroups.com
On Thu, Apr 13, 2017 at 3:04 PM, Meko Li <lisx...@gmail.com> wrote:
Dear Pschaus

Thank you for your reply, I want to know the executable results of table constraints in dev branch included recent TableSTRbit. Can you help me?

Sorry, I don't understand your question. What do you mean by "executable results"
 
How to compare different tableconstraint with instances in xp-tables on intelliJ idea or eclipse?

Well, you execute BenchmarkTable class (from eclipse or intellij) and you give it the arguments as explained there:

Just replace "algo" to change the algorithm.

 
By the way, My computer os is windows.

It doesn't matter for the JVM ;-)
 

--

Meko Li

unread,
Apr 13, 2017, 10:18:50 AM4/13/17
to OscaR
I wonder if you have the executable comparable results of all the table constraint in dev branch (just like https://docs.google.com/spreadsheets/d/1uJulp_ImlD5WeoLZSLT0ofL98ajTkgWA1uJ3rkpzoSM/edit#gid=0 ), you know, there are some new table algorithms in dev branch.

Does BenchmarkTable https://bitbucket.org/pschaus/xp-table support TableSTRbit algorithm?

and run instance from command line as an executable on windows: ./benchmark-table toto ../../../kakuro-medium_114_ext.xml STR2 

target/pack/bin/benchmark-table label instance-path algo

I still have some troubles.

E:\tableconstraint\target\pack\bin>benchmark-table 1 E:\tableconstraint\instances\kakuroext_medium\kakuro-medium_114_ext.xml STR2
Exception in thread "main" java.io.FileNotFoundException: E:\tableconstraint\instances\kakuroext_medium\kakuro-medium_114_ext.xml (拒绝访问。)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:93)
        at scala.xml.Source$.fromFile(XML.scala:22)
        at scala.xml.factory.XMLLoader$class.loadFile(XMLLoader.scala:50)
        at scala.xml.XML$.loadFile(XML.scala:60)
        at BenchmarkTable$.delayedEndpoint$BenchmarkTable$1(BenchmarkTable.scala:61)
        at BenchmarkTable$delayedInit$body.apply(BenchmarkTable.scala:36)
        at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
        at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.App$$anonfun$main$1.apply(App.scala:76)
        at scala.collection.immutable.List.foreach(List.scala:381)
        at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
        at scala.App$class.main(App.scala:76)
        at BenchmarkTable$.main(BenchmarkTable.scala:36)
        at BenchmarkTable.main(BenchmarkTable.scala)

Thanks for your patient!

Best regards


在 2017年4月13日星期四 UTC+8下午9:14:40,pschaus写道:


To unsubscribe from this group and stop receiving emails from it, send an email to oscar-user+...@googlegroups.com.

Pierre Schaus

unread,
Apr 13, 2017, 10:35:17 AM4/13/17
to oscar...@googlegroups.com
On Thu, Apr 13, 2017 at 4:18 PM, Meko Li <lisx...@gmail.com> wrote:
I wonder if you have the executable comparable results of all the table constraint in dev branch (just like https://docs.google.com/spreadsheets/d/1uJulp_ImlD5WeoLZSLT0ofL98ajTkgWA1uJ3rkpzoSM/edit#gid=0 ), you know, there are some new table algorithms in dev branch.

Does BenchmarkTable https://bitbucket.org/pschaus/xp-table support TableSTRbit algorithm?

No, you'll need to adapt it a little bit.
It was developed a bit later by Hélène for the sake of comparison in another paper.
 

and run instance from command line as an executable on windows: ./benchmark-table toto ../../../kakuro-medium_114_ext.xml STR2 

target/pack/bin/benchmark-table label instance-path algo

I still have some troubles.

It simply means that the file is not found.
This is because I read the file from the command lien argument and there is a problem for reading windows path format: http://stackoverflow.com/questions/4302567/passing-a-file-as-a-command-line-argument-and-reading-its-lines

For now just place the instance file in directory from where you execute benchmark-table.

Best

Pierre
 
To unsubscribe from this group and stop receiving emails from it, send an email to oscar-user+unsubscribe@googlegroups.com.

Meko Li

unread,
Apr 14, 2017, 3:53:34 AM4/14/17
to OscaR
Hi pierre

Well, I have an idea to optimize TableSTRbit algorithm(Wang, Xia, Yap and Li), I want to know the performance of TableSTRbit compared with CompactTable. What do you think of TableSTRbit?

Thanks a lot

Best

Meko

在 2017年4月13日星期四 UTC+8下午10:35:17,pschaus写道:
Reply all
Reply to author
Forward
0 new messages