Error on recovery file

36 views
Skip to first unread message

Thomas Feutrier

unread,
Apr 5, 2023, 3:10:46 AM4/5/23
to The irace package: Iterated Racing for Automatic Configuration
Hello, I have a problem with a logfile that I wanted to use as a recoveryfile after a crash of my computer. However, I get this error when I restart: 'Error in computeNbConfigurations(currentBudget, indexIteration, mu = scenario$mu, :
  object 'blockSize' not found', I use one of the latest github version available. Where does this come from, I can't find the blocksize variable and I don't understand what has changed compared to before? 
Thank you
Feutrier Thomas

Manuel López-Ibáñez

unread,
Apr 5, 2023, 5:01:49 AM4/5/23
to The irace package: Iterated Racing for Automatic Configuration
Hi Thomas,

Normally one should not try to recover from a file generated by a different version of irace, because irace options change and even the irace procedures may have small changes that make recovery not produce the same results.

In this case, the irace version in git has a new option 'blockSize' but the recovery file does not have such an option. You can "hack" the recovery file by editing the data within it, adding the option to the scenario component with a value that would make sense, but unless you really know what you are doing and you understand the implications, I would not recommend it. I would suggest to downgrade to the previous version of irace or to start from scratch. You can also extract the experimental executed by irace from the recovery data and construct a "cache" file for your experiments to avoid repeating very expensive computations.

The next version of irace will give a clearer error in this case: https://github.com/MLopez-Ibanez/irace/commit/a648e9ba63a6028c25602ec0b3732fa205c2ca81

Best wishes,

Manuel.

Thomas Feutrier

unread,
Apr 5, 2023, 5:40:07 AM4/5/23
to The irace package: Iterated Racing for Automatic Configuration

Okay I understand but in my case I use the same version to generate the first logFile and to use it as a revory file. So is it normal that the same version does not ask for the same structure ? My version is irace_3.5.1. 
By curiosity, what is blocksize?

Manuel López-Ibáñez

unread,
Apr 5, 2023, 9:58:32 AM4/5/23
to The irace package: Iterated Racing for Automatic Configuration
Hi,

If you are installing from github, the check becomes trickier as new options and changes are added during development. I have not found a way to automatically update the version number with the github revision when the package is installed.


Best,

Manuel.
Reply all
Reply to author
Forward
0 new messages