[Scip] Generation of blk and dec files
Gerald Gamrath
gamrath at zib.de
Tue Dec 4 23:38:53 MET 2012
Hi Victor,
I'm happy to hear that you want to try GCG.
You are right, the release version of GCG does not read ZIMPL files, we
did only include the lp, mps, cip, and sol-reader for the beginning.
However, it is no problem to enable the ZIMPL reader also in GCG, you
just have to add the following two lines to src/gcgplugins.c:
#include "scip/reader_zpl.h"
and
SCIP_CALL( SCIPincludeReaderZpl(scip) );
But that is a good point, we will change it in the next release and
enable all file readers.
Concerning the generation of dec and blk files: As Marco said, you can
just let GCG detect the structure and write it as a dec-file. In the
next ZIMPL release, we will also provide the possibility to write the
structure file directly with ZIMPL.
Until then, if you want to generate the structure file yourself, you can
choose the format that fits your needs better. As Marco mentioned, dec
files define the structure constraint-wise, while blk files define which
variables belong to which block. Often, you can easily determine by the
variable or constraint name to which block they belong and then create
the structure file by a small script.
Best,
Gerald
Am 04.12.2012 21:15, schrieb Victor Miller:
> I built scipoptsuite-3.0.0 and then gcg. I have a few questions:
>
> 1) Is it possible to build gcg so that it can read zimpl files? I
> tried make gcg zimpl=true, but it still says that it doesn't recognize
> them.
>
> 2) I noticed by looking at some of the instances in the gcg directory
> that the lp or mps file was generated by zimpl. How was the
> associated dec or blk file generated? Was it by hand, or is there
> some other program that helps you to do this?
>
> 3) From the brief description of dec and blk files in the online docs
> they appear to be the same. Are they, or if not, how do they differ?
>
> Victor
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserv.zib.de/mailman/private/scip/attachments/20121204/677de04c/attachment.html
More information about the Scip
mailing list