TAGGED: ansys-maxwell, maxwell, system-coupling, transient-analysis
-
-
November 22, 2021 at 9:45 am
MohamedNabil
SubscriberDear,
I would like to use different matlab optimization algorithms like particle swarm etc.
I'm trying to implement it inside Maxwell optimization instead of the default matlab fmincon function but i have some issues. For example, [x,fval,exitflag,output] = particleswarm (wrapperfunc, [6], $ANS_MINVAL, $ANS_MAXVAL, options).
I need to better specify options and number of variables.
I would like to implement my own optimization algorithm in matlab and use it inside Maxwell.
Could someone please help me with some documentations and examples?
Thanks
BR,
Mohamed
November 22, 2021 at 3:18 pmNavya C
Ansys EmployeeHi @MohamedNabil For your requirement on "how to implement your own optimization algorithm in MATLAB", I suggest you reach out to MATLAB support.
And for how to use the MATLAB optimization with Maxwell, you can refer to the Maxwell help and there is extensive information detailed.
Ansys employees may not be able to help with the core scripting on an open forum like this. But I encourage others in the forum to pitch in.
Regards Navya
November 22, 2021 at 3:21 pmMohamedNabil
SubscriberThanks @ nchode for your comment.
I maybe was short in "how to implement your own optimization algorithm in MATLAB" but i mean to couple it with maxwell. so i made an optimization algorithm in matlab and i want to connect it with. Maxwell.
November 22, 2021 at 3:27 pmNavya C
Ansys Employee@MohamedNabil Can you check the above-mentioned Maxwell help section for linking Maxwell with MATLAB?
If you could not find or face any issues please let us know. We will surely help you with that.
Regards Navya
November 23, 2021 at 8:18 amMohamedNabil
Subscriberthanks for your help.
Indeed, I'm aware of this part. But i cannot find how to specify correctly the number of variables [6] and options.
[x,fval,exitflag,output] = particleswarm (wrapperfunc, [6], $ANS_MINVAL, $ANS_MAXVAL, options)
Besides, this is a ready to use matlab optimizer.
But I have a custom made optimizer in matlab and i need to call this optimizer which is not ready function in matlab.
This optimizer should receive the computed objectives from Maxwell and send change to the design parameters in Maxwell.
BR Mohamed
April 23, 2022 at 8:40 amSupriya
SubscriberHello sir,
Do you solve your problem?
April 26, 2022 at 8:35 amMohamedNabil
SubscriberNo, i gave up because there is no clear help. If you solve it then let me know.
Best regards Mohamed
Viewing 6 reply threads- You must be logged in to reply to this topic.
Ansys Innovation SpaceBoost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.Â
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- simulation completed with execution error on server
- Maxwell, HFSS or Q3D?
- Unable to assign correctly the excitations in a coil
- Intersect errors with model with complex structure
- How to export Ansys Maxwell simulation results for post-processing in matlab or in .csv file
- Process ‘3dtds’ terminated abnormally
- Running ANSYS HFSS on the HPC (it runs on Linux only)
- Error while solving Optimetrics
- Concept of Interpolation Sweep in HFSS
- Error
Top Contributors-
8754
-
4658
-
3151
-
1678
-
1454
© 2023 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-