[Help-glpk] [Fwd: Requesting for help]

2018-05-09 Thread Andrew Makhorin
 Forwarded Message 
From: Megersa Tesfaye 
To: help-glpk-ow...@gnu.org
Subject: Requesting for help
Date: Thu, 10 May 2018 05:12:27 +1200

Dear, I run OSeMOSYS using glpk solver and after generating a model
successfully it says NO PRIMAL OPTIMUM SOLUTION...ant help.


Megersa Tesfaye

PhD Candidate(Water Resources Engineering),
M.SC in Hydrology & Water Resources /   B.SC in Civil Engineering  /
B.SC in SWC Eng.

Mobile: 0911724512 / 0909789583
  




___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk


Re: [Help-glpk] lp/mip preprocessor api

2018-05-09 Thread Andrew Makhorin
On Mon, 2018-05-07 at 11:08 -0300, Luiz Rafael dos Santos wrote:
> Dear Andrew,
> 
> 
> As I said to you before, I was trying to make the new preprocessor API
> of GLPK work on Julia (http://github.com/JuliaOpt/GLPK.jl). Indeed, it
> worked like a charm!  Thanks for that
> 
> 
> However now, on the multiple test we run on GLPK.jl, the
> `ios_del_row()` routine is not working. 
> 
> 
> I believe this is happening because now, on version 4.65, at
>  glpios01.c, lines 1550-1553: 
> ```#ifdef NEW_LOCAL /* 02/II-2018 */
> void ios_del_row(glp_tree *tree, IOSPOOL *pool, int i)
> { /* remove row (constraint) from the cut pool */
>   xassert(0);
> }
> #elsedef```
> the routine is not defined anymore. 
> 
> 
> Is this a feature that will become obsolete and will be removed?
> 
> 
> Is this a bug? 

Neither. ios_del_row is just not reimplemented for NEW_LOCAL. However,
now IOSPOOL which is a synonym for glp_pool is also a synonym for
glp_prob (i.e. cut pool is implemented as an ordinary problem object).
So, if needed, you may replace it with the following routine:

void ios_del_row(glp_tree *tree, IOSPOOL *pool, int i)
{ /* remove row (constraint) from the cut pool */
  int num[2];
  num[1] = i;
  glp_del_rows(pool, 1, num);
  return;
}

See, for example, ios_clear_pool below in the same file.


Best regards,

Andrew Makhorin

> 
> 
> Best regards,
> 
> 
> Rafa
> 
> 
> 
> 
> -- 
> Luiz Rafael dos Santos
> Departamento de Matemática
> Centro de Blumenau
> Universidade Federal de Santa Catarina 
> Blumenau/SC/Brasil
> Fone: +55 47 3232 5184 / +55 48 3721 3384
> Voip: +55 48 3363 2267
> 
> > Em 19 de mar de 2018, à(s) 20:52, Luiz Rafael dos Santos
> >  escreveu:
> > 
> > That’s great. 
> > 
> > 
> > Thank Andrew for your work with GLPK.
> > 
> > 
> > Cheers,
> > 
> > 
> > Rafa
> > -- 
> > Luiz Rafael dos Santos
> > Departamento de Matemática
> > Centro de Blumenau
> > Universidade Federal de Santa Catarina 
> > Blumenau/SC/Brasil
> > Fone: +55 47 3232 5184 / +55 48 3721 3384
> > Voip: +55 48 3363 2267
> > 
> > > Em 19 de mar de 2018, à(s) 14:52, Andrew Makhorin 
> > > escreveu:
> > > 
> > > Hi Luiz,
> > > 
> > > 
> > > > I’m Prof. Rafael Santos from University of Santa Catarina,
> > > > Brazil.
> > > > I would like to use your LP/MIP preprocessor API together with
> > > > Julia
> > > > GLPK, for a paper I’m writing on a new method for LP that makes
> > > > use of
> > > > a Augmented Lagrangian method. 
> > > 
> > > Thank you for your interest in glpk.
> > > 
> > > > Do you have any timetable to release such API?
> > > 
> > > This feature is already implemented in glpk 4.65; please see
> > > http://lists.gnu.org/archive/html/help-glpk/2018-02/msg9.html
> > > 
> > > 
> > > Best regards,
> > > 
> > > Andrew Makhorin
> > > 
> > > 
> > > 
> > 
> > 
> 
> 



___
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk