How can I get an entity edit path?
You may want to take a look at hook_menu()

Here you can define paths and route variables to where they are needed.  

For example:

function hook_menu() {
  $items['admin/structure/optimizations/manage/%'] = array(
      'title' =&gt; t('Your Page Title'),
      'page callback' =&gt; '_your_callback', // The callback that is building the page
      'page callback' =&gt; array(1), // This is the value from the % array key
      'access arguments' =&gt; array('administer users'), // A permission to require
      'type' =&gt; MENU_NORMAL_ITEM,
  );
}

function _your_callback($val) {

  //Access the % from the URL defined in hook menu using $val.

  ...

}