[Ipopt] Question about getVariableValues() using Ipopt with Java interface
Stefan Vigerske
stefan at math.hu-berlin.de
Tue Nov 17 06:16:13 EST 2015
Hi,
I think you refer to an outdated version of Jipopt.
The current JIpopt is part of the Ipopt package and is (somewhat)
documented at http://www.coin-or.org/Ipopt/documentation/node26.html
However, for the old one, the documentation of the solve method says
that the variable values are written into the array that you pass in for
the starting point:
http://www.vrtech.com.br/pub/jipoptdoc/org/coinor/Ipopt.html#solve(double[])
Best,
Stefan
On 11/16/2015 11:17 PM, Karine Ip wrote:
> Hi,
>
> I am totally new to Ipopt, and I am currently trying to use it through the
> Java interface. I was wondering if anyone could help with the following
> problem.
>
> I downloaded jiopt-3.3.2.zip and followed all instructions to create the
> lib folder and put it in the root of my project. I tested with the hs071
> example, baseds on documentation from Mr Soares from VRTech. There is no
> run errors. However, it does not recognize getVariableValues(). Ipopt.java
> contains the methods getObjectiveValue(), getVariableValues(),
> getConstraintMultipliers(), getLowerBoundMultipliers(),
> getUpperBoundMultipliers(). Calling these functions do not work. On the
> other hand, looking through the javadoc (jipoptdoc), I found getObj(),
> getMultConstraints(), getMultLowerBounds(), getMultUpperBounds() but
> nothing performing similar job as getVariableValues().
>
> There should be a function to get the optimal variable values. Am I missing
> something here?
>
> Thanks,
> Karine
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>
--
http://www.gams.com/~stefan
More information about the Ipopt
mailing list