Questions tagged [openmdao]

a Python-based, open-source, multidisciplinary optimization framework with support for analytic derivatives and distributed HPC computing

Filter by
Sorted by
Tagged with
0 votes
1 answer
20 views

OpenMDAO: NLBGS fails during optimization but not during analysis?

I am trying to do a fluid-structure interaction optimization using OpenMDAO with DaFoam for the fluids solver and TACS for the structural solver. When running the problem as an analysis, I am able to ...
ja97's user avatar
  • 1
1 vote
1 answer
42 views

Define vector input for dymos ODE?

For all dymos examples that I've seen (for example, this brachistochrone), the inputs are defined as follows: self.add_input('name', val=np.ones(num_nodes), ...) where num_nodes is number of nodes in ...
aaronfu's user avatar
  • 103
0 votes
2 answers
67 views

How to best setup OpenMDAO for a multi-fidelity optimisation problem

I am setting up a multi-fidelity optimiztion routine using OpenMDAO, with all computations done by a high-fidelity solver and gradient computations done by a low-fidelity solver. So far I have set it ...
Kasia's user avatar
  • 105
1 vote
1 answer
50 views

Proper setup of an ExternalCodeComp optimization

I am new to OpenMDAO and am trying to get a simple optimization set up with one external code component (as a starting point in my overall effort). I am running into a few issues: I suspect something ...
Mike's user avatar
  • 77
2 votes
1 answer
83 views

OpenMDAO genetic algorithm not running in parallel?

I am setting up an optimisation in openMDAO with the SimpleGADriver, where the points in a generation are executed in parallel. As I am new to openMDAO and relatively new to parallel computing, I ...
bartk's user avatar
  • 23
0 votes
0 answers
54 views

No module named openmdao.api

After I installed openmdao following the getting started page manual: pip install 'openmdao[all]', and try test the example by python paraboloid_min.py, why it returns that No module named openmdao....
David's user avatar
  • 1
0 votes
1 answer
34 views

Trouble with Reporting Results

With OpenMDAO 3.22 and running an optimization with parts of WISDEM involved, I get an error after the optimization completes, and is related to the reporting. In particular, the call to ...
user12507339's user avatar
0 votes
1 answer
64 views

How do I add design variables and constraints from AeroProblem and DVConstraints to OpenMDAO?

I am trying to solve the wing optimization tutorial problem given in the MACH-Aero framework documentation using OpenMDAO instead of pyOptSparse, which is originally used in the documentation. I am ...
vishnu sankar's user avatar
0 votes
1 answer
50 views

Can multiple components edit parts of the same output in OpenMDAO?

We have a large-ish problem in OpenMDAO where the set of variables exchanged via OpenMDAO would be much smaller if multiple different components could write to parts of the same variable name(s). ...
Bryan P's user avatar
  • 5,920
0 votes
0 answers
32 views

How can I find the success or failure status of a Dymos/OpenMDAO problem in a way that is accessible to a script?

I have a Dymos problem set up and am running it (optimising and simulating) in a loop, varying certain input parameters I have a script that calls on Dymos to optimise & simulate many times. When ...
J_Code's user avatar
  • 57
0 votes
0 answers
35 views

Dymos: Strange behavior with derivatives when certain state variables are set as zeros

