Changeset 452


Ignore:
Timestamp:
Aug 16, 2005 6:47:16 PM (14 years ago)
Author:
andreasw
Message:

changed output format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Examples/hs071_cpp/hs071_nlp.cpp

    r450 r452  
    244244  printf("\n\nSolution of the primal variables, x\n");
    245245  for (Index i=0; i<n; i++) {
    246     printf("x[%d] = %g\n", i, x[i]);
     246    printf("x[%d] = %e\n", i, x[i]);
    247247  }
    248248
    249249  printf("\n\nSolution of the bound multipliers, z_L and z_U\n");
    250250  for (Index i=0; i<n; i++) {
    251     printf("z_L[%d] = %g\n", i, z_L[i]);
     251    printf("z_L[%d] = %e\n", i, z_L[i]);
    252252  }
    253253  for (Index i=0; i<n; i++) {
    254     printf("z_U[%d] = %g\n", i, z_U[i]);
     254    printf("z_U[%d] = %e\n", i, z_U[i]);
    255255  }
    256256
    257257  printf("\n\nObjective value\n");
    258   printf("f(x*) = %g\n", obj_value);
    259 }
     258  printf("f(x*) = %e\n", obj_value);
     259}
Note: See TracChangeset for help on using the changeset viewer.