coin-or / OS

Optimization Services
Other
1 stars 4 forks source link

OSInstance::calculateHessian fails if getLagrangianHessianSparsityPattern() was not called before #7

Closed svigerske closed 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: @svigerske

Original creation time: 2009-01-16 14:54:40

Assignee: somebody

Version:

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

svigerske commented 5 years ago

Comment by kmartin created at 2009-01-16 21:33:21

Resolution: fixed