Constrained Optimization Problems with MATLAB

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • This video explains how to write the objective functions and solve the contained optimization problems in MATLAB.
    ‪@DrHarishGarg‬
    MATLAB Codes
    MATLAB Code of Gaussian Quantum PSO: • MATLAB Code of the Gau...
    MATLAB Code of Firefly Algorithm: • MATLAB Code of Firefly...
    MATLAB Code of Cuckoo Search: • MATLAB Code of Cuckoo ...
    MATLAB Code of PSO: • MATLAB CODE OF THE PSO...
    MATLAB Code of ABC: • MATLAB Code of Artific...
    MATLAB Code of TLBO: • MATLAB Code of the TLB...
    MATLAB Code of SGO: • MATLAB CODE of Social ...

КОМЕНТАРІ • 40

  • @lomadakarunakarreddy2838
    @lomadakarunakarreddy2838 2 місяці тому

    Nice video

  • @anus8639
    @anus8639 3 роки тому +1

    Dear Sir, please post one video to solve multi objective optimization problem using pso

  • @mago6984
    @mago6984 3 роки тому

    You save me!! Thanks a lot!! For sure i will read all your papers

  • @awadallahosman3946
    @awadallahosman3946 2 роки тому +1

    Hello Sir
    Thanks for your efforts and time you spent to prepare that amazing videos..
    Sir, how to to modify that script to use multi objective constrained optimization?
    I am willing to use Epsilon constraint method.. please share one video about that topic..
    Thanks

  • @idea9423
    @idea9423 2 роки тому

    You are the best, thank you ☺️

  • @INVEST-VSJ
    @INVEST-VSJ 3 місяці тому

    hi sir thank you so much for the video im a phd scholar in electrical engineering im doing research in optimization can you help me to how to write an objective function along with equality and inequality constraints in matlab with respect to electrical research papers (any one resarch problem with constraints)

  • @lavanyaarubolu6230
    @lavanyaarubolu6230 2 роки тому

    Sir, Please explain about multi objective optimization

  • @muhammadwaheedafzal2317
    @muhammadwaheedafzal2317 2 місяці тому

    How to handle if we have integer variable and linear and linear constraints?
    Second if we have objective function let say minimize makespan , it means objective function should be run for all operations that how we can type this kind objective function?

  • @mebratusintie
    @mebratusintie 2 роки тому

    thank you very much for your lecture about objective function and constrained optimization ,but with great excuse can you help me my pso code ,how to put objective function and constraint optimization for power load shedding system

  • @EngrHafizQasimAli
    @EngrHafizQasimAli 3 роки тому

    Great explanation.
    Can you please make a video on a script I'll share with you?

  • @rajendrasharma9411
    @rajendrasharma9411 2 роки тому

    Sir, Thank you very much for shared video. I have a question. How to minimized multiple inequality constraints in a fitness function. please help me if possible.

  • @wenshulee6713
    @wenshulee6713 2 роки тому

    Hello Sir, Thanks for your effort . I find that the penalty term in the function is incorrect.

  • @chuongbv1631
    @chuongbv1631 3 роки тому +1

    Hi Sir, thank you very much for your shared video. I have a question which need you supporting me: i want to predict the setpoint for a mpc controller in simulink, my target is: predict to find position of a setpoint and check pv/mv in a range before sending SP to mpc controller. Could you advise me how to do that. Thank you in advance.

  • @paramjeetkaur9208
    @paramjeetkaur9208 3 роки тому +1

    thanku sir for sharing this .. i already asked abt equality constraint.. this will be very helpful.. i have 1 question.. suppose i created
    fitness fun = objective fun+ lamda( equality constraint)
    let equality constraint= some constant value - sum of min value (row) of 3*3 matrix
    means it will be the best position of 3*3 matrix and will be equal to constant then RHS value will be 0.
    how can i write matlab code for this beacuse 3*3 matrix is generated by random no.

    • @DrHarishGarg
      @DrHarishGarg  3 роки тому +2

      You can convert equality constraints say g(x)=0 into two constraints as g(x)

    • @paramjeetkaur9208
      @paramjeetkaur9208 3 роки тому

      @@DrHarishGarg sir if there are two equality constraints in a objective function then can i write this in following way
      objective function=fitness fun+ lamda(first equality constraint+ second equality constraint)

  • @idea9423
    @idea9423 2 роки тому

    Hi, if we have not Lb and Ub in the problem,how we initialize the parameters? Thank you before.

  • @feyyazfatih
    @feyyazfatih Рік тому

    Hi sir,
    suppose I have two variables: x1 and x2; and x1 must be different from x2 (as a contraint). Also I have discrete (1,2...30) and continuous variables( 0....29.9,30 ).
    How to form these values in function and main file ?
    Thank you in advance.

  • @rex47.-85
    @rex47.-85 2 роки тому

    Hello sir, I am getting an error
    "Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 0-by-1."
    when I am running it with the PSO algorithm from your video. What should I do? I have initialized the penalty variable with "penalty = [];"

  • @zeeshanahmed2594
    @zeeshanahmed2594 3 роки тому

    09:07 Please explain sir, in the very last line what does 2 mean?

  • @keerthikatalakokkula8005
    @keerthikatalakokkula8005 3 роки тому

    Sir can you send important questions of cosm all chapters according to JNTuh sir

  • @ihechi0613
    @ihechi0613 2 роки тому

    Hello D. Harish, thanks for the time you put in to explain these videos. Please i sent you an email in respect to this video. I will be glad if you can assist.

  • @vikaskumarsinha5777
    @vikaskumarsinha5777 3 роки тому +1

    Sir, How can we optimize the value of x1, x2, x3 if fitness is : x^2 + x1+x2*x3

    • @DrHarishGarg
      @DrHarishGarg  3 роки тому

      Watch the other videos on Matlab code ... It is also solved and discussed.

  • @JANI310275
    @JANI310275 2 роки тому

    you are not define x in program then how can you define y1,y2 and y3

  • @JANI310275
    @JANI310275 2 роки тому

    even after converting greater than inequality constraints into less than inequality constraints by negative sign is there any necessity to write penalty function

    • @DrHarishGarg
      @DrHarishGarg  2 роки тому

      Penalty functions are used to handle the constraints.... If there is no constraints in the problem then there is no need to write penalty function.

  • @Sanjay_Suresh_Sutar
    @Sanjay_Suresh_Sutar Рік тому

    hello sir,i am getting this error
    Unrecognized function or variable 'penalty'.

  • @awadallahosman3946
    @awadallahosman3946 2 роки тому

    Hello Sir
    I tried to use this program in the Firefly Algorithm which available in your channel but always I get error.

    • @DrHarishGarg
      @DrHarishGarg  2 роки тому +1

      This video will tell only how to write the objective function in Matlab... To run it, watch other matlab code videos... Then it run perfectly

    • @awadallahosman3946
      @awadallahosman3946 2 роки тому

      Thanks for your response.
      Sir, could you recommend any video to fix that issue??!!
      if you have any video related to that issue please share the link

    • @DrHarishGarg
      @DrHarishGarg  2 роки тому +1

      There is no error in my explained MATLAB code ... You just checked all the written setup ... Might be, you types wrong.... Make sure that the objective function should be save as a separate file and place in a same folder

  • @spinningworld987
    @spinningworld987 2 роки тому

    I am trying to run this program, I'm alway getting error 😭

    • @DrHarishGarg
      @DrHarishGarg  2 роки тому +1

      This file is used to construct the objective function .... Call this function in your main matlab code and then run

    • @spinningworld987
      @spinningworld987 2 роки тому

      @@DrHarishGarg
      Yes sir, I got it.
      Thank you sir