Re: donlp2 problem




In article <1138128737.285967.194400@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
MechYouDee@xxxxxxxxx writes:
>Hi,
>
>I am using donlp2 to solve a very simple problem. My objective function
>is just the sum of the variables. I modified the code so that it would
>print "fx" after the optimization. However, almost every time I got the
>result that fx = 0. I add the following line to function solchk()
>
> printf("\noptimal value of f = %lf\n",fx);
>
>To make sure that the objective function works, I add another line
>
>printf("Test here");
>
>in the function ef(), where I defined my objective function.
>
>And I can NOT see the test words. So it seems that the function of ef()
>did not work at all. Does anybody know why? Thanks in advance.
>
>Best,
>Ming
>

it may be running in the Phase1, where f is never called. switch on te0
you should see the phase1 running on stdout, maybe it fails to find a
sufficiently feasible solution. sometimes increasing tau0 helps
or better a better initial guess. there are many harmless looking examples
even well defined, for which a bad initial guess produces failure in any
NLP solver (e.g. if penalization does not improve feasiblility)
hth
peter
.



Relevant Pages

  • Lower bound for global minimum with monotonic behavior?
    ... I am working on a least squares problem where the objective function ... My goal is to identify the term in the sum that has the least effect ... that box is guaranteed to enclose the global minimum. ...
    (sci.math.num-analysis)
  • Re: Calculating Correlation Coefficient
    ... I would like to calculate the correlation coefficient R for ... My interpretation is that you have 3-D data vectors V = ... TSS = SUM{(z-mean(z))^2} ... Or did you just minimize the objective function ...
    (comp.soft-sys.matlab)
  • Re: Function cost optimization. Transfer function estimation, starting from frequency data given.
    ... Your objective should return the vector (not the sum) to ... LSQCURVEFIT solves non-linear least squares problems. ... and the values returned by FUN can be vectors or matrices. ... the objective function, and I am not sure if it is done ...
    (comp.soft-sys.matlab)
  • Re: fmincon with nonlinear constraints
    ... I have an optimization problem. ... I have to min objective function the sum of logwhere i from 1 to ... lb = [tol tol ... ...
    (comp.soft-sys.matlab)
  • fmincon with nonlinear constraints
    ... I have to min objective function the sum of logwhere i from 1 to ... I use "fmincon" with nonlcon to solve above problem. ... matlab showed that "Warning: ...
    (comp.soft-sys.matlab)

Quantcast