Archive for April 2013

Mobile Website Debugging

Manually debugging a mobile webpage is a lot of effort. You need to run an emulator and it is usually slow and debugging tools are not existing. Opera has a solution for this problem: Opera Mobile Emulator. It is quite fast to run and you may test on.
Saturday, April 27, 2013
Posted by Ridvan Döngelci

Linearization of Multiplication

So multiplication is generally not linearizable. However you can linearize binary multiplication. Let's assume x and y is two binary variables (either 0 or 1), we can linearize z = x*y as follow: z <= x;  z <= y; z >= x+y-1; z >= 0;   Further more you can use this trick to multiply two variables x and y with value {-1,1}. Here is the trick is noticing if x and y is equal then multiplication z is 1 otherwise it is -1. Thus we can map variable x to {0,1}.
Friday, April 26, 2013
Posted by Ridvan Döngelci

Related Links

Popular Post

2025 Tricks & Snippets - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -