Using Function from Regression Learner into Optimization Toolbox

1 回表示 (過去 30 日間)
Marc Youcef
Marc Youcef 2017 年 5 月 4 日
回答済み: Chaitral Date 2017 年 5 月 9 日
Hello all,
Through the Regression Learner App, I have set a prediction function which is taking several parameters as predictors and outputting a numerical value. We will distinguish two sets of predictors used in this function: i1 (one predictor) and i2 (all the other predictors).
Our function looks like then : f(i1,i2)=Output.
What I know want to do is to minimize the following through Optimization toolbox: [f(i1,i2)-Target] where Target is a given constant. Minimization of this cost function should be done only by finding the optimal input value i1 which is giving the lowest value of f(i1,i2).
I do not know how to tell the Optimization toolbox to only play on input i1 of the f function to minimize [f(i1,i2)-Target]
Thanks in advance for your help! Marc.

回答 (1 件)

Chaitral Date
Chaitral Date 2017 年 5 月 9 日
Can you tell me how does your function look like? It is hard to tell without looking at the function.
Nevertheless, I do not find any of the functions in optimization toolbox which will only consider i1 from the f function to minimize [f(i1,i2)-Target]. You can use function "fminsearch" or "fminunc" to find min of [f(i1,i2)-Target] and can ignore i2 from the output.

カテゴリ

Help Center および File ExchangeSupport Vector Machine Regression についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by