43 fprintf(stdout,
"*** Arithmetic error occured in simplex\n");
46 printf(
"Systeme faisable (soluble) en rationnels\n") ;
48 printf(
"Systeme insoluble\n");
55 printf(
"systeme initial \n");
58 printf(
"syntaxe correcte dans %s\n",name);
60 printf(
"Nb_eq %d , Nb_ineq %d, dimension %d\n",
66 fprintf(stderr,
"erreur syntaxe dans %s\n",name);
72 main(
int argc,
char *argv[])
88 if((f1 = fopen(argv[i],
"r")) == NULL) {
89 fprintf(stdout,
"Ouverture fichier %s impossible\n", argv[i]);
static void test_file(FILE *f, char *name)
int main(int argc, char *argv[])
static void test_system(Psysteme sc)
char * variable_default_name(Variable v)
char * variable_default_name(Variable v): returns the name of variable v
int f(int off1, int off2, int n, float r[n], float a[n], float b[n])
Psysteme sc_new(void)
Psysteme sc_new(): alloue un systeme vide, initialise tous les champs avec des valeurs nulles,...
void initialize_sc(char *(*var_to_string)(Variable))
bool sc_feasibility_ofl_ctrl(Psysteme sc, bool integer_p, volatile int ofl_ctrl, volatile bool ofl_res)
return true is the system is feasible
void sc_fprint(FILE *fp, Psysteme ps, get_variable_name_t nom_var)
void sc_fprint(FILE * f, Psysteme ps, char * (*nom_var)()): cette fonction imprime dans le fichier po...
bool sc_fscan(FILE *f, Psysteme *ps)
bool sc_fscan(FILE * f, Psysteme * ps): construit un systeme d'inegalites et d'egalites lineaires a p...
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
#define OFL_CTRL
I do thing that overflows are managed in a very poor manner.