[Scip] SCIP 3.1.0 writing empty solution files when called from command line
Ramón Casero Cañas
rcasero at gmail.com
Tue Apr 29 16:32:38 CEST 2014
Many thanks, the workaround works.
Best regards,
Ramon.
On 28 April 2014 22:48, Stefan Vigerske <stefan at math.hu-berlin.de> wrote:
> Hi,
>
> seems that the -q option disables too much output.
> A workaround is not to use it:
>
> $ ./scip-3.1.0.linux.x86_64.gnu.opt.spx -c "read
> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac.pip" -c "set display
> verblevel 0" -c "set limits solutions 1" -c "optimize" -c "write solution
> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac-sol.txt" -c "quit" >
> /dev/null
>
>
> Stefan
>
>
> On 04/28/2014 09:31 PM, Ramón Casero Cañas wrote:
>
>> Dear all,
>>
>> I'm having an odd problem that was not happening with v3.0.2. I solve the
>> attached problem calling scip from the command line on Ubuntu Saucy.
>>
>> $ ./scip-3.1.0.linux.x86_64.gnu.opt.spx -q -c "read
>> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac.pip" -c "set display
>> verblevel 0" -c "set limits solutions 1" -c "optimize" -c "write solution
>> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac-sol.txt" -c "quit"
>>
>> The file it writes with the solution is empty.
>>
>> However, if I do the same in interactive mode
>>
>> $ ./scip-3.1.0.linux.x86_64.gnu.opt.spx
>> SCIP version 3.1.0 [precision: 8 byte] [memory: block] [mode: optimized]
>> [LP solver: SoPlex 2.0.0] [GitHash: 577ee45]
>> Copyright (c) 2002-2014 Konrad-Zuse-Zentrum fuer Informationstechnik
>> Berlin
>> (ZIB)
>>
>> External codes:
>> SoPlex 2.0.0 Linear Programming Solver developed at Zuse
>> Institute Berlin (soplex.zib.de) [GitHash: 568f354]
>> cppad-20140000.1 Algorithmic Differentiation of C++ algorithms
>> developed by B. Bell (www.coin-or.org/CppAD)
>> ZLIB 1.2.8 General purpose compression library by J. Gailly
>> and
>> M. Adler (zlib.net)
>> GMP 5.1.3 GNU Multiple Precision Arithmetic Library
>> developed
>> by T. Granlund (gmplib.org)
>> ZIMPL 3.3.2 Zuse Institute Mathematical Programming Language
>> developed by T. Koch (zimpl.zib.de)
>> Ipopt 3.11.7 Interior Point Optimizer developed by A. Waechter
>> et.al. (www.coin-or.org/Ipopt)
>>
>> user parameter file <scip.set> not found - using default parameters
>>
>> SCIP> read /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac.pip
>>
>> read problem </tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac.pip>
>> ============
>>
>> original problem has 46 variables (0 bin, 0 int, 0 impl, 46 cont) and 126
>> constraints
>> SCIP> set display verblevel 0
>> display/verblevel = 0
>> SCIP> set limits solutions 1
>> limits/solutions = 1
>> SCIP> optimize
>>
>>
>> ************************************************************
>> ******************
>> This program contains Ipopt, a library for large-scale nonlinear
>> optimization.
>> Ipopt is released as open source code under the Eclipse Public License
>> (EPL).
>> For more information visit http://projects.coin-or.org/Ipopt
>> ************************************************************
>> ******************
>>
>>
>> SCIP> write solution
>> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac-sol.txt
>>
>> written solution information to file
>> </tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac-sol.txt>
>>
>> SCIP> quit
>>
>>
>> The output solution file is not empty (please find attached).
>>
>> Likewise, if I run from the command line, but calling the previous version
>> of SCIP,
>>
>> ./scip-3.0.2.linux.x86_64.gnu.opt.spx -q -c "read
>> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac.pip" -c "set display
>> verblevel 0" -c "set limits solutions 1" -c "optimize" -c "write solution
>> /tmp/model-tpb28d93c2_6fe6_44cf_b8ca_8e95135f2fac-sol.txt" -c "quit"
>>
>> then the solution file is not empty either.
>>
>>
>> Best regards,
>>
>> Ramon.
>>
>>
>>
>>
>> _______________________________________________
>> Scip mailing list
>> Scip at zib.de
>> http://listserv.zib.de/mailman/listinfo/scip
>>
>>
>
--
Dr. Ramón Casero Cañas
Institute of Biomedical Engineering
Department of Engineering Science, University of Oxford
Old Road Campus Research Building, Headington
Oxford
OX3 7DQ
UK
tlf +44 (0) 1865 617716
twitter @Ramon_Casero
web http://www.cs.ox.ac.uk/people/Ramon.CaseroCanas/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.zib.de/pipermail/scip/attachments/20140429/0c3ad042/attachment.html>
More information about the Scip
mailing list