ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 02 Jan 2015 12:52:51 +0100a bug in minimize_constrainedhttps://ask.sagemath.org/question/25376/a-bug-in-minimize_constrained/for the following code:
f = lambda x: (1-x)^(1-x)
c_1 = lambda x: x - 0.5
c_2 = lambda x: - x + 0.99
minimize_constrained(f,[c_1, c_2],[0.75])
I get:
(1.7499)
(I'm using Version 6.4.1).
Clearly, the result does not satisfy the constraints. Am I doing anything wrong? (find_minimum would not work for me, because I need to minimize a constrained 3-variable function -- this is just a 1D part of the function which results in a wrong anwer)
Fri, 02 Jan 2015 12:52:51 +0100https://ask.sagemath.org/question/25376/a-bug-in-minimize_constrained/