solver

Microsoft Solver Foundation constraint

Hello, I'm trying to use Microsoft Solver Foundation 2 to solve a fairly complicated situation, however I'm stuck with an UnsupportedModelException even when I dumb down the model as much as possible. Does anyone have an idea of what I'm doing wrong? Following is the least example required to reproduce the problematic behavior. var ctx ...

Solve equation from string to result in C

Hi, I would like to know if anyone has info or experience on how to do something which sounds simple but doesn't look like it when trying to program it. The idea is : give a string containing an equation, such as : "2*x = 10" for example (this is simple, but it could get very complex, such as sqrt(54)*35=x^2; and so on....) and the progr...

Is there a captcha solver / decoder / autofiller for Ruby?

I want to write a "client" for megaupload.com in Ruby and I wanted to know if there was a captcha solver / decoder / autofiller for Ruby. Thanks ...

C# dll to solve simple equation

Hello, I am looking for a C# dll to solve simple equation. Example .. 10 = 2 + 3 + x Result should be x = 5; Is this is free DLL? ...

How to enforce a Square number constraint in Microsoft Solver foundation OML?

I want to limit the result to only square numbers ( I am using excel plugin). How do I enforce this? As in, Minimize Goal X subject to a condition that X is a square number. ...

solve.QP require D to be symmetric positive definite in R

When I run solve.QP on my problem, I get the following error from R: Error in solve.QP(sigma, rep(0, 5), t(Amat), bvec, meq = 2) : matrix D in quadratic function is not positive definite! My sigma matrix is symmetric but is not positive definite. Why is this needed? If I solve it myself using Lagrangian functions, I am able to get ...

How can a declaration conflict with itself?

This is the error I'm getting when trying to compile some code that uses taucs (not my code): .../taucs/src/taucs.h:554: error: conflicting declaration ‘typedef struct taucs_ccs_matrix taucs_ccs_matrix’ .../taucs/src/taucs.h:554: error: ‘taucs_ccs_matrix’ has a previous declaration as ‘typedef struct taucs_ccs_matrix taucs_ccs_matrix’ ...

Problem with SCITE, AMPL and GLPK.

Can someone explain me step by step how to add AMPL to SCITE editor and add GLPK solver ? ...