Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Add more constraints to fmincon

Posted on 2010-11-18
8
Medium Priority
?
782 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
  • 3
5 Comments
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses
Course of the Month20 days, 16 hours left to enroll

864 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