BIMK / PlatEMO

Evolutionary multi-objective optimization platform
1.56k stars 460 forks source link

collect optimal point #100

Open BJMariem opened 2 years ago

BJMariem commented 2 years ago

I'm trying to apply a multi-objective optimization algorithm using PLATEMO to optimize some parameters and I need to collect optimal data. Can someone help me please? Thanks.

Mathi50 commented 2 years ago

BJMariem there is a answer for your question in PlatEMO 3.4 manual. I was also trying to get optimal solutions for MOOP finally I got it. Thanks for PlatEMO 3.4 Team. Excellent work.....

BJMariem commented 2 years ago

thank you for your retour,did you mean we can collect optimal solution by specifying the value of "outputFcn" ??  Le lundi 31 janvier 2022, 11:00:00 UTC+1, Chandana @.***> a écrit :

BJMariem there is a answer for your question in PlatEMO 3.4 manual. I was also trying to get optimal solutions for MOOP finally I got it. Thanks for PlatEMO 3.4 Team. Excellent work.....

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>

Mathi50 commented 2 years ago

Dear BJMariem, Please check pageno: 6 in the user manual. I have obtained optimal solutions using the code pro=ZDT1();. I think this is helpful for you. Also we can use 'outputFcn'.

Mathi50 commented 2 years ago

You can get the 'result' as a output while running platEMO(........);

On Tue, 1 Feb 2022, 11:50 BJMariem, @.***> wrote:

Dear Mathi50 ; when I run " IGD(result{end},pro.optimum); " I have this error !!! Undefined function or variable 'result'.

any idea please!

— Reply to this email directly, view it on GitHub https://github.com/BIMK/PlatEMO/issues/100#issuecomment-1026513875, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARV7W3PENIK2GQBNKOIZTBTUY53TBANCNFSM5L7E3M7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

Mathi50 commented 2 years ago

Dear BJMariem, Did u find the 'result' ? while executing PlatEMO we have to the save as .mat file. Once we load the .mat file you can 'result','metric'. Using that we can get POS,HV,IGD etc.

BJMariem commented 2 years ago

Dear Mathi50 ; so we need to save all populations! the value of the parameter "save" will be equal to the number of evaluations ??

Mathi50 commented 2 years ago

Dear BJMariem, The parameter 'save' denotes the number of saved populations, where the populations are saved to a file if the value is positive and displayed in a figure if the value is zero.

BJMariem commented 2 years ago

Dear Mathi50 unfortunately I can not find the desired result . indeed , the problem to be optimized has 4 objectives. I defined the necessary parameters, then I redefined "CalObj" and "CalCon" and I set the following code to generate pareto front : function R = GetOptimum(obj,N) R = UniformPoint(N,obj.M) ; end

after running platemo (......) I use pro = name_problem what do you think about this procedure ? any ideas ? any suggestions ?

Mathi50 commented 2 years ago

Dear BJMariem, I tried the following code to get the pareto front, `platemo('algorithm',@MOEAD,'problem',@ZDT1,'N',200,'M',2,'D',5,'save',30); pro = ZDT1(); '

I don't have any idea about this "CalObj" and "CalCon". Can you tell me where can I find this functions in PlatEMO? Which folder it is. Thank you.

BJMariem commented 2 years ago

Dear Mathi50 CalObj and CalCon are two methods for calculating objective values and constraints violation respectively. In fact, I'm trying to use platemo to optimize a user-defined problem that why I have to define the objective function and constraint.

Mathi50 commented 2 years ago

Ok thanks.