In optimization toolbox, in function "gamultiobj" how to define ConstraintFile.m function in which constraints are not functions of design variables. This facility is available in "ga" under "nonlin".

 Accepted Answer

If the constraints are not functions of design variables, then how are they constraints?
gamultiobj gained the ability to use nonlinear constraints in R2014b, as you can see in the release notes.
Alan Weiss
MATLAB mathematical toolbox documentation

1 Comment

Thank you Alan for finding time to answer my Q. You are right that, how constraints without design variables possible. I am working on buildings as earthquake resistant dynamic system. In which,deflection of building is indirect constraints, whereas design variables are related to damping in the system. I will sure go through release notes. Thanks once again.

Sign in to comment.

More Answers (1)

If you mean that your constraints are functions not only of the design variables but also additional parameters, use the techniques described in the documentation to pass those additional parameters into the constraint functions when you call gamultiobj.

1 Comment

Thank you Steven for finding time to answer my Q. I am working on buildings as earthquake resistant dynamic system. In which,deflection of building is indirect constraints, whereas design variables are related to damping in the system. I will sure go through documentation suggested by you. Thanks once again.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!