November 22, 2021 at 9:45 amMohamedNabilSubscriber
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, , $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?
MohamedNovember 22, 2021 at 3:18 pmNavya CAnsys 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.
November 22, 2021 at 3:21 pmMohamedNabilSubscriberThanks @ 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 CAnsys 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.
November 23, 2021 at 8:18 amMohamedNabilSubscriberthanks for your help.
Indeed, I'm aware of this part. But i cannot find how to specify correctly the number of variables  and options.
[x,fval,exitflag,output] = particleswarm (wrapperfunc, , $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.
April 23, 2022 at 8:40 amSupriyaSubscriberHello sir,
Do you solve your problem?
April 26, 2022 at 8:35 amMohamedNabilSubscriberNo, i gave up because there is no clear help. If you solve it then let me know.
Best regards Mohamed
Viewing 6 reply threads
Ansys Innovation Space
- You must be logged in to reply to this topic.
Boost Ansys Fluent Simulations with AWS
Earth Rescue – An Ansys Online Series
Ansys BlogTrending 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
© 2023 Copyright ANSYS, Inc. All rights reserved.