Skip to content

Commit

Permalink
- update heuristic for nominal in optimization
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18277 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Vitalij Ruge committed Nov 25, 2013
1 parent 3ba8975 commit ac745ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static int check_nominal(IPOPT_DATA_ *iData, double min, double max, double nomi
double amax, amin;
amax = fabs(max);
amin = fabs(min);
iData->vnom[i] = 0.5*(amax + amin);
iData->vnom[i] = fmax(amax,amin);
if(iData->vnom[i] > 1e12)
{
double tmp = fmin(amax,amin);
Expand Down

0 comments on commit ac745ec

Please sign in to comment.