Re: [ojAlgo-user] LinearSolver problem
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2009-11-17 21:31:55
|
No, you don't do anything wrong. The simplex solver has problems with some (redundant) problem formulations. I haven't figured out how to solve it yet. In this case you don't really have an optimisation problem. (You don't even give values for "c".) All you need to do is solve Ax= B where A= 1 -2 0 0 1 1 1 0 0 and B= 0 100 10 The validateSolution() method should of course also check the variable boundaries. This will be fixed soon. /Anders On 17 nov 2009, at 16.33, Pierre AUSLAENDER wrote: > > Hi Anders, > > I have a very simple linear test with only 2 variables and 1 constraint that fails. Here is the test case. > > We have variables x0 and x1, with values between 0 and 100, and we only require x0 = 2*x1. > > > > "test1" sets x0 = 10 and returns INFEASIBLE > "test2" sets x1 = 5 and returns OPTIMAL > > Both tests have strictly one and the same solution though. > > Did I do something wrong? > > I have a second question: ExpressionsBasedModel.validateSolution(...) does not check the variable boundaries. They only check the expressions added via "add...Expression(...)". Is this on purpose? > > Thanks, > Pierre > > ________________________________________________________________ > > PAM S.A Geneva Tel. +41 (0)58 323 3333 > 60, route des Acacias Fax +41 (0)58 323 2324 > CH-1211 GENEVE 73 http://www.pictet.com/ > ________________________________________________________________ > > This document should only be read by those persons to whom it is > addressed and is not intended to be relied upon by any person > without subsequent written confirmation of its contents. If you > have received this e-mail message in error, please destroy it > and delete it from your computer. > Any form of reproduction, dissemination, copying, disclosure, > modification, distribution and/or publication of this E-mail > message is strictly prohibited. > ________________________________________________________________ > > Pictet reserves the right to monitor and record business and > personal communications. By responding to an email or call from > a Pictet employee you are taken to have consented to such > monitoring and recording. > ________________________________________________________________ > > > <LinearSolverTest.java>------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july_______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user |