Skip to content

Instantly share code, notes, and snippets.

Avatar

Bernd Strehl Strernd

  • Hamburg, Germany
View GitHub Profile
View cplex homework 1
/*********************************************
* OPL 12.7.0.0 Model
* Author: Bernd
* Creation Date: 26.11.2016 at 18:12:32
*********************************************/
range warehouses = 1..3;
range retailers = 1..4;
int cost[warehouses][retailers] = [[35,30,40,32],[37,40,42,25],[40,15,20,28]];
int stock[warehouses] = [1200,1000,800];
View ha24.py
import sys
def cross(X,Y):
l = sum = 0
for i in reversed(X):
sum = sum + i
if sum > l:
l = sum
r = sum = 0
for i in Y:
View gist:954a345aff1af4c96337
<?php namespace App\Http\Controllers;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
abstract class CrudController extends Controller {
protected $model = null;
View Laravel5Controllers
<?php namespace App\Http\Controllers;
class HomeController extends Controller {
}