> My code is very simple as shown below. I use it to test glp_find_col but > it doesn't work.
> const char* p="z[0][0]"; > Col_Num=glp_add_cols(lp,1); > glp_set_col_name(lp, Col_Num, p); > Col_Num=glp_find_col(lp, p); > I debug it step by step. When it goes to the last line, I get debug > error. > glp_find_col: column index does not exist > Error detected in file ...\src\glpapi03.c at line 123 > Any suggestions? Thank you in advance. To create the name index you should call the routine glp_create_index after glp_create_prob. _______________________________________________ Help-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-glpk
