[Coin-discuss] Re: BAC and parameters setting (Hung Nguyen)

Francois Margot fmargot at andrew.cmu.edu
Thu Jun 16 08:39:17 EDT 2005


Viet:

The file name is a parameter so that the user may add things to read
in the parameter file. This is particularly useful if the user
wants to define its own parameters. Look at the COIN/Examples/BranchAndCut
for an illustration.

For reading an additional file, I believe that you will need to modify
Bcp itself, adding the additional file name in the parameter of readInput().
The way I solved that problem is to have the code read from a file
with fixed name like input.txt. Running the code with different input files 
just require to copy the input file over input.txt before executing Bcp.

Francois

> 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