[SCIP] How to add variables bounds from .bnd file

Vladimir V. Voloshinov vladimir.voloshinov at gmail.com
Sun Apr 5 23:58:11 CEST 2026


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20260406/71caa34c/attachment.html>


More information about the Scip mailing list