Re: [math] Recover final tableau values from SimplexSolver

2013-11-21 Thread Renato Cherullo
Yes, I did a blind "git add ." and messed the codebase a bit at first. Ole: Thanks for the tip, I'll check it out. Great! My plan is to implement a few simple end-to-end tests first, based on Applied Mathematical Programming (http://web.mit.edu/15.053/www/), and then refactor, implement more fine-

Re: [math] Recover final tableau values from SimplexSolver

2013-11-20 Thread Thomas Neidhart
On 11/20/2013 07:16 PM, Thomas Neidhart wrote: > On 11/20/2013 05:43 PM, Renato Cherullo wrote: >> Ok, I just pushed my code to the fork at >> https://github.com/cherullo/commons-math. >> Merging with SolutionCallback was straightforward, and the standard tests >> passed. >> I already saw issues in

Re: [math] Recover final tableau values from SimplexSolver

2013-11-20 Thread Ole Ersoy
I found this .gitignore info helpful when I first started with git: http://www.vogella.com/articles/Git/article.html#d264321e1029 On 11/20/2013 12:16 PM, Thomas Neidhart wrote: On 11/20/2013 05:43 PM, Renato Cherullo wrote: Ok, I just pushed my code to the fork at https://github.com/cherullo/co

Re: [math] Recover final tableau values from SimplexSolver

2013-11-20 Thread Thomas Neidhart
On 11/20/2013 05:43 PM, Renato Cherullo wrote: > Ok, I just pushed my code to the fork at > https://github.com/cherullo/commons-math. > Merging with SolutionCallback was straightforward, and the standard tests > passed. > I already saw issues in the new code, but right now I'd like your opinion > o

Re: [math] Recover final tableau values from SimplexSolver

2013-11-20 Thread Renato Cherullo
Ok, I just pushed my code to the fork at https://github.com/cherullo/commons-math. Merging with SolutionCallback was straightforward, and the standard tests passed. I already saw issues in the new code, but right now I'd like your opinion on the current interface (ie. public SimplexSolution optimiz

Re: [math] Recover final tableau values from SimplexSolver

2013-11-20 Thread Renato Cherullo
Hi guys, It's been a while since I raised this issue. I actually solved this and I want to contribute it back. I implemented a new public method in SimplexSolver called optimizeExtra, that returns a SimplexSolution containing: 1) PointValuePair solution; The optimal solution. 2) HashMap extra

Re: [math] Recover final tableau values from SimplexSolver

2013-09-09 Thread Thomas Neidhart
On 09/09/2013 10:37 PM, Thomas Neidhart wrote: > On 09/09/2013 09:02 PM, Renato Cherullo wrote: >> Hi all, >> >> I need to implement a way to recover some important information from >> SimplexSolver's final tableau. >> I'll start by the shadow price, which seems very straight forward. If I >> under

Re: [math] Recover final tableau values from SimplexSolver

2013-09-09 Thread Thomas Neidhart
On 09/09/2013 09:02 PM, Renato Cherullo wrote: > Hi all, > > I need to implement a way to recover some important information from > SimplexSolver's final tableau. > I'll start by the shadow price, which seems very straight forward. If I > understand it correctly, I must: > 1- Store the original Li

Re: [math] Recover final tableau values from SimplexSolver

2013-09-09 Thread Gilles
Hi. [...] B- I'm not confident enough that iterating a HashSet is fully deterministic, nothing in the contracts says so. If ordering is needed, we can change to a "TreeSet". Gilles [...] - To unsubscribe, e-mail: dev-un

[math] Recover final tableau values from SimplexSolver

2013-09-09 Thread Renato Cherullo
Hi all, I need to implement a way to recover some important information from SimplexSolver's final tableau. I'll start by the shadow price, which seems very straight forward. If I understand it correctly, I must: 1- Store the original LinearConstraints in the same order as the normalized constrain