Changeset 530


Ignore:
Timestamp:
Oct 2, 2005 5:27:29 PM (14 years ago)
Author:
andreasw
Message:

print unscaled initial and final variables for J_VECTOR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/Algorithm/IpOrigIpoptNLP.cpp

    r529 r530  
    135135                                         )
    136136  {
     137    DBG_START_METH("OrigIpoptNLP::InitializeStructures", dbg_verbosity);
    137138    DBG_ASSERT(initialized_);
    138139    bool retValue;
     
    239240    }
    240241
     242
    241243    Number obj_scal = NLP_scaling()->apply_obj_scaling(1.);
    242244    if (init_x) {
     245      x->Print(*jnlst_, J_VECTOR, J_INITIALIZATION, "initial x unscaled");
    243246      if (NLP_scaling()->have_x_scaling()) {
    244247        x = NLP_scaling()->apply_vector_scaling_x_NonConst(ConstPtr(x));
     
    246249    }
    247250    if (init_y_c) {
     251      y_c->Print(*jnlst_, J_VECTOR, J_INITIALIZATION, "initial y_c unscaled");
    248252      if (NLP_scaling()->have_c_scaling()) {
    249253        y_c = NLP_scaling()->unapply_vector_scaling_c_NonConst(ConstPtr(y_c));
     
    254258    }
    255259    if (init_y_d) {
     260      y_d->Print(*jnlst_, J_VECTOR, J_INITIALIZATION, "initial y_d unscaled");
    256261      if (NLP_scaling()->have_d_scaling()) {
    257262        y_d = NLP_scaling()->unapply_vector_scaling_d_NonConst(ConstPtr(y_d));
     
    262267    }
    263268    if (init_z_L) {
     269      z_L->Print(*jnlst_, J_VECTOR, J_INITIALIZATION, "initial z_L unscaled");
    264270      if (NLP_scaling()->have_x_scaling()) {
    265271        z_L = NLP_scaling()->apply_vector_scaling_x_LU_NonConst(*Px_L_, ConstPtr(z_L), *x_space_);
     
    270276    }
    271277    if (init_z_U) {
     278      z_U->Print(*jnlst_, J_VECTOR, J_INITIALIZATION, "initial z_U unscaled");
    272279      if (NLP_scaling()->have_x_scaling()) {
    273280        z_U = NLP_scaling()->apply_vector_scaling_x_LU_NonConst(*Px_U_, ConstPtr(z_U), *x_space_);
     
    583590                                      Number obj_value)
    584591  {
     592    DBG_START_METH("OrigIpoptNLP::FinalizeSolution", dbg_verbosity);
    585593    // need to submit the unscaled solution back to the nlp
    586594    SmartPtr<const Vector> unscaled_x =
     
    622630      unscaled_y_d = NLP_scaling()->apply_vector_scaling_d(&y_d);
    623631    }
     632
     633    unscaled_x->Print(*jnlst_, J_VECTOR, J_SOLUTION, "final x unscaled");
     634    unscaled_y_c->Print(*jnlst_, J_VECTOR, J_SOLUTION, "final y_c unscaled");
     635    unscaled_y_d->Print(*jnlst_, J_VECTOR, J_SOLUTION, "final y_d unscaled");
     636    unscaled_z_L->Print(*jnlst_, J_VECTOR, J_SOLUTION, "final z_L unscaled");
     637    unscaled_z_U->Print(*jnlst_, J_VECTOR, J_SOLUTION, "final z_U unscaled");
    624638
    625639    nlp_->FinalizeSolution(status, *unscaled_x,
Note: See TracChangeset for help on using the changeset viewer.