Lance,
you need to put more details into your questions:
> If I would like to get the density of the rectangle,how should I calculate the
> value from rectangle in code cook_membrane.cc?
What is the density, and what is the rectangle? Is the rectangle the domain?
Is the density a physical parameter in the model, or something that needs to
be computed from the solution?
You assume that we are all familiar with the contents of the file
cook_membrane, and the physical model it implements, but that is not true. The
code gallery is a collection of programs contributed by others; help us
understand your question without having to know exactly what this program
does. Assume, for example, that it is a program you wrote yourself and that
none of us know.
> How should I design the function J(x,θ) to get the objective function
> J(x,θ),?This function indicates the minimum movement.θ is density of this
> rectangle object.
The same is true here. What is J supposed to be? Is theta just a number, or a
function of x, or a function os something else? What does "minimum movement" mean?
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/