| MATLAB Central > MATLAB Newsreader > How to use the same data in both objective and ... |
|
|
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Arne Vagren Date: 16 Aug, 2009 10:34:03 Message: 1 of 7 |
|
Hello! |
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Matt Date: 16 Aug, 2009 16:46:02 Message: 2 of 7 |
|
You might be able to use nested functions to manage the state variables, as follows |
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Arne Vagren Date: 16 Aug, 2009 19:02:04 Message: 3 of 7 |
|
Thanks for the reply! Interesting idea, I will look into it. By |
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Matt Date: 17 Aug, 2009 07:14:02 Message: 4 of 7 |
|
"Arne Vagren" <arne.vagren@gmail.com> wrote in message <h69l3c$jet$1@fred.mathworks.com>... |
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Arne Vagren Date: 17 Aug, 2009 07:39:02 Message: 5 of 7 |
|
"Matt " <xys@whatever.com> wrote in message <h6avvq$83v$1@fred.mathworks.com>... |
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Steven Lord Date: 17 Aug, 2009 14:14:02 Message: 6 of 7 |
|
|
|
Subject: How to use the same data in both objective and constraints function, fmincon From: Arne Vagren Date: 29 Aug, 2009 18:48:04 Message: 7 of 7 |
|
Thanks for your reply! If anyone's interested, here's another solution based on using persistent variables (the problem is just a dummy problem for illustration): |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| fmincon | Arne Vagren | 16 Aug, 2009 06:39:03 |
Contact us at files@mathworks.com
