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.Thu, 04 Apr 2019 01:13:14 +0200Maximize nonlinear function with linear constraintshttps://ask.sagemath.org/question/46008/maximize-nonlinear-function-with-linear-constraints/I would like to have Sage maximize 60 * 5^{x0} *4^{x1} * 3^{x2}, where x0, x1, x2 are nonnegative integers such that
x0+x1+x2=2k-3
and
x1+2*x2 >= 3k-3,
where k is any nonnegative integer such that 3<= k <=20. I would like to create a loop so that Sage does this for me for each of these values of k.
I know that Sage has a tool called minimize_constrained, but I can't find a tool called "maximize_constrained". Please help! Thank you in advance :-)merluzaThu, 04 Apr 2019 01:13:14 +0200https://ask.sagemath.org/question/46008/