[SCIP] How to add variables bounds from .bnd file
Stefan Vigerske
svigerske at gams.com
Thu Apr 23 06:44:37 CEST 2026
Hi,
in the SCIP shell, please display the problem ("disp prob") in order to
see what variable names are used.
.nl files do not store variable names. If there is a separate .col file,
then the variable names are read from this file. Otherwise, generic
names are used, which are x0, x1 for continuous variable, but the first
char is changed to 'b' and 'i' for binary and integer variables,
respectively.
Stefan
On 06/04/2026 06:58, Vladimir V. Voloshinov wrote:
> Dear SCIP team,
> can you explain how to import variables' bounds from .bnd file (function
> readBounds() from SCIP C API)
> into the problem represented as AMPL NL-file (without bounds in original
> problem formulation).
> I did the following.
> 1.
> In the NL-file all variables have default names (*x0, x1, ...., xn, ..., xN*),
> N+1 - is the number of all vars.
> 2.
> I created BND-file (with .bnd extension) containing strings in the
> following format (*lown* < *upn* for all):
> *x0 low0 up0*
> *x1 low1 up1*
> *...*
> *xn lownnn upn*
> *...*
> *xN lowN upN*
> 3.
> I called SCIP console (of the SCIP version 10.0.1) by the command
> *$ scip problem.nl <http://problem.nl> -AMPL -i*
> and then tried to read BND-file by the command
>
> *SCIP> read problem.bnd*
> As a result I've got the following warning
>
>
> *WARNING: unable to parse variable name in line 1 of bounds file
> <problem.bnd>:WARNING: line is: x0 -1.92253738961094
> 0.0774626103890623WARNING: (further unknown variables are ignored)*
>
> What is my mistake?
>
> Sincerely yours,
> Vladimir.
>
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
More information about the Scip
mailing list