Automating a custom simplex LP Excel Solver in C# code - ms-solver-foundation

I am trying to solve a Linear problem programmatically with C# using Microsoft Solver foundation library.
Currently our business is solving the problem manually using the Excel Solver Add-in.
Now, I am trying to automate the same thing in C#.
I am providing the link to the excel file, you can run the solver and see the results.
Notes file will provide the description of data and the problem statement and the what excel solver is solving.
https://github.com/shashiram-p/simplex-excel-solver.git
Please guide me on how to add variables and constraints using C# to solve this problem.
Thanks,
Shashiram

Related

Generate flowchart of Matlab code

Despite searching on mathworks site, I did not succeed in finding some way that can generate a flow chart of the matlab .m program file.
Do anybody know any clue about it?

Is it possible to run the Omnet++ with a command in Matlab?

Hello I am new to the Omnet++. I was trying to run the Omnet from the Matlab. Is it possible to run the particular project and generate results in Omnet++ using the Matlab or any command and without actually going on the graphical interface for pressing run button in Omnet++?
From what I have read in the official documentation site (https://omnetpp.org/), it is a library for discrete event simulation. The library is writeen in C++.
It is possible to compile and use C++ code and results using the Matlab MEX-API. (http://es.mathworks.com/help/matlab/call-mex-files-1.html). This API provides a fairly easy bidirectional connection interface between Matlab and C++. It enables matlab to create data to be further processed in C++ and the show the results on matlab later.
Hope it is useful for you!

How to implement fixed point operations without Fixed Point Designer Library in Matlab?

I am supposed to work with an existing code in my work and at some places the previous programmer has extensively used Fimath function. Unfortunately, I am not having the license for the Fixed Point Designer toolbox and was looking for some alternatives.
I tried getting the fimath.m file from another source but it is referencing to some embedded libraries in the toolbox.
Is there some other way in which I can bypass this problem?
Thank You

Deployed MATLAB excel addin cannot find toolbox function

I have created an excel addin using MATLAB builder EX (Release 2014a). However, the deployed application fails at runtime with the error that it could not find built-in toolbox functions such as ppmak, optimoptions etc. Functions that are part of standard MATLAB installation like mean, isnan etc work fine. Also, user defined functions and classes work fine. Could anyone share any insights on this issue?

Matlab Vs. Maple for curve fitting to data, finding eq'n of curve then integrating through code

Im sure there are a thousand different posts on Maple vs Matlab, but i have a bit of a unique set of requirements and before i go off to learn one of the two i would like to know which one will do it best.
I have a set of data from an accelerometer recording an impact. I need to do the following:
fit a curve to the data
Find the equation for that curve
solve the equation listed at the link
http://upload.wikimedia.org/wikipedia/en/math/2/d/3/2d39556df1dbbd467dc914253e93cdb0.png
which solves for a family of curves,i.e the MAX under the interval.
I would like to do this as seamlessly with visual studio as possible. The GUI and all the other elements of the app are built in VB and I would like to keep it there. I know maple has a code generating part to it that will convert to VB, would it be able to handle something like this? Does Matlab integrate with Visual Studio well? I would be thrilled if there was an object i could place on the VB form which would facilitate the communication to and from the matlab or maple framework. Currently i have it working with R, however to do so i need to write the data to a file, launch the R script, wait for it to finish, return control to my VB app and take it from there. This process takes too long and since i do not have experience with multi threaded programming the GUI freezes up when control is passed to the script.
Any help or suggestions would be very much appreciated!
In your case I would choose neither of the two. You may have a look at Python Tools for Visual Studio. The blog post mentions support for NumPy & SciPy for .Net which gives you all the math power you need at hand well integrated in the .Net world.
EDIT:
By looking at matplotlib's gallery I'm tempted to say that matplotlib is on par with MATLAB.
MATLAB doesn't auto-generate VB code, but it can easily be called from a VB application without the indirection of writing a file. It has COM interface that can be called directly from within VB code. See this example from the MATLAB documentation to find out more.
To carry out the technical analysis you've mentioned, you would probably save time by using Curve Fitting Toolbox in addition to base MATLAB.
Note that the above method of connecting to MATLAB via its COM interface relies on there being a live copy of MATLAB present when the VB application is executed. If you need to share your application with people who don't have a copy of MATLAB, you can also create standalone COM components and .NET assemblies from MATLAB code that can be called in the same way by your VB code, but can be deployed freely to people without a MATLAB license - however, this requires an extra product, MATLAB Builder for .NET.