I want to know whether or not the objective function I have defined is correct. The nonlinear constraint has to be satisfied while ζ varies from 0 < ζ <= 1/2.
This is the first time I am trying to do optimization with Mathematica. It would be helpful if you would direct me to any documentation that can help me.
ClearAll
f[β_] := β;
(*Objective function*)
a = 1/(2*β^3);
eq =
a*(((Sin[β*(1 - ζ)]*Sin[β*ζ])/Sin[β]) - ((Sinh[β*(1 - ζ)]*Sinh[β*ζ])/Sinh[β]));
eq1 = (10^12*eq) + 1;
(*This is the constraint equation*)
NMaximize[f[β_], eq1 == 0]
NMaximize
. $\endgroup$ – b.gates.you.know.what Dec 27 '17 at 8:17ClearAll
is not a Mathematica command and therefore is ignored. 2) Why does your code have a factor of 10^12 that does not appear in the image you originally posted? $\endgroup$ – m_goldberg Dec 27 '17 at 14:38