MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Numerical optimization

  • To: mathgroup at
  • Subject: [mg120140] Re: Numerical optimization
  • From: DrMajorBob <btreat1 at>
  • Date: Sat, 9 Jul 2011 07:34:04 -0400 (EDT)
  • References: <>
  • Reply-to: drmajorbob at

You haven't told us anything we need to know, in order to diagnose the  

We need to know what form f takes, what the error messages are... at least  
the first one... et cetera.


On Fri, 08 Jul 2011 03:53:01 -0500, Equilib <petterbe at> wrote:

> Hi all,
> I'm new to numerical optimization routines and since I get no results
> I worry that I may have made errors in my setup. I would like to
> maximize function f(p1,p2,s,c2,g) using the variables p1, p2, s. The
> parameters c2 and g are both in the interval (0,1). Hence I want a
> large matrix with solutions to the maximization problem for all
> combinations of c2 and g.
> I set it up as follows:
> Do[NMaximize[{f, "Constraints"}, {s, p1, p2}], {c2, 0, 1, 0.1}, {g, 0,
> 1, 0.1}]
> but get a page full of different error mesages and no output. Can
> anyone see the programming errors and maybe suggest an alternative
> route?
> Thanks a lot,
> Petter

DrMajorBob at

  • Prev by Date: Re: Numerical accuracy/precision - this is a bug or a feature?
  • Next by Date: Re: Beeps in Mathematica
  • Previous by thread: Numerical optimization
  • Next by thread: Re: Numerical optimization