Read LP format files.
More...
#include <assert.h>
#include <stdio.h>
#include <ctype.h>
#include <iostream>
#include "spxdefines.h"
#include "spxlp.h"
#include "spxout.h"
#include "exceptions.h"
Go to the source code of this file.
|
| namespace | soplex |
| | Everything should be within this namespace.
|
| |
|
| #define | MAX_LINE_LEN 8192 |
| | maximum length of a line (8190 + \n + \0)
|
| |
|
| static bool | isSpace (int c) |
| | Is c a space, tab, nl or cr ?
|
| |
| static bool | isValue (const char *s) |
| | Is there a number at the beginning of s ?
|
| |
| static bool | isColName (const char *s) |
| | Is there a possible column name at the beginning of s ?
|
| |
| static bool | isSense (const char *s) |
| | Is there a comparison operator at the beginning of s ?
|
| |
| static bool | isInfinity (const char *s) |
| |
| static bool | isFree (const char *s) |
| |
| static Real | readValue (char *&pos) |
| | Read the next number and advance pos.
|
| |
| static int | readColName (char *&pos, NameSet *colnames, LPColSet &colset, const LPCol *emptycol) |
| | Read the next column name from the input.
|
| |
| static int | readSense (char *&pos) |
| | Read the next <,>,=,==,<=,=<,>=,=> and advance pos.
|
| |
| static bool | hasKeyword (char *&pos, const char *keyword) |
| | Is the keyword present in buf ? If yes, advance pos.
|
| |
| static bool | hasRowName (char *&pos, NameSet *rownames) |
| | If buf start with "name:" store the name in rownames and advance pos.
|
| |
| static Real | readInfinity (char *&pos) |
| |
Read LP format files.
Definition in file spxlpfread.cpp.
| #define MAX_LINE_LEN 8192 |