ImportError: No module named optimization
Hallo All
I'm trying to solve numerically an optimization problem with PDE constraints as a part of my thesis, and I found this interesting paper while looking for some packages to solve such problems " A framework for automated PDE-constrained optimisation " by Patrick E. Farrell, Colin J. Cotter and Simon W. Funke.
I tried to implement the first example given in that paper , which is "distributed control for the heat equation" by copying and past the code , but it wasn't working with me, and the same thing for the example mentioned in the documentation here http://
I'm really newbie in FEniCS and Linux system, so please, bear me.
I ready managed to solve some examples in FEniCS sucessfuly by reading their tutorial, so I don't think the problem is with the FEniCS installation.
I'm using ubuntu 12.04 LTS , and I installed scipy 0.11 ( together with numpy 1.6.1) as it was mentioned in the documentation.
I installed the dolfin-adjoint from the "launchpad PPA".
Whenever I run the code to solve the minimization problem , I get this message
python /home/ahmad/
Traceback (most recent call last):
File "/home/
from dolfin_adjoint import *
File "/usr/lib/
import optimization
ImportError: No module named optimization
So, please, if you know what might be the mistake, then I really appreciate your answer.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Simon Funke
- Solved:
- Last query:
- Last reply: