[Coin-discuss] Re: Coin-discuss Digest, Vol 8, Issue 11

Mads Jepsen mitzi at diku.dk
Tue Jun 21 16:22:14 EDT 2005


Use a small bash script, something like:
#! /bin/bash
echo solving $2 with $1 as parfile
cp -f $1 tmp.par
echo MY_Datafile ../Instances/$2 >> tmp.par
./myprog tmp.par

Thats what I do.
best regards 
Mads

 
tor, 16 06 2005 kl. 12:00 -0400, skrev
coin-discuss-request at list.coin-or.org:
> Send Coin-discuss mailing list submissions to
> 	coin-discuss at list.coin-or.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://list.coin-or.org/mailman/listinfo/coin-discuss
> or, via email, send a message with subject or body 'help' to
> 	coin-discuss-request at list.coin-or.org
> 
> You can reach the person managing the list at
> 	coin-discuss-owner at list.coin-or.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Coin-discuss digest..."
> 
> 
> Today's Topics:
> 
>    1. BAC and parameters setting (Hung Nguyen)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 16 Jun 2005 17:28:34 +0200
> From: Hung Nguyen <Hung.Nguyen at lip6.fr>
> Subject: [Coin-discuss] BAC and parameters setting
> To: Discussions about open source software for Operations Research
> 	<coin-discuss at list.coin-or.org>
> Message-ID: <42B19AA2.7050504 at anp.lip6.fr>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Hello,
> I do a similar program to BAC and I wish to be able to read data from
> a specific file. I modify the readInput procedure in BB_tm as follows:
> BB_tm::readInput(char *data_file_name)
> as I've seen that this argument (the file name) is not used in this 
> procedure in the original BAC.
> But I realize that BCP still tries to read parameters in the data file.
> Thus I have two questions :
> 1.  while there is no line in the code that concerns the argument, why 
> this one is however taken into account ?
> 2.  How can I do if I would like now read parameters values from a file 
> ? (that means I would like to call my program as follows:
> my_program data_file parameters_file )
> Thankyou in advance for your helps !
> Best regards,
> Viet
> 
> 
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 
> 
> End of Coin-discuss Digest, Vol 8, Issue 11
> *******************************************
> 




More information about the Coin-discuss mailing list