Re: solving two of nonlinear equations and two unknwons.



On Oct 17, 9:42 am, spellu...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(Peter Spellucci) wrote:
In article <79d4b9a3-85b1-4401-9f4b-bedc72eef...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>,





 Mike <Sulfate...@xxxxxxxxx> writes:
Hi

I have a problem about solving two of nonlinear equations.  And I only
have two unknown.
The function is run by some complex program and I think it's very hard
to solve it analytically.
Thus, I cannot have anallytic Jacobian.
I try numerically.  I use IMSL and fortran.

First I use NEQBF(purpose:Solves a system of nonlinear equations using
factored secant update with a finite-difference approximation to the
Jacobian.).  Then I find there is no constraint (reasonable bounds)
for this.
Does anybody know if there is constrainted nonlinear equations solver
for imsl?

Then I switch to use BCLSF(purpose:
Solves a nonlinear least squares problem subject to bounds on the
variables using a modified
Levenberg-Marquardt algorithm and a finite-difference Jacobian.)
It is quite sensitive to guess vectors.  It traps to a wrong solution.
Since I have two unkown for two nonlinear equations.  I doubt if I
need to use this (least squares).

Is there a better choice for IMSL fortran?

Mike

 if I understand this and the postings following this then
  .  you have a system f1(x,y)=0 f2(x,y)=0
     searching for a solution in a given box
  .  f1 and f2 are computed by a complicated black box system
     and you have only function values available
  .  you are using codes which try to approximate derivatives (Jacobians)
     using finite differences

 your question concerning "good digits in f" : this means an estimate of the
 number of (decimal) digits in the computed function values which are
 exact. this is needed in devising a senseful numerical derivative.
 maybe all the failures you report are simply due to the fact that
 the output of your black box is low precision thereas the software you are
 using assumes, if not told otherwise, that the function values are correctly
 rounded. this would yield horribly wrong derivatives and hence chaotic
 behaviour.
 maybe this is expensive, but have you made a plot of your two functions
 over your box in order to get a crude idea about the solution?
 next proposal would be to use minimization of the sum of squares
 f1^2+f2^2 over the box using a derivative free code
 for example bobyqua by M.J.Powell, or a (mathematically correct version of)
 Nelder-Mead code.

Peter,

Does minimizing f1^2 with the constraint f2 = 0,
(or vice versa) make any sense?

Greg
.



Relevant Pages

  • Re: how do you do?
    ... through the empty squares in the opposite direction. ... the starting squares are 1 inch larger than the finished size of the blocks. ... Draw a line through the centre, then stitch on both sides of the line. ...     You can press the white back on top of the white. ...
    (rec.crafts.textiles.quilting)
  • Re: solving two of nonlinear equations and two unknwons.
    ... Solves a nonlinear least squares problem subject to bounds on the ... digits, and f values in processing are: ... this would yield horribly wrong derivatives and hence chaotic ...
    (sci.math.num-analysis)
  • Re: Chess sets and boards
    ... type for someone who would like to get a sort of tournament or club ... of cheaper boards have only 60 or 62 squares. ...   C'mon, don't pull the guy's leg right off the bat. ... For practical play, it's best ...
    (rec.games.chess.misc)
  • Re: Whats the difference between tactics, strategy, position, etc.?
    ... let me at least present a few classic examples of positional play, ...   In reality, Black never does "strike back" in this ... It was never my intention to annotate this game in any depth, ... This means that his light squares are weak, ...
    (rec.games.chess.misc)
  • Re: Compute sqrt(x) mentally fast?
    ... using mental math? ... first of all you should know the squares of all the integer number. ...   when they taught the iterative method ...
    (sci.math)

Quantcast