[Scip] Automated tests for custom code

Robert Schwarz mail at rschwarz.net
Mon Nov 9 13:44:04 MET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks for the quick help, I got it to work quite easily then.

Tobias Achterberg wrote:
> You could adapt the scripts to handle your branch&cut code. For
> example, look at the "testcplex" target in the Makefile.
>
> Doing this would be pretty easy if your branch&cut code includes a
> SCIP shell, i.e., if you include the default plugins and call
> SCIPinteractive() in your main() method. Then, you could basically do
> the same as in the "test" Makefile target, just with $(MAINFILE)
> replaced with your binary.
>

Actually, I call SCIPprocessShellArguments(), but this seems to work,
too. Normally I just call ``scip -f problemfile'', but the interactive
SCIP shell appears, when I don't specify a problemfile.

Stefan Heinz wrote:
> Hi Robert,
> 
> under the following links you find a SCIP example which has also uses the test 
> functionality.
> 
> http://co-at-work.zib.de/berlin2009/exercises/0930/exercise_binpacking_1.pdf 
> http://co-at-work.zib.de/berlin2009/exercises/0930/exercise_binpacking_2.pdf 
> http://co-at-work.zib.de/berlin2009/exercises/0930/COatWork-Binpacking-Sol.tgz
> 
> Have a look at it. I hope that this also helps.
> 

Ah, I remember it now. It's quite confusing, because there are severel
test targets for the differen exercises, but it also helps to see, which
lines in the check.sh are standard, and which are customized.

Now, the only remaining problem is, that the last column in the results
says ``unknown'' instead of ``optimal'', but I'll sort that out, too.

Thanks again,

- --
Robert Schwarz <mail at rschwarz.net>

Get my public key at http://rschwarz.net/key.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkr4DpQACgkQQEmQCGIkeRqZvwCaAioHgvCtM8BCQeThAAg8ycQ1
LP0An23iV6vjmAa6wk2VrEST0d7luWY7
=Oh7v
-----END PGP SIGNATURE-----


More information about the Scip mailing list