Code Monkey home page Code Monkey logo

Comments (4)

IainNZ avatar IainNZ commented on August 29, 2024

This is very on my mind, and indeed #2 was me capturing that though. So we are definitely on the same page. I actually think its pretty exciting how the polyhedral specific part of PolyhedralOracle (apart from the setup) is realllly short.

from jumper.jl.

vgupta1 avatar vgupta1 commented on August 29, 2024

Ok, so that's what that meant. :) The original issue was a bit cryptic. :)

A related worry that sparked this line of thought was that although
defining UncertainConstr as GenericRangeConstr and type aliasing is
elegant, it leads to potentially confusing code like accessing UAffExpr via

unc_constraint.coeffs[1]

(in my mind, coeffs are floats, but maybe i'm just old-fashioned.)

For people new to JuMPer, this is definitely a weird gotchya. Not
something that a researcher wants to have to decipher in order to code up a
custom oracle. Possibly unrelated. to this thread.


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

On Sun, Apr 20, 2014 at 11:33 PM, Iain Dunning [email protected]:

This is very on my mind, and indeed #2https://github.com/IainNZ/JuMPeR.jl/issues/2was me capturing that though. So we are definitely on the same page. I
actually think its pretty exciting how the polyhedral specific part of
PolyhedralOracle (apart from the setup) is realllly short.


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

from jumper.jl.

IainNZ avatar IainNZ commented on August 29, 2024

Yeah so in the beginning:

UAffExpr - coeffs, uncs
FullAffExpr - coeffs::Vector{UAffExpr}, vars

then I made FullAffExpr make use of GenericAffExpr which cut down on code (and thus chances for bugs).

Finally, I changed recently the UAffExpr to also be a GenericAffExpr to cut down code any more - but at the cost of losing uncs and changing it to vars. I'm happy with coeffs but vars kind of hurts. I'm hoping that the helper functions will eventually wrap this to the point where even oracle developers don't need to touch JuMPeR-specific stuff like this.

from jumper.jl.

IainNZ avatar IainNZ commented on August 29, 2024

Fixed to my satisfaction for now, need to let whats there sit 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.