Opened 15 years ago
Last modified 15 years ago
#850 accepted defect
La función de programación lineal Rglpk::solveLP no funciona.
Reported by: | jlaybar | Owned by: | Jorge |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Math | Version: | |
Severity: | major | Keywords: | Rglpk::solveLP |
Cc: |
Description
Estoy intentando ejecutar el ejemplo de la función Rglpk::solveLP de R que esta en:
C:\Archivos de programa\Tol-Project\tolbase-v1.1.7\bin\stdlib\math\optim\LP\test.tol
Sin embargo da un error.
Me puedes decir porque no funciona?
Da la sensacion que no crea bien las matrices virtuales de R *.bbm
Te envio el codigo que hay en el ejemplo
Matrix obj = ((0,0,0));
Matrix mat = ((3,4,2),
(2,1,1),
(1,3,2));
Matrix rhs = ((60,-1,80));
Set bounds = Set lower=[[ [[1, -Inf?, 2, -Inf?, 3, -Inf? ]] ]];
Set sol=Rglpk::solveLP(obj, mat, rhs,
{Set dir=[["<","<","<"?, Set bounds,
Real verbose=TRUE, Real max=FALSE]]});
Matrix check1 = mat*Tra(solsolution?) - Tra(rhs);
Change History (2)
comment:1 Changed 15 years ago by
Owner: | changed from Víctor de Buen Remiro to Jorge |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Status: | assigned → accepted |
---|