Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to Write a code that returns the objective function (scalar) as the first output The gradient (vector) as the second output and the out put and also the out put should depend on the number of the variable

1 vue (au cours des 30 derniers jours)
Kamilu Kamfa
Kamilu Kamfa le 20 Avr 2016
Clôturé : MATLAB Answer Bot le 20 Août 2021
basically i want evaluate an objective function of this kind
F(x,t)=[exp(sqrt(x1^2+x2^2+t^2)-1),0.5(x1+x2+(sqrt(x1-x2)^2+t^2),.......)
up to n-times where n is length of x usually give as 2-dim 3-dim to n-dim, also i need the code to do the evaluation element wise

Réponses (1)

Kallam Haranadha Reddy
Kallam Haranadha Reddy le 26 Jan 2018
see the Factory Example in MATLAB documentation

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by