[Top][All Lists]

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

[Help-glpk] Re: lpx_set_col_kind

From: Andrew Makhorin
Subject: [Help-glpk] Re: lpx_set_col_kind
Date: Thu, 23 Jan 2003 16:24:30 +0300

>We have problems with the lpx_set_col_kind function. Using the example 
>provided with the documentation, when we try to force a variable to be 
>either continuous or integer, everything works fine at compile and link 
>time, but when we run the application, it exits with error code 1 

Being created by lpx_create_prob a problem object is of LP class by
default, while lpx_set_col_kind requires the problem object to be of MIP
class. To change the problem class you should call the routine
lpx_set_class as follows:

      lpx_set_class(lp, LPX_MIP);

For details see the reference manual.

reply via email to

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