Coder Social home page Coder Social logo

Comments (4)

alphaville avatar alphaville commented on May 19, 2024

Are you imposing these constraints using the penalty method? If so, the constraint violation can be controlled via the constraint tolerance. If you're using regular constraints, there shouldn't be any constraint violation. I'll have a look.

from optimization-engine.

alphaville avatar alphaville commented on May 19, 2024

@sinashm How small is the constraint violation? Can you also share the exit status of the algorithm (whether it has converged, norm of FPR, number of iterations, etc)?

from optimization-engine.

sinashm avatar sinashm commented on May 19, 2024

I am using:
bounds= og.constraints.Rectangle(umin,umax)
The constraint violation is quit small -5e-11
however the sign is messing with further parts

from optimization-engine.

alphaville avatar alphaville commented on May 19, 2024

It is safe to take a projection on the solution you're getting. The guarantees that you have is that the solution you will get has an FPR of adequately small norm. This does not mean that the solution will be feasibly, but the infeasibility is controlled by the tolerance.

In the algorithm there are two iterates: u and u_bar (see below). Both converge to the solution, but u_bar is always feasible. Our implementation returns u (which might be slightly infeasible), instead of u_bar.

image

Perhaps it makes better sense to return u_bar instead of u. I wouldn't like to return both - this would confuse the users.

I added the following line in method solve in panoc_optimizer.rs and all unit tests pass:

// copy u_half_step into u
u.copy_from_slice(&self.panoc_engine.cache.u_half_step);

I need to create a test to make sure everything works. Thanks a lot for reporting this.

from optimization-engine.

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.