Changeset 482


Ignore:
Timestamp:
Aug 24, 2005 9:57:27 AM (14 years ago)
Author:
andreasw
Message:

moved free's of the bound arrays to an earlier point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Examples/hs071_c/hs071_c.c

    r474 r482  
    7575                           &eval_jac_g, &eval_h);
    7676 
    77  
     77  /* We can free the memory now - the values for the bounds have been
     78     copied internally in CreateIpoptProblem */
     79  free(x_L);
     80  free(x_U);
     81  free(g_L);
     82  free(g_U);
     83
    7884  /* set some options */
    7985  AddIpoptNumOption(nlp, "tol", 1e-9);
     
    114120  /* free allocated memory */
    115121  FreeIpoptProblem(nlp);
    116   free(x_L);
    117   free(x_U);
    118   free(g_L);
    119   free(g_U);
    120122  free(x);
    121123  free(mult_x_L);
Note: See TracChangeset for help on using the changeset viewer.