Code Monkey home page Code Monkey logo

Comments (6)

IainNZ avatar IainNZ commented on August 29, 2024

This has been bugging me because I've needed this myself. I think you've hit on the problem here though - what if you have multiple points? In fact, this would be the common case I suspect, which might inform how it should be designed.

One API could be this

@defUncs(rm, u[1:2])
addScenario!(rm, [u[1] => 0.0, u[2] => 1.0])
addScenario!(rm, [u[1] => 1.0, u[2] => 0.0])

or

@defUncs(rm, u[1:2])
addScenario!(rm, [(u[1], 0.0), (u[2], 1.0)] )
addScenario!(rm, [(u[1], 1.0), (u[2], 0.0)] )

from jumper.jl.

IainNZ avatar IainNZ commented on August 29, 2024

I have a different solution for the unboundedness issue

from jumper.jl.

vgupta1 avatar vgupta1 commented on August 29, 2024

What about for setting initial cuts?


Vishal Gupta
PhD Candidate, 2014
Operations Research Center
Massachusetts Institute of Technology
www.mit.edu/~vgupta1/

On Mon, Apr 21, 2014 at 12:14 AM, Iain Dunning [email protected]:

I have a different solution for the unboundedness issue


Reply to this email directly or view it on GitHubhttps://github.com//issues/25#issuecomment-40915147
.

from jumper.jl.

IainNZ avatar IainNZ commented on August 29, 2024

Thats what I just wrote isn't it?

from jumper.jl.

vgupta1 avatar vgupta1 commented on August 29, 2024

Sorry, Github emailing me sometimes garbles the order of messages. My fault entirely...

I like the addScenario using dictionaries... Constructing scenarios as arrays of tuples feels like it's going to be cumbersome. The idea of using setValue was just to try and mirror the nominal interface as much as possible, but I agree that there isn't a ton of upside in it. The addScenario description seems much more usable.

Could it be written in a way that one could call it from within generateCut????

from jumper.jl.

IainNZ avatar IainNZ commented on August 29, 2024

It could... but I don't like it on first thought because it confuses the intent a bit... probably need to implement it and see how it feels.

from jumper.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.