Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

Using different matlab optimization algorithms inside Maxwell

    • MohamedNabil
      Subscriber

      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

    • Navya C
      Ansys Employee
      Hi @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

    • MohamedNabil
      Subscriber
      Thanks @ 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.
    • Navya 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
    • MohamedNabil
      Subscriber
      thanks 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
    • Supriya
      Subscriber
      Hello sir,
      Do you solve your problem?

    • MohamedNabil
      Subscriber
      No, 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.