-------- Forwarded Message --------
From: sheetal murkute<address@hidden>
To:address@hidden
Subject: Error in Visual C for MIP
Date: Wed, 22 Jun 2011 01:38:07 -0400
Hi,
I am writing MIP code in visual c 2010. I use following code for
building objective function for MIP.
But, while debugging this, I get the error as '
glp_set_obj_coef: j=1; column number out of range
Error detected in file ..\src\glpapi01.c at line 680.
My code for building objective function for MIP:
/* create objective function for MIP */
printf("Enter objective function coefficients /n");
for(i=1 ; i<=6; i++)
scanf("%f",&ObjCoeff[i]);
glp_set_obj_dir(mip, GLP_MIN);
for(i=1 ; i<=6; i++)
{
glp_set_obj_coef(mip,i,ObjCoeff[i]);
}
Please help me regarding this.
Thanks with Best Regards,
Sheetal
_______________________________________________
Help-glpk mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk