help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] [Fwd: Error in Visual C for MIP]


From: Andrew Makhorin
Subject: [Help-glpk] [Fwd: Error in Visual C for MIP]
Date: Wed, 22 Jun 2011 11:30:38 +0400

-------- 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 







reply via email to

[Prev in Thread] Current Thread [Next in Thread]