Solved

Add more constraints to fmincon

Posted on 2010-11-18
8
762 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

Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
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.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

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