• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

Add more constraints to fmincon

How do I add more constraints to fmincon?  For example, I want to add:

f >= y
f >= -y

on top of what I've defined for Aeq, beq, c, ceq, lb, an ub.  Thanks.
0
SpartanValor
Asked:
SpartanValor
  • 3
1 Solution
 
TommySzalapskiCommented:
Just do f = fmincon(blahblah)
if(f < abs(y)) f = abs(y);
0
 
TommySzalapskiCommented:
If my solution did it fact answer the question, please accept it instead of closing it. You didn't respond for well over a month so I assumed you had the answer you needed.
0
 
TommySzalapskiCommented:
http:#a34171098 answered the question as far as I can tell.
0
 
yuk99Commented:
I would accept the Tommy's answer if there is no complains from the author.
0
 
_alias99Commented:
All,
 
Following an 'Objection' by TommySzalapski (at http://www.experts-exchange.com/Q_26745212.html) to the intended closure of this question, it has been reviewed by at least one Moderator and is being closed as recommended by the Expert.
 
At this point I am going to re-start the auto-close procedure.
 
Thank you,
 
_alias99
Community Support Moderator
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now