[ojAlgo-user] bug report: ILP problem
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Jeff S. <jef...@gm...> - 2013-04-07 23:25:51
|
When I execute the following program: Minimize 1*x1 Subject To 1*x2013 >= 0 1*x2014 >= 0 1*x1 >= 0 -5000.0*x2014 + 5100.0*x2013 + -1.0*x1 <= 0 -5000.0*x2014 + 5100.0*x2013 + 1.0*x1 >= 0 5000*x2013 + 5000*x2014 = 19105000 Bounds Variables x2014 integer x2013 integer x1 continuous I get these results which are suboptimal: x1 = 5899.999999996906 x2013 = 1891 x2014 = 1930 Or these results (which seem to occur at random): x1 = Infinity x2013 = 0 x2014 = 0 Using another solver, I obtain: x1 = 4200.000000000075 x2013 = 1892 x2014 = 1929 |