Skip to content

Instantly share code, notes, and snippets.

View sabuein's full-sized avatar
🏠
Working from home

Salaheddin AbuEin sabuein

🏠
Working from home
View GitHub Profile
def tableu_simplex(num_constraints, num_dec_variables, obj_func_coefficients, lhs_values, rhs_values):
#fixed_variables = list(range(num_dec_variables))
rhs_values.append(0)
rhs_values = np.array(rhs_values, dtype = np.float64)
cj_row = np.array(obj_func_coefficients + [0] * num_constraints)
#print("cj_row:", cj_row)
num_columns = num_constraints + num_dec_variables
row_table = []
def tableu_simplex(num_constraints, num_dec_variables, obj_func_coefficients, lhs_values, rhs_values):
#fixed_variables = list(range(num_dec_variables))
rhs_values.append(0)
rhs_values = np.array(rhs_values, dtype = np.float64)
cj_row = np.array(obj_func_coefficients + [0] * num_constraints)
#print("cj_row:", cj_row)
num_columns = num_constraints + num_dec_variables
row_table = []
@sabuein
sabuein / enterprise_token.rb
Created November 18, 2024 11:37 — forked from CC1119/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2024 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@sabuein
sabuein / enterprise_token.rb
Created November 12, 2024 13:36 — forked from markasoftware/enterprise_token.rb
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@sabuein
sabuein / wordpress_export_to_json.php
Created May 9, 2023 20:27 — forked from jsnelders/wordpress_export_to_json.php
Export all core WordPress data (posts, pages, attachments, comments, tags, categories and users) to a JSON formatted file.
<?php
/**
* Plugin Name: WordPress Export to JSON
* Plugin URI: https://jsnelders.com/
* Description: Export all WordPress posts, pages, comments, tags, commments and users to a JSON file.
* Author: Jason Snelders
* Author URI: http://jsnelders.com
* Version: 2020-01-30.1
**/