Giter Club home page Giter Club logo

Comments (4)

longemen3000 avatar longemen3000 commented on June 20, 2024

if i remember correctly, the constructors accept a chunk keyword:
on OnceDifferentiable:

OnceDifferentiable(f, x::AbstractArray,
F::Real = real(zero(eltype(x))),
DF::AbstractArray = alloc_DF(x, F); inplace = true, autodiff = :finite,
chunk::ForwardDiff.Chunk = ForwardDiff.Chunk(x)) =

on TwiceDIfferentiable:
function TwiceDifferentiable(f, x::AbstractArray, F::Real = real(zero(eltype(x)));
autodiff = :finite, inplace = true)

from nlsolversbase.jl.

pkofod avatar pkofod commented on June 20, 2024

Yes if you define the objective type yourself it is possible. I supposed OP is asking for this to be a keyword for optimize?

from nlsolversbase.jl.

touste avatar touste commented on June 20, 2024

Hi, I did indeed wish for it to be available in optimize. However since then I think I have a better understanding of the functionalities of the packages, and it is possible to use optimize with a OnceDifferentiable of TwiceDifferentiable function, which accept this option, so it indirectly solves the problem. Perhaps a heads up in the doc of Optim.jl could let users know about the possibility to use OnceDifferentiable or TwiceDifferentiable functions? Otherwise feel free to close the issue.

from nlsolversbase.jl.

pkofod avatar pkofod commented on June 20, 2024

Perhaps a heads up in the doc of Optim.jl could let users know about the possibility to use OnceDifferentiable or TwiceDifferentiable functions?

Yeah, I had originally chosen not to focus too much on this because I wasn't sure whether or not I wanted users to use them directly :) But it would solve the problem for now. I do think that it makes sense to allow for chunk size to be et in optimize as well though.

from nlsolversbase.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.