<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
Dear all,<br>
<br>
I am using IPOPT, and I would like to test other Hessian approximation
(sparse one).<br>
<br>
To get the data I need, I implemented the <b>intermediate_callback </b>function<b>.
</b>Through the <b>IpoptCalculatedQuantities* ip_cq, </b>I can have
the vector of the Lagrangian like this:<br>
<br>
<b>SmartPtr&lt;const Vector&gt; x =&nbsp; ip_cq-&gt;curr_grad_lag_x();</b><br>
<br>
I can know the size of this vector like this:<br>
<br>
<b>size = x-&gt;Dim();</b><br>
<b><br>
</b>But I do not know how I can know the values of each component of
this vector<b><br>
<br>
</b>I checked the help and the <b>IpVector.hpp</b> file but I did not
find anything<br>
<br>
Does anybody know how to do it ?<b><br>
</b><br>
best regards<br>
<br>
<pre class="moz-signature" cols="72">-- 
S&eacute;bastien LENGAGNE, Ph.D
CNRS-AIST JRL(Joint Robotics Laboratory), UMI3218/CRT
INTELLIGENT SYSTEMS RESEARCH INSTITUTE (IS), AIST
AIST Central 2, 1-1-1 Umezono, Tsukuba, 305-8568 JAPAN
tel : +81-29-8626508
fax : +81-29-8626507
mail : <a class="moz-txt-link-abbreviated" href="mailto:sebastien.lengagne@aist.go.jp">sebastien.lengagne@aist.go.jp</a>
website : <a class="moz-txt-link-freetext" href="http://staff.aist.go.jp/sebastien.lengagne/">http://staff.aist.go.jp/sebastien.lengagne/</a>
</pre>
</body>
</html>