Ignore:
Timestamp:
10/11/10 10:05:52 (15 years ago)
Author:
Mathieu Morlighem
Message:

Multivariable optimization now available (still a problem to be fixed in Gradient)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/ModelProcessorx/Control/CreateParametersControl.cpp

    r6213 r6226  
    4343                parameters->AddObject(new DoubleParam(MeanVelEnum,iomodel->meanvel));
    4444                parameters->AddObject(new DoubleParam(CmNoiseDmpEnum,iomodel->cm_noisedmp));
    45                 parameters->AddObject(new DoubleParam(CmMinEnum,iomodel->cm_min));
    46                 parameters->AddObject(new DoubleParam(CmMaxEnum,iomodel->cm_max));
     45
    4746                parameters->AddObject(new BoolParam(CmGradientEnum,iomodel->cm_gradient));
    4847
     
    5049                IoModelFetchData(&iomodel->cm_responses,NULL,NULL,iomodel_handle,"cm_responses");
    5150                IoModelFetchData(&iomodel->cm_jump,NULL,NULL,iomodel_handle,"cm_jump");
     51                IoModelFetchData(&iomodel->cm_min,NULL,NULL,iomodel_handle,"cm_min");
     52                IoModelFetchData(&iomodel->cm_max,NULL,NULL,iomodel_handle,"cm_max");
    5253                IoModelFetchData(&iomodel->optscal,NULL,NULL,iomodel_handle,"optscal");
    5354                IoModelFetchData(&iomodel->maxiter,NULL,NULL,iomodel_handle,"maxiter");
     
    5556                parameters->AddObject(new DoubleVecParam(CmResponsesEnum,iomodel->cm_responses,iomodel->nsteps));
    5657                parameters->AddObject(new DoubleVecParam(CmJumpEnum,iomodel->cm_jump,iomodel->nsteps));
    57                 parameters->AddObject(new DoubleVecParam(OptScalEnum,iomodel->optscal,iomodel->nsteps));
     58                parameters->AddObject(new DoubleMatParam(OptScalEnum,iomodel->optscal,iomodel->nsteps,iomodel->num_control_type));
     59                parameters->AddObject(new DoubleVecParam(CmMinEnum,iomodel->cm_min,iomodel->num_control_type));
     60                parameters->AddObject(new DoubleVecParam(CmMaxEnum,iomodel->cm_max,iomodel->num_control_type));
    5861                parameters->AddObject(new DoubleVecParam(MaxIterEnum,iomodel->maxiter,iomodel->nsteps));
    5962
    6063                xfree((void**)&iomodel->cm_responses);
    6164                xfree((void**)&iomodel->cm_jump);
     65                xfree((void**)&iomodel->cm_min);
     66                xfree((void**)&iomodel->cm_max);
    6267                xfree((void**)&iomodel->optscal);
    6368                xfree((void**)&iomodel->maxiter);
Note: See TracChangeset for help on using the changeset viewer.