Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8607

How to specify the gradient of this function?

From Sam Takoy <sam.takoy@yahoo.com>
Newsgroups comp.soft-sys.math.mathematica
Subject How to specify the gradient of this function?
Date 2012-02-19 11:28 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jhqmcf$f66$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hi,

If I could ask you to take a look at this code:

objF[x_, v_] := (x - 2)^4 + Norm[v]^2;
FindMinimum[objF[x, v], {{x, 1}, {v, {1, 1, 1, 1}}}, StepMonitor :>
Print[x, " ", v]]

My objF takes a number and a vector. Is there a way to specify a
gradient for a function with such a mix of inputs?

Many thanks in advance,

Sam

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

How to specify the gradient of this function? Sam Takoy <sam.takoy@yahoo.com> - 2012-02-19 11:28 +0000
  Re: How to specify the gradient of this function? Ray Koopman <koopman@sfu.ca> - 2012-02-20 07:48 +0000

csiph-web