Re: [ojAlgo-user] QuadraticSolver with unsatisfiable constraints
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2009-11-16 11:57:49
|
On 16 nov 2009, at 11.06, Pierre AUSLAENDER wrote: > Hello, > > Thank you for this library, which is a joy to use - once I got over > the lack of documentation. > > I'm using the QuadraticSolver (ActiveSetSolver) on a least squares > minimisation problem, under a set of linear constraints. When the > constraints can be satisfied, it works perfectly. However, when the > constraints cannot be satisfied, the solver still returns with an > OPTIMAL state after a few iterations. I was puzzled until I > discovered the QuadraticSolver.validateSolution(...) methods, which > I can use to effectively test the solution against the constraints. > > Is this the way it is supposed to work, or did I do something wrong? > I would have expected the solver to FAIL instead. I recently fixed a couple of bugs related to this. Get the latest snapshot download from Source Forge, and try if that solves your problem. If it doesn't I'd like you to give me (junit) test case. > As an aside question, there is the following JavaDoc comment on > ExpressionBasedModel.addConstraint(final String aName, ....): Note > that only the first constraint you add will be used by the solver. > What does this comment mean? Is it simply related to the uniqueness > of the constraint name, or has it wider implications? That comment should have been removed. It was only relevant for the now removed/replaced KnapsckSolver. That solver could only use 1 constraint - the first one you added. I'll correct the javadoc comment now. /Anders > Thank you, > 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. > ________________________________________________________________ > > ------------------------------------------------------------------------------ > 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 |