target-runner returned NULL

17 views
Skip to first unread message

luciano...@aluno.ufop.edu.br

unread,
Sep 2, 2023, 6:56:29 AM9/2/23
to The irace package: Iterated Racing for Automatic Configuration
Hello!

I came one more time to ask for a help, because I'm getting the error above from the target-runner.bat, where presented result is NULL, but my code is correct (or, at least, I believe it is). Follow the code and the result presented:

::@echo off

SET EXE=ga_sjp.exe

SET CANDIDATE=%1
SET INSTANCE_ID=%2
SET SEED=%3
SET INSTANCE=%4
SHIFT

SET CANDIDATE_PARAMETERS=%*

SET STDOUT=c%CANDIDATE%-%INSTANCE_ID%.stdout
SET STDERR=c%CANDIDATE%-%INSTANCE_ID%.stderr

%EXE% %INSTANCE% %CANDIDATE_PARAMETERS% 1>%STDOUT% 2>%STDERR%

SETLOCAL EnableDelayedExpansion
SET "cmd=findstr /R /N "^^" %stdout% | find /C ":""
FOR /f %%a in ('!cmd!') do set numberlines=%%a
SET /a lastline=%numberlines%-1
FOR /f "tokens=*" %%F in ('more +%lastline% %stdout%') do set cost=%%F
ECHO %cost%

erro.png

Can someone help me? I would be very grateful.

Luciano Alves Corrêa
Mestrando em Engenharia de Produção
DEPRO/EM/UFOP
Best regards,

Manuel López-Ibáñez

unread,
Sep 2, 2023, 7:19:52 AM9/2/23
to The irace package: Iterated Racing for Automatic Configuration
Hi Luciano, it seems you have commented out the line:

@echo off

So the targetrunner is printing stuff that irace cannot understand. The output you posted does not show the full error but if you look a few lines up you should find a detailed error message explaining what irace expected.

Best,

Manuel.
Reply all
Reply to author
Forward
0 new messages