Giter Site home page Giter Site logo

Comments (3)

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

Hi,

Yeah -- assuming that you have a min set objective -- using the add_manual_targets() and add_linear_constraints() functions like that would have exactly the same affect on the mathematical formulation of the optimization problem. The key difference is that encoding this formulation as a target (with add_manual_targets()) is that the functions for evaluating feature representation (eval_feature_representation_summary()) and target coverage (eval_target_coverage_summary()) will report additional information for "feature_column_name". If you don't have a min set objective, then these two implementations will not result in the same mathematical formulation. This is because -- for objectives other than the min set objective -- the targets are treated as soft constraints (meaning that solutions may not always meet the targets), whereas the linear constraints are always treated as hard constraints (regardless of which objective function is used).

How does that sound? Let me know if I can provide any further details?

from prioritizr.

jflowernet avatar jflowernet commented on June 3, 2024

Very clear, many thanks Jeff!

I feel like it might be useful to have some of these Q & As compiled somewhere for prioritizr users. I don't want to promise anything, but I could try and put an Rmarkdown together at some point. Just a thought!

from prioritizr.

jeffreyhanson avatar jeffreyhanson commented on June 3, 2024

No worries!

Yeah that's a great idea! Yeah, no worries if you don't have time, but an FAQ document would be brilliant. We could include it as a vignette.

from prioritizr.

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.