On Thu, 2015-09-03 at 16:36 +0200, Yaser Tohidi wrote:
> I cannot use "glp_find_col". It retrieves zero always even I use the
> following code. I also create index at the beginning by
> glp_create-index.
> 
> 
> const char *name;
> name= glp_get_col_name(lp1,j);
> i=glp_find_col(lp1,name);
> 
> 
> 
> Please let me know what I'm missing.
> 

Looks like you didn't assign a name to j-th column, so glp_get_col_name
returns NULL.




_______________________________________________
Help-glpk mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to