Skip to content

Commit

Permalink
Removed unused variables in optimization
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19888 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Mar 31, 2014
1 parent 8db0752 commit 016bd45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Expand Up @@ -82,8 +82,6 @@ int allocateIpoptData(IPOPT_DATA_ *iData)
iData->mult_g = (double*)malloc(ng*sizeof(double));
iData->mult_x_L = (double*)malloc(dim->NV*sizeof(double));
iData->mult_x_U = (double*)malloc(dim->NV*sizeof(double));
iData->lhs = (double*)malloc((int)dim->nJ*sizeof(double));
iData->rhs = (double*)malloc((int)dim->nJ*sizeof(double));

for(i =0; i< dim->deg + 1; ++i)
mbase->dotx[i] = (double*)malloc(dim->nx*sizeof(double));
Expand Down Expand Up @@ -246,8 +244,6 @@ static int freeIpoptData(IPOPT_DATA_ *iData)
free(dtime->time);
free(iData->w);
free(dtime->dt);
free(iData->lhs);
free(iData->rhs);
free(iData->sv);
free(iData->sh);
free(iData->start_u);
Expand Down
11 changes: 2 additions & 9 deletions SimulationRuntime/c/optimization/ipoptODEstruct.h
Expand Up @@ -199,12 +199,8 @@ typedef struct IPOPT_DATA_

/* ODE */
double * x0;


double * start_u;

double *lhs;
double *rhs;
double *sh;
double *sv;
double *v;
Expand All @@ -213,19 +209,16 @@ typedef struct IPOPT_DATA_

int endN;

int * iRow;
int * iCol;

double *mult_g;
double *mult_x_L;
double *mult_x_U;

int current_var;
int current_time;
double pmayer;
double plagrange;

short mayer_index;
short lagrange_index;

DATA * data;

char ** input_name;
Expand Down

0 comments on commit 016bd45

Please sign in to comment.