next up previous contents Back to SYMPHONY Home Page
Next: user_io Up: User-written functions of the Previous: user_free_master

user_readparams

int user_readparams(void *user, char *filename, int argc, char **argv)

Description:

The user reads in parameters from the file named filename. The file filename is a file containing both built-in parameters and user parameters. The filename is given as a command line argument when starting the application and is then passed to the user. The user must open the file for reading, scan the file for lines that contain user parameters and then read the parameters in as appropriate. See the file Master/master_io.c to see how SYMPHONY does this.

Optionally, the user can also parse the command line arguments. All capital letters are reserved for user-defined command line switches. The switch -H is reserved for help and calls the user's usage subroutine (see user_send_lp_data()).

Arguments:

void *user IN Pointer to the user-defined data structure.
char *filename IN The name of the parameter file.

Return values:

ERROR Error. SYMPHONY stops.
USER_NO_PP User parameters were read successfully.




next up previous contents
Next: user_io Up: User-written functions of the Previous: user_free_master
Ted Ralphs
2000-09-08