Git Product home page Git Product logo

Comments (1)

perrygeo avatar perrygeo commented on August 19, 2024

If you have multiple objective functions, you must combine them into a single function. In simanneal terminology, you have to define the energy method. This could be anything from simple weighting:

    def energy(self):
        a = objective_a()
        b = objective_b()
        return (4 * a) + b

For more complex multi-objective problems, you can add any logic that can be implemented in Python. As long as you return a scalar value, simanneal will find a way to minimize that value.

A common technique, known to me through the use of the conservation planning tool Marxan, is to have positive objectives as "targets" with equal units, while other negative objectives are treated as "penalties" for exceeding a certain threshold.

from simanneal.

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.