Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
julia-users
Conversations
About
How do I maximize a function ?
147 views
Skip to first unread message
Pranav Bhat
unread,
Nov 18, 2016, 10:29:28 PM
11/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to julia-users
How do I obtain the maximum value of a function over an interval?
In R I would do something like:
f <- function(x) { x ^ 2}
optimize(f, c(0, 100), maximum=TRUE)
John Myles White
unread,
Nov 19, 2016, 12:42:00 AM
11/19/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to julia-users
Pkg
.
add
(
"Optim"
)
then
using
Optim
and follow this section of the docs:
http://www.juliaopt.org/Optim.jl/stable/user/minimization/#minimizing-a-univariate-function
--John
Reply all
Reply to author
Forward
0 new messages