Solved

Add more constraints to fmincon

Posted on 2010-11-18
8
753 Views
Last Modified: 2013-11-25
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
Comment
Question by:SpartanValor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
8 Comments
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 34171098
Just do f = fmincon(blahblah)
if(f < abs(y)) f = abs(y);
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34605178
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
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 34656458
http:#a34171098 answered the question as far as I can tell.
0
 
LVL 15

Expert Comment

by:yuk99
ID: 34656782
I would accept the Tommy's answer if there is no complains from the author.
0
 

Expert Comment

by:_alias99
ID: 34732591
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question