Assistant Professor at the University of the Philippines - Diliman, Department of Chemical Engineering; Ph.D. in Energy and Power (2020) from Cranfield University, U.K.; Research Interests: process data analytics, process systems engineering, applications of machine learning to chemical and process engineering.

Submitted

Minimizing the Himmelblau Function using GA and PSO

Genetic algorithm (GA) and Particle Swarm Optimization (PSO) for minimizing a multi-modal function

1 month ago | 7 downloads |

Solved

Pattern Sum

Write a function which receives two single digit positive integers, (k and m) as parameters and calculates the total sum as: k...

3 months ago

Solved

Calculator spelling - Numbers to Letters

Using the numbers on a calculator, and rotating the display 180 degrees, many words can be spelled. In particular, the following...

4 months ago

Solved

Mo money, mo math #2! (adapted from Prob 9 Cody team)

You have a matrix for which each row is a person and the columns represent the number of quarters, dimes, nickels and pennies th...

4 months ago

Solved

Approximate functions 1

Compute the following sum for any given x and positive integer n. <<https://i.imgur.com/eUwXdSE.gif>> <> Here m! denote...

4 months ago

Solved

Prime number check

One way to see if a number x is prime is to compute the remainders obtained when dividing x by all integers from 2 to √(x). If x...

4 months ago

Solved

Function 1

Compute the value of <<https://i.imgur.com/AxKWLmE.gif>> for any given positive x.

4 months ago

Solved

Sum of terms in a series 1

Given x and n, compute the following sum: |x|+|x|^(1/2)+|x|^(1/3)+|x|^(1/4)+|x|^(1/5) ... + |x|^(1/n) where ||x|| indica...

4 months ago

Solved

Mo money, mo math! (adapted from Prob 9 Cody team)

You have a vector where the elements represent the number of $20 bills, $10 bills, $5 bills, $1 bills, quarters, dimes, nickels,...

4 months ago

Solved

My Problem, Find the square of the horizontal concatenation of the third and fifth elements of a vector.

given the 1x5 vector x, y must be the square of the horizontal concatenation of the third and fifth elements. So, if x = [1 1 1 ...

4 months ago

Solved

Beauty of Parentheses

Given a string consisting of closed parentheses, form a string array in the following way so that the orders of these parenthese...

4 months ago

Solved

Mongean Shuffle

A Mongean shuffle of an n card deck starts with putting the initial deck on the left hand side. * The top card of the deck is...

4 months ago

Solved

Look Up Mapping

Let the input is A = {[] [] [] [1] []}; B = {'A','B','C','D','E'}; Mapped Output = 'D';

4 months ago

Solved

Assignment Problem

Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

4 months ago

Solved

generate number in particular way

A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

4 months ago

Solved

Find last non-zero in a given dimension

You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

4 months ago

Solved

Check if a rotated array was originally sorted

Suppose a sorted array is rotated at some pivot unknown to you. For example, |[0 1 2 4 5 6 7]| might become |[5 6 7 0 1 2 4]|. ...

4 months ago

Solved

Weave two matrices together to form one matrix

Take the first column from matrix a, then insert the first column from matrix b, and so on. For example: a = [1 2 3 4]; b ...

4 months ago

Solved

S-T-R-E-T-C-H I-T O-U-T

You will be given a row of numbers (x), and a single number (n). Your job is to write a script that will stretch out the row of...

4 months ago

Solved

Sorting integers by their digits (Level 4)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42815-sorting-integers-by-their-digits-level...

4 months ago

Solved

Sorting integers by their digits (Level 3)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42811-sorting-integers-by-their-digits-level...

4 months ago

Solved

Sorting integers by their digits (Level 2)

This is the next step up from <http://www.mathworks.com/matlabcentral/cody/problems/42809-sorting-integers-by-their-digits Probl...

4 months ago

Solved

Sorting integers by their digits (Level 1)

Given a vector, v, of positive integers, return a vector, w, by sorting v in ascending order, such that primary sorting is done ...

4 months ago

Solved

Maintain shape of logical-index mask

When using logical indexing into an array, MATLAB returns a vector output. For example, if A = magic(3); mask = logi...

4 months ago

Solved

Aufbau principle

Given the order e=[1s, 2s, 2p, 3s, 3p, 4s, 3d, 4p, 5s, 4d, 5p, 6s, 4f, 5d, 6p, 7s, 5f, 6d, 7p], find a vector x with these condi...

4 months ago

Solved

Given a number N, find the smallest prime P>N

Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

4 months ago

Solved

The End of the World

given a date -- represent it in the Maya long count system. <https://en.wikipedia.org/wiki/Maya_calendar> <https://maya.nm...

4 months ago

Solved

Find the day for a date

Today's day and date will be given to you. By utilising that you need to find the day of the old date. (Date will be in DD/MM/YY...

4 months ago

Solved

Friday the 13th

According to superstition, lots of unpleasant stuff happens on Friday the 13th, so you might like to find the next occurence of ...

4 months ago