kaneshin/optimization — Issue #1: for statement counter is mitaken
Author: kaneshin
Created: 2012-01-20 01:53:07+00:00
State: open

/* allocate memory to x */
if ( x0 == NULL )
{
storage_x = (double *)malloc(n * sizeof(double)) ;
if ( storage_x == NULL )
{
status = NLP_OUT_OF_MEMORY ;
goto result;
}
for (i = 1; i < n ; i++)
{
storage_x[i] = 0. ;
}
Com.x = x = storage_x ;
}