Giter Site home page Giter Site logo

Comments (9)

tmigot avatar tmigot commented on August 25, 2024 1

If we have a KnitroSolver, then we could store kc in it, and write a finalizer. That would allow users to perform solves of the same problem from a different starting point, etc.

Great, I will make it concrete in a PR.

from nlpmodelsknitro.jl.

dpo avatar dpo commented on August 25, 2024

Could you add a link to the documentation describing how to retrieve those values?

from nlpmodelsknitro.jl.

tmigot avatar tmigot commented on August 25, 2024

Here is the link to the documentation Reading model/solution properties

There is no further doc for KNITRO.jl, but the useful functions can be found in src/kn_attributes.jl.

from nlpmodelsknitro.jl.

dpo avatar dpo commented on August 25, 2024

Could we return the kc object in stats so the user can query those if they want? I don’t think we should store entire Hessians or Jacobians in stats...

from nlpmodelsknitro.jl.

tmigot avatar tmigot commented on August 25, 2024

Agreed. I think we can pass the kc object, the only drawback is that the user has to use KNITRO.KN_free(kc) (which is done right now at the end of the knitro call) to "finalize" the model similar to a CUTEstModel.

Another alternative would use kwargs so that the user asks from the solver call for the returned values.

from nlpmodelsknitro.jl.

dpo avatar dpo commented on August 25, 2024

Yes, that’s better. Let’s make it optional. But does that mean we need a KnitroSolver to preallocate?

from nlpmodelsknitro.jl.

tmigot avatar tmigot commented on August 25, 2024

Yes, a KnitroSolver would be a clean way to do it. So, the user needs to specify the evals from the initialization of the KnitroSolver.

from nlpmodelsknitro.jl.

dpo avatar dpo commented on August 25, 2024

Yes. There could be a check in the solver that the space has been allocated (and an error if it hasn’t).

from nlpmodelsknitro.jl.

dpo avatar dpo commented on August 25, 2024

If we have a KnitroSolver, then we could store kc in it, and write a finalizer. That would allow users to perform solves of the same problem from a different starting point, etc.

from nlpmodelsknitro.jl.

Related Issues (9)

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.