help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] API


From: cgi2
Subject: Re: [Help-glpk] API
Date: Tue, 16 Mar 2004 12:28:57 -0800

On Sun, 14 Mar 2004 13:15:44 -0500
Mandar <address@hidden> wrote:
>Hi ,
>Is there any API for retriving the col's of the solution which is a simple LP 
>relaxation?( there is one for MIP ) in
>case of the jni  lib developed?
>i can add one if there isn't
>-Mandar

You can use the following code to read in the solution when using the JNI:

    double[] solution = new double[numVars];

    GlpkSolverInfo lpSolverInfo = new GlpkSolverInfo();
    for (int i = 0; i < numVars; i++)
    {
      lp.getColInfo(i + 1, lpSolverInfo);
      solution[i] = lpSolverInfo.vx;
    }

Your message quoted a previous message about concorde; was it relevant?
________________________________________________
Don't E-Mail, ZipMail! http://www.zipmail.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]