I'm trying to replicate the optimization problem solved in this paper using Dymos: https://www.sciencedirect.com/science/article/pii/S1877705812045651 The model consists of a system of ODE's (Eq's 1-4 ...
HMCheong's user avatar
1 vote
3 answers
96 views

Iterating a model in OpenMDAO

In OpenMDAO, within an optimisation driver, is there any way to repeat/iterate a part of the model (a group) over a range of inputs? I'm developing an optimisation framework built on OpenMDAO. So far, ...
Kasia's user avatar
  • 105
0 votes
1 answer
31 views

SqliteCaseReader' object has no attribute 'system_options' in openAeroStruct [closed]

I'm using OpenAeroStruct from mdolab to simulate Aerodynamic Optimization. I used the example described here: https://mdolab-openaerostruct.readthedocs-hosted.com/en/latest/aero_walkthrough.html. The ...
Larissa Paixão's user avatar
1 vote
1 answer
39 views

Change parameters before running simulation with Dymos for monte-carlo analysis

when you run a Dymos problem and get a solution, you can simulate it and see that actual trajectories matches the collocation solution given by IPOPT. But let's say I want to take things a bit further,...
Mark Garnett's user avatar
1 vote
1 answer
36 views

Displaying Only Top Level Solver Convergence Information in pyCycle Afterburning Turbojet Example

I am running the afterburning_turbojet.py example in pyCycle. The solver settings are set in the following way: prob.set_solver_print(level=-1) prob.set_solver_print(level=2, depth=1) From my ...
noom's user avatar
  • 11
1 vote
2 answers
48 views

How to fix values to component variables in OpenMDAO

In OpenMDAO, I created a bunch of modular components such that any combination of them can be created into a model that can be optimized. However, for a particular model instance, I want to fix the ...
HMCheong's user avatar
0 votes
0 answers
49 views

OpenMDAO SLSQP - Singular matrix C in LSQ subproblem

Summary I'm trying to perform structural optimization coupling Nastran SOL 106 and OpenMDAO. My structure is a box beam reinforced with ribs and stiffeners clamped at the root and loaded with a ...
fma's user avatar
  • 259
1 vote
1 answer
45 views

How does `KSComp` behave when using the options `lower_flag`, `ref`, `ref0` and `units` and `upper` at the same time?

Reading the Adding Constraints page, I have understood that the scaling of the a constraint value happens in the following order: the constraint value is converted from the connected output’s units ...
fma's user avatar
  • 259
0 votes
1 answer
57 views

KSComp with variable-size constraint vector input

Summary I'm trying to perform structural optimization coupling Nastran SOL 106 and OpenMDAO. I want to minimize mass subject to nonlinear stress and stability constraints. My structure is a box beam ...
fma's user avatar
  • 259
1 vote
1 answer
44 views

OpenMDAO Specifying DOEDriver Number of Processors

I am trying to use the in-built DOEDriver in OpenMDAO. I know there is a setting called procs_per_model which determines the number of processors given to the model to run. However, is there a way to ...
Jehan Dastoor's user avatar
0 votes
0 answers
35 views

How to run an OpenMDAO problem employing pygmo if the library is populated with weakrefs

I am having trouble trying to parallelize an OpenMDAO problem due to the presence of weakrefs to some object instances within the code. I am serializing the data using Dill, which does not raise any ...
IgS2023's user avatar
0 votes
1 answer
40 views

How do I connect upstream outputs as initial state values in Dymos 1.4.1?

I am using Dymos to propagate the dynamics of some ODEs and embed them in a static optimization problem with OpenMDAO. I want to provide the initial value v0 for a state variable v via om.IndepVarComp(...
Jo_29's user avatar
  • 1
0 votes
1 answer
43 views

OpenMDAO outputs scaling in a coupled model

I have a coupled model defined in OpenMDAO that I'm using with an optimisation driver, and the outputs of various components vary a lot in order of magnitude. I would like to scale all outputs to ...
Kasia's user avatar
  • 105
0 votes
1 answer
78 views

OpenMDAO failing solver in optimization

With OpenMDAO, I am running the om.ScipyOptimizeDriver(optimizer='SLSQP') driver on a model that includes an implicit component with the Newton solver. It seems that the driver computes the initial ...
Kasia's user avatar
  • 105
2 votes
2 answers
62 views

OpenMDAO Metamodel is not respecting training data

I am using an OpenMDAO semi-structured metamodel as part of a Dymos optimisation. There are two input values, so the range is 2D. Usually, this works fine. However, I recently noticed that, for a ...
J_Code's user avatar
  • 57
1 vote
2 answers
68 views

Is there a way to "clean up" an OpenMDAO component to be pickled after an optimization has been run?

Let's take the example below, but imagine that Comp is a much larger group than depicted. After the optimization is run, we want to be able to pickle comp and then later unpickle is it to call some of ...
Andrew's user avatar
  • 163
0 votes
1 answer
37 views

OpenMDAO Newton solver errors handling in DOE

With OpenMDAO 3.25, I am trying to run the om.DOEDriver with om.UniformGenerator on a model which contains a group with a Newton NL solver with the linear DirectSolver solver, similar to that ...
Kasia's user avatar
  • 105
0 votes
0 answers
53 views

pyinstaller: Cannot compile my code into .exe

I am writing this post to ask you some help about how to properly use pyinstaller. Actually, I built a little program which is using the module openmdao (a framework of optimizing algorithms) which I ...
Quentin Tiefaine's user avatar
0 votes
1 answer
55 views

Loading KrigingSurrogate Trained Model without Storing Training Data

openmdao's KrigingSurrogate allows the user to cache a trained Kriging surrogate model and load it later using the optional argument training_cache. This works great except for one sometimes ...
awass's user avatar
  • 3
1 vote
1 answer
117 views

OpenMDAO v/s modeFrontier comparisons for optimization capabilities and application scaling

I realize that this might not be the best platform to ask this, but I think this would be best unbiased one to put my question in. How would you compare OpenMDAO v/s modeFrontier with regards to there ...
SamAct's user avatar
  • 539
1 vote
2 answers
83 views

Recomendations (functions/solution) to apply in OpenMDAO instead of boolean conditions (if/else)

I have been working for a couple of months with OpenMDAO and I find myself struggling with my code when I want to impose conditions for trying to replicate a physical/engineering behaviour. I have ...
rquiben's user avatar
  • 13
0 votes
0 answers
60 views

Can the exit status message from SciPy Optimize be improved?

In OpenMDAO v3.20.2, the optimization report was added (here). I'm using the SciPyOptimizer SLSQP optimizer, and the report appears to have a bug. The iterations count from the report does not match ...
Chris's user avatar
  • 57
1 vote
1 answer
95 views

Is there a way to implement equations as Dymos path constraints?

For example, if I have a function h_max(mach) and I want the altitude to always respect this predefined altitude-mach relationship throughout the flight envelop, how could I implement this? I have ...
J_Code's user avatar
  • 57
0 votes
1 answer
91 views

Can I add or remove design variables from a problem after setup() call?

I have a mixed-integer optimization problem that I am trying to solve. I've been trying to solve the problem with penalty methods with little success and am wanting to try some alternative methods. ...
Chris's user avatar
  • 57
0 votes
1 answer
37 views

Why SimpleGADriver's results depend on the initial design variables values?

I am using SimpleGADriver to optimize a MIP problem with multiple constrains and objects for a spring design project. I have a question regarding the initial values of the design variables. Based on ...
Guan Yu's user avatar
0 votes
1 answer
78 views

How do I define matrix parameters in a Dymos problem?

I'm trying to setup a dynamic optimization with dymos where I have an analysis upstream of my dymos trajectory. This upstream analysis computes some 2D-matrix K. I want to pass this matrix into my ...
Chris's user avatar
  • 57
0 votes
1 answer
61 views

Is it proper to use if/else to avoid division by zero in the compute() define section?

I'm new to the OpenMDAO framework and trying to build a explicit self-defined model and use SimpleGADriver to perform a multi-objective MIP optimization. While usingclass MyModel(ExplicitComponent):to ...
Guan Yu's user avatar
3 votes
2 answers
55 views

Is there any way to get\list the unconnected inputs of an OpenMDAO group?

Considering the following problem import openmdao.api as om class Sys(om.Group): def setup(self): self.add_subsystem('sys1', om.ExecComp('v1 = a + b'), promotes=['*']) self....
Andrew's user avatar
  • 163
3 votes
2 answers
170 views

Dymos: How can I set object to minimize a function value of state variables at the end of simulation time

I want to use Dymos to solve the optimal control problem: enter image description here subject to the dynamic system: enter image description here I have two questions: (1) How to set the object ...
Wei's user avatar
  • 33
0 votes
1 answer
76 views

openmdao compute gradient of constraints but not objective

How can I compute the gradient of my constraints without computing the gradient of my objective? I've tried this, self._problem().compute_totals(of=self.consList, wrt=self._dvlist, ...
kilojoules's user avatar
  • 9,956
1 vote
1 answer
47 views

Make input variables inactive when computing the jacobian

Make input variables inactive when computing the jacobian We are setting up an aero elastic optimization framework for wind turbine optimization and we are there facing issues with defining inputs and ...
Kenneth Lønbæk's user avatar
0 votes
3 answers
73 views

BEM solver derivatives

During the OpenMDAO workshop in 2022 it has been mentioned that someone did some work on the analytic (or algorithmic?) derivatives for a Boundary Element Method solver, for the use in gradient-based ...
Kasia's user avatar
  • 105
0 votes
1 answer
87 views

Dymos: How can I export the derivatives or jacobian?

I am trying to export the gradient information from the evtol_dymos_vectorized.py found here. Here is a similar answer that I found. I tried to record the derivatives the way you would in OpenMDAO. ...
MSTGrad's user avatar
1 vote
1 answer
93 views

OpenMDAO SimpleGADriver Run Parallel

Have some of you succeeded to run the OpenMDAO SimpleGADriver with the run parallel mod enabled? When I am trying to run their example from the official website (https://openmdao.org/newdocs/versions/...
Quentin Tiefaine's user avatar
0 votes
1 answer
288 views

Install IPOPT and pyOptSparse

I am opening this thread in the hope to find some help about how to install IPOPT and pyOptSparse. I have already tried to use the OpenMDAO script which is supposed to do the job, but it does not seem ...
Quentin Tiefaine's user avatar
0 votes
1 answer
47 views

What is openMDAO's reasoning for returning 'None' for self cancelling units

I've setup an Explicit Component model... one of my outputs is a ratio: self.add_output('diameter_over_thickness', units='mm/mm') Upon the class being initialized, openMDAO assigns the units to ...
B0bbyDazzler's user avatar
0 votes
3 answers
178 views

OpenMDAO: How to use parallel processing for a particular subsystem while others run in serial?

I am carrying out static aeroelastic analysis using an OpenMDAO-based script. I am trying to adapt my script to run it on a supercomputer. The MDA loop includes several components, including a CFD ...
yll's user avatar
  • 11
0 votes
2 answers
157 views

OpenMDAO: pyOptSparse building script

So I am opening this new thread about how to build pyOptSparse and use it within the OpenMDAO framework. The OpenMDAO team released a scrip which should build pyOptSparse by integrating IPOPT as well: ...
Quentin Tiefaine's user avatar
1 vote
1 answer
63 views

How to generate live plot of the residuals vs. number of iteration while the driver is still running?

My objective is while the driver/non-linear solver is still running, I would not only like to print the values of the inputs/outputs/gradients information but I would also like to generate a live plot ...
vishnu sankar's user avatar
1 vote
0 answers
67 views

Optimization failing after very few iterations for nonlinear constraints calculated in a blackbox wrapped in an explicit component

I have a blackbox solver which is wrapped as explicit component and the objective function and constraints are calculated in the blackbox solver and output. These are taken to a constraint components ...
Kapil's user avatar
  • 81

1
2 3 4 5
11