maximising with dynamic parameters
2 次查看(过去 30 天)
显示 更早的评论
The function I have looks like this: ln(1+a*x1+b*x2). I need to maximise this with respect to x1 and x2 but for each choice of x1 and x2 the values of a and b would also change. For example if x1=1 and x2=2 then a=2 and b=3 , x1=2 and x2=2 then a=1 and b=4 and so on. Please suggest if this can be done and how it can be approached.
2 个评论
Roger Stafford
2013-8-2
You wrote "and so on" way too soon. You need to explain the relationship between the x1,x2 pair values and the corresponding a,b pair values in much greater detail before any useful advice can be given as to how to maximize your function value.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!