[Cmpl] (no subject)

Mike Steglich mike.steglich at th-wildau.de
Tue Mar 10 04:18:33 EDT 2020


Hi Martina,

it works only element-wise. You need to formulate a loop over the two dimensions of the matrix and to use the abs function for every element in the matrix.

Cheers,

Mike

>> Am 10.03.2020 um 09:11 schrieb Martina Viljoen <martina.viljoen at gmail.com>:
> 
> Dear Sir/Madam
> 
> I am using the CMPL (Cmpl-1-12-0-Win) to solve an optimization problem. I would like to know if there is a possibility to use the Abs function on a 2 dimensional matrix. What I basically want to do is change any negative values inside the matrix to be positive, If this is possible how would it be declared.
> 
> Thank you very much.
> Kind regards
> Martina
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> https://list.coin-or.org/mailman/listinfo/cmpl




More information about the Cmpl mailing list