553
questions
0
votes
1
answer
30
views
Final boundary constraint with states from two tandem phases in Dymos
Is it possible to create a boundary constraint in Dymos with states from two separate tandem phases? In my problem the first phase is governed by a system of ODEs with a control, and the second tandem ...
0
votes
1
answer
115
views
Bayesian optimization in OpenMDAO?
I have a model built in OpenMDAO that I am interested in trying with Bayesian optimization. I have found some work in this area for older versions of OpenMDAO, but nothing for the current OpenMDAO ...
0
votes
1
answer
43
views
How to handle large sparse inputs/outputs within an OpenMDAO model?
I'm looking for general advice for dealing with large, highly sparse inputs/outputs within OpenMDAO.
I have recently implemented a new group within my existing OpenMDAO model. All analytic partials ...
1
vote
1
answer
92
views
Problem with Implicit Component and Coupled components
I have a few questions on the strategy for my problem setup.
My problem is made of a group containing 5 key components, but 4 are instances of the same component (cable), which calculates the tension (...
0
votes
2
answers
26
views
KeyError when instantiating Birkhoff transcription in Dymos
I'm getting a KeyError when I try to use the Birkhoff transcription. Running
import dymos as dm
tx = dm.Birkhoff(num_nodes=5)
results in the error below. Looking at a recent issue on Github, I have a ...
0
votes
0
answers
37
views
Assign a threshold on the Jacobian of a Dymos problem
I have a multiphase Dymos problem I am trying to optimise. It is not working so far and I think it is because of my sad looking Jacobian, as seen below. All driver values in the problem are scaled ...
0
votes
1
answer
35
views
Run two Dymos problems in tandem
My workflow using Dymos often involves running alot of Dymos optimisations in tandem so I can debug faster (i.e. I can try a bunch of different things at the same time). This has been working until ...
2
votes
0
answers
35
views
How to Configure HSL MA86 for Use w/ IPOPT in OpenMDAO
I am currently trying to configure the HSL MA86 linear solver for use with IPOPT in OpenMDAO. I am using a Linux Ubuntu computer. I have extracted both HSL MA86 and IPOPT from tar.gz files and created ...
0
votes
1
answer
40
views
Dymos/OpenMDAO phase linkage solution reading error
I am running and investigating the Dymos/OpenMDAO example provided here:
SSTO Earth Launch
It runs fine, with different boundary conditions and parameters.
My goal is to make the trajectory in two ...
1
vote
0
answers
17
views
In Dymos, is there a way to add a timeseries output to only a single timeseries when a phase has multiple timeseries output comps?
For example if a second timeseries has been added to create tandem phases, can it be specified that only select timeseries outputs are added to the additional timeseries?
0
votes
1
answer
32
views
Is there any way to have tandem phases in dymos that don't share a t_initial and t_duration?
For example if there is one long phase, but some short fast dynamics need to be captured in tandem at the beginning of the phase at a higher level of discretization, but these fast dynamics still ...
1
vote
1
answer
64
views
Understanding partial derivative error in Dymos
I've built a dynamics model in Dymos, using Jax to calculate the partial derivatives using auto-differentiation. The code looks something like the following:
import openmdao.api as om
import dymos as ...
1
vote
1
answer
51
views
'Output states' in Dymos?
I'm building a model in Dymos/OpenMDAO. There are a few states which are required for calculating the dynamics, and then some which I'd just like to derive and output. For example, say I had a very ...
0
votes
1
answer
53
views
Constraints or objectives cannot be impacted by the design variables of the problem
I've been expanding my OpenMDAO script to include a sub-iteration. Basically, I have a propeller whose chord and twist distribution is determined by a cruise condition (with collective angle) where ...
0
votes
0
answers
35
views
Trying to do an optimization with 3 variables in openMDAO
I am trying to add a third variable in my problem with np but it seems to not work, like the optimization is failing but the code is working so I don't really know what to do.
I don't know if I should ...
0
votes
1
answer
46
views
Access values of design variables while solver is running (OpenMDAO with IPOPT)
I'm trying to do trajectory optimisation in Dymos (a library built atop OpenMDAO), but I'm not getting the convergence properties I'm expecting and I'd like to inspect the intermediate solutions of ...
1
vote
1
answer
42
views
create a constraint in OpenMDAO
Welcome to everyone reading this post,
So I am trying to create a constraint using 2 variables of my model but it seems I don't know how to setup this.
I am trying to make sure that np_check is ...
1
vote
1
answer
30
views
Dymos: Restoration failure when splitting up ODE into two components
I have been building an optimal control simulation similar to the racecar example from the documentation (https://openmdao.org/dymos/docs/latest/examples/racecar/racecar.html). In my model there is a ...
1
vote
0
answers
28
views
Multiples Errors in my optimization code in OpenMDAO
Good afternoon,
So after asking a few question, I am working on an optimization problem with openMDAO and I asked a few questions here about previous mistakes and when I tried something new, a new ...
0
votes
0
answers
29
views
Issue regarding an out of range problem in my optimization problem OpenMDAO
In my project, I am trying to optimize the Volume of an airship regarding mission requirements and to do so I have the calculation of the weight through out 2 methods and then I substract one to the ...
0
votes
1
answer
97
views
My design variables have no impact on the constraints and objective function in OpenMDAO
So I am working on an optimization problem with OpenMDAO. The subject of the optimization problem is to find the best Volume regarding some mission requirements that you chose and then make the Volume ...
0
votes
1
answer
47
views
Dymos: How to parallelize compute across collocation nodes when using a black-box function
I'm trying to use a black-box solver to compute one of the ODE functions in Dymos. For example, the component will compute x_dot = f(x) where f is an existing physics-based solver and x is a vector of ...
0
votes
0
answers
35
views
OpenMDAO use of "set_constraint_options()" method on Dymos Problem
In the OpenMDAO documentation page entitled Modifying Design Variables, Constraints, and Objectives
the method set_constraint_options() is documented, and in the example it is shown that the method ...
0
votes
0
answers
75
views
Dymos problem setup for fuel cell battery system
Edit 1
Hi Justin,
Sorry for the confusion. I have edited & updated the question now after making some progress. Also adding an N2 diagram to make it more readable - N2 Diagram
I am trying to build ...
0
votes
1
answer
47
views
OpenMDAO 3.x: relevance graph for ParallelGroup approximated totals
For the below problem, I would like to improve the efficiency of the gradient computation when 1) approximating totals with FD and when using matrix free forward mode. The ParallelGroup components all ...
1
vote
1
answer
55
views
Modelling components in OpenMDAO where the number of residuals does not match the number of state variables
I am currently trying to model a network flow topology optimization in OpenMDAO.
One of the design variables is the mass flow from a source into the network. I use mass conservation at every network ...
1
vote
1
answer
57
views
Can a SubmodelComp have its own driver?
I'm checking out the new OpenMDAO SubmodelComp and I am wondering if I understand how it is meant to be used correctly.
Is it possible for a SubmodelComp to have its own Driver and optimizer? In the ...
0
votes
2
answers
58
views
How to tie SNOPT jacobian row and column back to OpenMDAO objective / constraint and variable
I am doing some debugging on a problem in OpenMDAO. I am using SNOPT as my optimizer. With SNOPT, you can do a derivatives check on your problem with the option "Verify level = 2".
This will ...
0
votes
0
answers
45
views
Dymos: How to impose a constraint on a static output variable of ODE group at the phase level
In my ODE system, I have a component to compute some quantity of interest based on the design variables, e.g., the weight of a device based on its dimensions (the dimensions are posed as design ...
0
votes
0
answers
54
views
Defining a Constraint for a Component and Enforcing it in Openmdao
I am new to openmdao and am trying to solve a problem with 2 disciplines (defined as explicit components). The first component gets a number of input values and create a number of outputs which are ...
0
votes
0
answers
46
views
Increasing problem size causes PETSc error on model run?
I am working on implementing a boundary element method for hydrodynamic forces with gradients in OpenMDAO. I have had success with moderate sized problems (size here meaning the number of panels in ...
1
vote
1
answer
85
views
Dymos: How to specify the values of a time-varying variable
In vehicle dynamics applications, certain time-varying variables may be provided by the user. Common examples are the displacement values applied to the wheels over time or the steering angles ...
1
vote
1
answer
102
views
How can you force instances of MATLAB Engine to operate in parallel from Python within a Python function?
I am trying to run from Python a MATLAB model so that model design parameters can be optimized in a genetic algorithm using OpenMDAO. I want to divide the number of MATLAB model runs by the number ...
0
votes
2
answers
67
views
Is there a way to obtain an expression using symbolic variables in OpenMDAO?
I want to use a block of code written in OpenMDAO to extract an expression of an output as function of a couple of variables (needed to be declared symbolic). In this case the structure of the problem ...
1
vote
1
answer
51
views
OpenMDAO Dymos Simulate Method Calls Setup Multiple Times
I currently have an ExplicitComponent that takes as an input altitude and computes atmospheric properties at that altitude. The compute function itself uses another Python library to do this. When the ...
0
votes
1
answer
52
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 ...
1
vote
1
answer
65
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 ...
0
votes
2
answers
92
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 ...
1
vote
1
answer
78
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 ...
2
votes
1
answer
129
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 ...
0
votes
0
answers
149
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....
0
votes
1
answer
38
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 ...
0
votes
1
answer
88
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 ...
0
votes
1
answer
105
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). ...
0
votes
0
answers
47
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 ...
1
vote
3
answers
155
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, ...
0
votes
1
answer
41
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 ...
1
vote
1
answer
58
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,...
1
vote
1
answer
48
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 ...
1
vote
2
answers
74
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 ...