Apply Restrictions

Implements parameter restrictions for optimization problems

You are now following this Submission

applyRestr.m implements parameter restrictions for optimization problems (most notably, fminunc). applyRestrGrad implements these parameter restrictions on the analytical gradient. The file example_constraints.m shows how to use these on a very simple dataset, auto.mat (also included).

Cite As

Tyler Ransom (2026). Apply Restrictions (https://se.mathworks.com/matlabcentral/fileexchange/47284-apply-restrictions), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Conditional Logit, normalMLE.m

Categories

Find more on Optimization Toolbox in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Sorts rows of restriction matrix in ascending order.

1.1.0.0

Adds error check for if index in restrMat is larger than dimension of parameter vector.

1.0.0.0