[SCIP] How to get CSV text format solution in display or saving as CSV text file?

Stefan Vigerske stefan at math.hu-berlin.de
Tue Apr 30 04:09:32 CEST 2019


https://scip.zib.de/doc-6.0.1/html/SHELL.php#TUTORIAL_FILEIO
And note the -c option of the SCIP executable, example at 
https://scip.zib.de/doc-6.0.1/html/index.php#QUICKSTART

On 4/30/19 2:45 AM, Noli Sicad wrote:
> Hi Gregor,
> 
> Thanks for answering my question.
> 
> ATM, I am using gedit to clean out the solution using cut, paste and replace.
> 
> I tried incorporate "write solution mysolution.sol to External Tools in gEdit.
> 
> I.e.
> ....
> write/solution = mysolution.sol
> 
> It seems not to work. How do you do it properly?
> 
> I am using R package. The problem is using gsub function to clean. I
> could not get it working.
> 
> ~~~~~~
> 
> setwd("~/Documents/Work/SCIP")
> 
> 
> d<-read.delim("mysolution.sol", sep="\t")
> 
> d
> 
> a<- gsub("obj*.*"," ", d)
> 
> a
> 
> #write.csv(d, file = "solution.csv")
> 
> ~~~~~~~
> 
> 
> Noli
> 
> 
> On 4/29/19, Gregor Hendel <hendel at zib.de> wrote:
>> Hi Noli,
>>
>> SCIP does not have a functionality to write solutions in comma separated
>> name-value pairs, and it has never been requested, either, as far as I
>> am aware of.
>>
>> However, the solution that SCIP prints is more or less in csv-format, if
>> you allow white space instead of comma separation. I suggest you store
>> SCIP solutions in .sol format ("write sol mysolution.sol" in interactive
>> shell) and apply little tweaks with a couple of bash commands.
>>
>> I bet you can achieve your desired format using a pipeline of at most 3
>> bash commands. Challenge accepted?
>>
>> Happy bashing,
>> Gregor
>>
>> Am 28.04.19 um 01:50 schrieb Noli Sicad:
>>> Hi,
>>>
>>> How to get comma separated text (CSV) format solution in display (i.e.
>>> screen) using SCIP solver?
>>>
>>> Or Is there a way to save as CSV text file for the SCIP solver solution?
>>>
>>> Anything e.g. "set write CSV" in interactive SCIP solver?
>>>
>>> Thanks.
>>>
>>> Noli
>>> _______________________________________________
>>> Scip mailing list
>>> Scip at zib.de
>>> https://listserv.zib.de/mailman/listinfo/scip
>>
>> _______________________________________________
>> Scip mailing list
>> Scip at zib.de
>> https://listserv.zib.de/mailman/listinfo/scip
>>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> https://listserv.zib.de/mailman/listinfo/scip
> 



More information about the Scip mailing list