|
From: | Petr Korviny |
Subject: | Re: solving set of inequalities |
Date: | Mon, 25 Jan 2010 18:56:18 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100124 Shredder/3.0.2pre |
As I mentioned above, I need to find out solution of set of linear inequalities (to get values of variables x1,x2,x3,...) or to get an information of nonexistence any such solution. At this picture: http://suzelly.opf.slu.cz/~korviny/zzz/octave/excel_solver.png you can see utilization of Excel's Solver add-in I used to get solution of viewed set. "alpha" variable is always set to a number <0;1>, so set of inequalities is linear. Finding a solution for this set of linear inequalities is only one step in the process. I'd like to write it all as a script in Octave. All tips and suggestions are welcome. Thanks Petr On 25.1.2010 07:13, Jaroslav Hajek wrote:
On Sat, Jan 23, 2010 at 10:34 PM, Petr Korviny<address@hidden> wrote:Thanks a lot for quick answers. "jwe" you are right, that's exactly my problem. I have got no objective function to minimize or maximize and all functions I have found in Octave require objective coefficients, the "glpk" too. I'll try mentioned "octave-sp", I'm running Ubuntu, and this package is still in repositories for octave3.0 version. Thanks again to all. PetrUh, sorry, I should read more carefully. Apparently each inequality bounds the solution to a half-space (separated by a hyperplane) so the solution space is the intersection of these half-spaces. In what form you want to get the solution?
[Prev in Thread] | Current Thread | [Next in Thread] |