52 fprintf(stdout,
"*** Arithmetic error occured in simplex\n");
55 printf(
"Systeme faisable (soluble) en rationnels\n") ;
57 printf(
"Systeme insoluble\n");
63 printf(
"systeme initial \n");
66 printf(
"syntaxe correcte dans %s\n",name);
68 printf(
"Nb_eq %d , Nb_ineq %d, dimension %d\n",
74 fprintf(stderr,
"erreur syntaxe dans %s\n",name);
80 main(
int argc,
char *argv[])
96 if((f1 = fopen(argv[i],
"r")) == NULL) {
97 fprintf(stdout,
"Ouverture fichier %s impossible\n", argv[i]);
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))
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 ...
static void test_file(FILE *f, char *name)
int main(int argc, char *argv[])
static void test_system(Psysteme sc)
test du simplex : ce test s'appelle par : programme fichier1.data fichier2.data .....