00001 /****************************************************************************/ 00002 /* */ 00003 /* This file is part of QSopt_ex. */ 00004 /* */ 00005 /* (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash, */ 00006 /* and Daniel Espinoza */ 00007 /* */ 00008 /* Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his */ 00009 /* copyright in QSopt. */ 00010 /* */ 00011 /* This code may be used under the terms of the GNU General Public License */ 00012 /* (Version 2.1 or later) as published by the Free Software Foundation. */ 00013 /* */ 00014 /* Alternatively, use is granted for research purposes only. */ 00015 /* */ 00016 /* It is your choice of which of these two licenses you are operating */ 00017 /* under. */ 00018 /* */ 00019 /* We make no guarantees about the correctness or usefulness of this code. */ 00020 /* */ 00021 /****************************************************************************/ 00022 00023 /* RCSINFO $Id: dbl_lp.h,v 1.2 2003/11/05 16:57:39 meven Exp $ */ 00024 #ifndef dbl_LP_H 00025 #define dbl_LP_H 00026 00027 #include "dbl_readline.h" 00028 00029 /****************************************************************************/ 00030 /* */ 00031 /* Routines to support Reading and Writing LP Files */ 00032 /* */ 00033 /****************************************************************************/ 00034 /* 00035 * -) anything after '\' is comment 00036 * -) Problem is optional and comes first 00037 * -) Minimize, Maximize, ... comes after Problem 00038 * -) variables consist of a-z A-Z 0-9!"#$%(),;.?@_`'{}|~ 00039 * don't start with a digit or '.' 00040 */ 00041 00042 #include "dbl_lpdata.h" 00043 #include "dbl_rawlp.h" 00044 #include "dbl_read_lp.h" 00045 #include "dbl_write_lp.h" 00046 00047 extern int dbl_ILLread_lp ( 00048 dbl_qsline_reader * file, 00049 const char *dbl_fname, 00050 dbl_rawlpdata * lp); 00051 extern int dbl_ILLwrite_lp ( 00052 dbl_ILLlpdata * l, 00053 dbl_qserror_collector * collector); 00054 00055 /* write using current lp->reporter */ 00056 extern int dbl_ILLis_lp_name_char ( 00057 int c, 00058 int pos); 00059 00060 extern int dbl_ILLread_constraint_name ( 00061 dbl_ILLread_lp_state * state, 00062 char **rowname); 00063 extern int dbl_ILLread_one_constraint ( 00064 dbl_ILLread_lp_state * state, 00065 const char *rowname, 00066 dbl_rawlpdata * lp, 00067 int allowNewColsAddRow); 00068 extern int dbl_ILLread_constraint_expr ( 00069 dbl_ILLread_lp_state * state, 00070 dbl_rawlpdata * lp, 00071 int rowind, 00072 int allowNew); 00073 00074 #endif
1.5.2