Replies: 2 comments 3 replies
-
I replied to your direct email before I saw your discussion post, so I'm copying that here in case it's useful to other users! The IPOPT optimizer is only available on your system if you specifically install it, so that’s the short answer for why you’re getting that error. If you install pyoptsparse and configure it to include IPOPT you’ll be able to use it with Aviary – this is straightforward if you install pyoptsparse via conda (it handles that for you), if you are not using anaconda then you can try build_pyoptsparse, but some users have reported difficulty getting that working. Another alternative is to try the SLSQP optimizer, which is part of scipy and should work with any Aviary install no matter how you got it. It is generally slower than the alternatives, which is why we tend to default to IPOPT whenever possible. |
Beta Was this translation helpful? Give feedback.
-
Thanks Jason this is a very useful answer👍🏻
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Jason Kirk ***@***.***>
Sent: Monday, April 21, 2025 6:42:24 PM
To: OpenMDAO/Aviary ***@***.***>
Cc: nawafmd9 ***@***.***>; Author ***@***.***>
Subject: Re: [OpenMDAO/Aviary] pyOptSparseDriver is not available (Discussion #739)
I replied to your direct email before I saw your discussion post, so I'm copying that here in case it's useful to other users!
The IPOPT optimizer is only available on your system if you specifically install it, so that’s the short answer for why you’re getting that error. If you install pyoptsparse and configure it to include IPOPT you’ll be able to use it with Aviary – this is straightforward if you install pyoptsparse via conda (it handles that for you), if you are not using anaconda then you can try build_pyoptsparse<https://github.com/OpenMDAO/build_pyoptsparse>, but some users have reported difficulty getting that working.
Another alternative is to try the SLSQP optimizer, which is part of scipy and should work with any Aviary install no matter how you got it. It is generally slower than the alternatives, which is why we tend to default to IPOPT whenever possible.
—
Reply to this email directly, view it on GitHub<#739 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BRLTMQRBOLYXWJKCTDVRYM322UGWBAVCNFSM6AAAAAB3KL7OQWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTEOJQGAYDGMY>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there im new to Aviary and I was trying to run Aviary level-1 example in the aviary documentation page.
I ran this command in the terminal: aviary run_mission models/test_aircraft/aircraft_for_bench_GwGm.csv --optimizer IPOPT --max_iter 1
then I got this error: raise RuntimeError('pyOptSparseDriver is not available, pyOptsparse is not installed.')
RuntimeError: pyOptSparseDriver is not available, pyOptsparse is not installed.
can anyone help me with this?
note that I install Aviary with "pip install aviary" command and I did not install Condaforge.
Beta Was this translation helpful? Give feedback.
All reactions