Apply Restrictions

Implements parameter restrictions for optimization problems
Updated 22 Sep 2014

View License

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 (2024). Apply Restrictions (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Optimization Toolbox in Help Center and MATLAB Answers
Tags Add Tags

Inspired: Conditional Logit, normalMLE.m

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Sorts rows of restriction matrix in ascending order.

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