[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] API glp_find_col
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] API glp_find_col |
Date: |
Mon, 30 Mar 2009 21:59:14 +0300 |
> 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.