Skip to content

Commit

Permalink
- use ipopt function only if ipopt is known
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17096 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Sep 6, 2013
1 parent 3ceecf0 commit 342447a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SimulationRuntime/c/optimization/localFunction.h
Expand Up @@ -46,6 +46,8 @@ extern "C"
{
#endif

#ifdef WITH_IPOPT

#ifndef Bool
#define Bool char
#endif
Expand All @@ -58,6 +60,7 @@ extern "C"
#define Index int
#endif


Bool evalfF(Index n, double * x, Bool new_x, Number *objValue, void * useData);
Bool evalfDiffF(Index n, double * x, Bool new_x, Number *gradF, void * useData);
Bool goal_func_mayer(double* vn, double *obj_value, IPOPT_DATA_ *iData);
Expand Down Expand Up @@ -104,6 +107,7 @@ int ipoptDebuge(IPOPT_DATA_ *iData, double *x);
/*initial*/
int move_grid(IPOPT_DATA_ *iData);

#endif /*WITH_IPOPT*/
/*ADOL-C*/
//extern int functionODE_ADOLC(DATA*); //jacobian(0, data->modelData.nStates, data->modelData.nStates + data->modelData.nInputVars, indvars, jac_states);

Expand Down

0 comments on commit 342447a

Please sign in to comment.