Another way to ask is: can i put the target function and the constraints vector in the same function or do something equivalent.
constrained maximization, share variables of tagret function and constraint
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
dominik
el 31 de En. de 2014
Comentada: dominik
el 31 de En. de 2014
I want maximize a function f(x) s.t. nonlinear cosntraints c(x). Both the function f(x) and c(x) contain a computation step g(x), which is very time consuming.
How can i avoid doing the same computation twice at each step of tha maximization loop? (Once when the constraints are evaluated, once when the taget function is evaluated)?
2 comentarios
Amit
el 31 de En. de 2014
Can you post your problem. If not the code, atleast some description of f(x), c(x) and g(x). Without that its very hard to comment on solving the issue.
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Get Started with Optimization Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!