TAGGED: ansys-maxwell, maxwell, system-coupling, transient-analysis
-
-
November 22, 2021 at 9:45 amMohamedNabilSubscriber
Dear,
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 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.
Regards Navya
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.
Regards Navya
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 [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 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- The topic ‘Using different matlab optimization algorithms inside Maxwell’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- HFSS Incident Plane Wave excitement mode
- Ansys Maxwell 3D – eddy current
- How to calculate eddy and hysteresis losses of the core?
- Simulation of capacitor combining eddy currents with displacement currents
- dq graph non-conformity
- Simplorer+Maxwell Cosimulation results and Maxwell results mismatch
- Parametrizing coil “terminals” with coil geometry
- Maxwell circuit – PWM
- On-chip inductor design
- Calculating E-field tangential to a 2D resonant structure on a sapphire chip
Top Contributors-
1762
-
635
-
599
-
591
-
366
Top Rated Tags© 2025 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.
-