Changeset 129


Ignore:
Timestamp:
Nov 22, 2006 4:02:21 PM (13 years ago)
Author:
pbonami
Message:

Fix a bug in filter warm start

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel/Bonmin/src/Interfaces/Filter/BonFilterSolver.cpp

    r128 r129  
    590590                           Ipopt::SmartPtr<TMINLP2TNLP> tnlp){
    591591  const FilterWarmStart * warmF = dynamic_cast<const FilterWarmStart *> (warm);
    592   CoinCopyN(warmF->array(), warmF->size(), cached_->lws);
     592  fint size_hessian = nnz_h + tnlp->num_variables() + 2;
     593  CoinCopyN(warmF->array(), warmF->size(), cached_->lws + size_hessian);
    593594  for(int i = 0 ; i < 14 ; i ++)
    594595    {
     
    601602FilterSolver::getWarmStart(Ipopt::SmartPtr<TMINLP2TNLP> tnlp) const{
    602603  //Skip the first element which store the structure of the hessian (never change)
    603   fint size_hessian = nnz_h + tnlp->num_variables() + 2;
     604   fint size_hessian = nnz_h + tnlp->num_variables() + 2;
    604605  //  std::cout<<"Size of hessian :"<<size_hessian<<std::endl;
    605606  fint * first = cached_->lws + size_hessian;
Note: See TracChangeset for help on using the changeset viewer.