[OS-tickets] [Optimization Services] #7: OSInstance::calculateHessian fails if getLagrangianHessianSparsityPattern() was not called before
Optimization Services
coin-trac at coin-or.org
Fri Jan 16 09:54:40 EST 2009
#7: OSInstance::calculateHessian fails if getLagrangianHessianSparsityPattern()
was not called before
------------------------+---------------------------------------------------
Reporter: stefan | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone:
Component: component1 | Version:
Keywords: |
------------------------+---------------------------------------------------
Hi,
if I call {{{OSInstance::calculateHessian(double*, int rowidx, bool
is_new)}}} without having called
{{{OSInstance::getLagrangianHessianSparsityPattern()}}} before, then this
gives me a seg.fault at {{{OSInstance.cpp:3670}}} (method
{{{OSInstance::getSecondOrderResults()}}}), because m_vbLagHessNonz was
not initialized before.
Thus, calling {{{getLagrangianHessianSparsityPattern()}}} helps, but I do
not see why this should be required when I want only the hessian of a
particular row.
This is OS/trunk rev. 2389.
Best,
Stefan
--
Ticket URL: <https://projects.coin-or.org/OS/ticket/7>
Optimization Services <http://projects.coin-or.org/OS>
An interface for Web services implementing optimization.
More information about the OS-tickets
mailing list