How to use four Gaussian process regression trained machine learning models as objective functions in multiobjective optimization?
Show older comments
I have trained four Gaussian process regression machine learning models with each model having six input variables and one output variable. In all four models, the input variables are same but output variables are different. Out of four output variables, I want to minimise three variables and maximise one variable, all four at same time. So, I have four objectives. I am using multiobjective optimization and I want to use the 4 trained models as objective functions. How can I use these 4 models as objective functions. If there is a way to get the trained model in a single mathematical equation form, then it will also be helpful. For constraints, I have 6 inequalities, each inequality having lower and upper bounds, each inequality for each input variable. Code: fun = @(X) [modell1,modell3,modell4,modell5];
A = [1,0,0,0,0,0;0,1,0,0,0,0;0,0,1,0,0,0;0,0,0,1,0,0;0,0,0,0,1,0;0,0,0,0,0,1]; b = [5;5;5;1;1;1]; Aeq = []; beq = []; lb = [1,1,1,0.4,0.4,0.4]; ub = [5,5,5,1,1,1];
x0 = [0,0,0,0,0,0];
[x fval]=fmincon(fun,x0,A,b,Aeq,beq,lb,ub)
Accepted Answer
More Answers (0)
Categories
Find more on Optimization Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!