Re: [ojAlgo-user] how to construct a MatrixStore?
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2010-08-17 20:58:04
|
I recommend you start building your optimization models using QuadraticExpressionsModel. If you absolutely want to construct your own matrices then perhaps a PrimitiveDenseStore could be a suitable MatrixStore implementation to use. /Anders On 17 aug 2010, at 02.48, Menglin Liu wrote: > Hi there, > > sorry to bother. > > i'm new to Ojalgo. I want to use it to solve quadratic optimization problem. > > In QuadraticSolver.class, the method public Builder(final MatrixStore<Double> Q, final MatrixStore<Double> C) shows we need to construct the MatrixStore for Q and C. But in MaxtrixStore.class, it says "This interface does not define any methods that require implementations > to alter the matrix. Either the methods return matrix elements, some meta data or produce new instances." > > I'm asking how can i construct the MatrixStore from a series of data? Could anyone send me a little piece of code about this? > > Thank you very much! > > Menglin > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user |